Re: Trashed audio out on Tumbler (iBook audio device) when samples are little endian - fixing it now
Byte swapping audio in the kernel? From what I've heard, this is a no-no.
I'm pretty sure Linus and Alan Cox both agree that this is purely a
userspace task, and any attempt to move this into the kernel will be
met with great resistence.
You may have better luck making sure that the driver correctly reports
that it cannot accept little-endian data, and then making sure that
your userspace programs (like xmms) properly check the driver's
capabilities and do the swapping themselves.
I suggest any patches you provide work along these lines.
On Thu, Aug 09, 2001 at 12:11:56PM -0600, Derrik Pates wrote:
> I've got an audio CD playing bvia XMMS with the xmms-cdread plugin now.
> The rev 2 iBook (with FireWire) also can NOT play little-endian samples,
> so they have to be reordered in drivers/sound/dmasound/trans_16.c. I am
> adding the code to do this now (and also to flag anything with KeyLargo
> Rev. 2 or newer (FireWire iBooks have rev. 3) as not able to do the
> byteswap in hardware. I will have a diff soon.
> Derrik Pates | Sysadmin, Douglas School | #linuxOS on EFnet
> email@example.com | District (dsdk12.net) | #linuxOS on OPN
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com