Byte order in sound drivers

Benjamin Herrenschmidt benh at
Mon Dec 3 04:17:24 EST 2001

>It depends on the HW you have. Most recent machines don't do HW
>byteswap, and so accept only big-endian samples. The way this is
>implemented in our driver currently is a bit weird though, the
>setformat ioctl won't fail when trying to set an LE format, but
>it will set the equivalent BE format. So the application is
>expected to read back the format to figure out what had to be

Well, the current dmasound behaviour is definitely broken. I'm
changing it now so that when asked for an _LE format on a chip
that do only _BE will return -EINVAL.


** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list