Fix for PPC audio devices that can't reendianize samples
Quoted 6 lines
The attached patch adds code to
drivers/sound/dmasound/trans_16.cto byteswap little-endian audio samples for hardware that needs it (like the DACA audio chip in the iBook and iBook FireWire), and also marks the DACA in the iBook FireWire as being unable to handle little-endian audio samples (indmasound_awacs.c).
we've been round this loop ;-)))
the reason that the byte-swap code was taken out of trans_16.c is that it will never be allowed into the kernel.
The way to solve the problem is to:
(a) as you've done, mark the DACA and so on as BE-only (which, I thought was already done in the latest patches - barring the Keylargo rev.3 detection).
(b) if applications don't work properly with BE-only devs then bang on the app maintainer (or send patches) to fix it.
Otherise you end up with having to maintain a never-to-be-merged patch against dmasound (and believe me, that's a PITA).
ciao,
Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Iain Sandoe
Quoted 5 lines
The attached patch adds code to
drivers/sound/dmasound/trans_16.cto byteswap little-endian audio samples for hardware that needs it (like the DACA audio chip in the iBook and iBook FireWire), and also marks the DACA in the iBook FireWire as being unable to handle little-endian audio samples (indmasound_awacs.c).we've been round this loop ;-)))
the reason that the byte-swap code was taken out of
trans_16.cis that it will never be allowed into the kernel.
And we'll have to remove the current byteswap code in the kernel (there still is some).
Quoted 2 lines
(b) if applications don't work properly with BE-only devs then bang on the app maintainer (or send patches) to fix it.
And since Debian has a nice bug tracking system: try the Debian version of the app, if that one doesn't work, file a Debian bug report.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/