diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-10-08 18:54:04 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-10-08 18:54:04 +0000 |
commit | 32649e0cda7b28f654ef125a6b26d0be2c787eee (patch) | |
tree | 9def7289f46447ad151d73652b6884200447097e /sys/dev | |
parent | d594be384f7eb00f69d49d96dbd2a02f99a3d315 (diff) |
encoding of envy is little endian, not native endian, probably fixes envy
on big endian archs
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/envy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c index e89d3af97cd..e6f8a091b8b 100644 --- a/sys/dev/pci/envy.c +++ b/sys/dev/pci/envy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envy.c,v 1.45 2010/10/08 18:46:42 ratchov Exp $ */ +/* $OpenBSD: envy.c,v 1.46 2010/10/08 18:54:03 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -1821,14 +1821,14 @@ envy_set_params(void *self, int setmode, int usemode, reg |= envy_rates[i].reg; envy_mt_write_1(sc, ENVY_MT_RATE, reg); if (setmode & AUMODE_PLAY) { - p->encoding = AUDIO_ENCODING_SLINEAR; + p->encoding = AUDIO_ENCODING_SLINEAR_LE; p->precision = 24; p->bps = 4; p->msb = 1; p->channels = sc->isht ? sc->card->noch : ENVY_PCHANS; } if (setmode & AUMODE_RECORD) { - r->encoding = AUDIO_ENCODING_SLINEAR; + r->encoding = AUDIO_ENCODING_SLINEAR_LE; r->precision = 24; r->bps = 4; r->msb = 1; |