Thread (17 messages) 17 messages, 5 authors, 1999-11-02

Re: esound for PPC

From: Benjamin Herrenschmidt <hidden>
Date: 1999-10-05 08:54:31

On Mon, Oct 4, 1999, Elliot Lee [off-list ref] wrote:
That isn't the problem here. Apparently someone put a bad hack into the
PPC sound driver that makes it default to little endian instead of big
endian format, and esound is expecting that "native endian" on the sound
device is "big endian", not "little endian".
I may be wrong, but to me, this looks like a bug in esound. The driver
seems capable of telling the application about it's current format and
can be told to change it. If esound does assumptions about the default
format instead of querying the driver, then esound is broken. (Also the
driver may have been switched to another format by an application before
esound takes control anyway. I don't remember which of /dev/audio or
/dev/dsp will keep the current setting so this may not be an issue).

I agree that the driver lacks a call to query about the native endian, so
if you really want to, you can add code to esound to force-switch to big
endian on PowerMac, but at least, it should be fixed to not rely on a
supposed default setting.

-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help