[alsa-devel] usbaudio: Support for USB audio v2.0 devices

Clemens Ladisch clemens at ladisch.de
Mon Feb 22 18:40:39 CET 2010


Daniel Mack wrote:
> I've been working on support for USB devices compliant to audio class
> v2.0 and would like to share what I got.

Great!

Just out of curiousity: what device are you testing this with?

> My first step was to clean up most of the existing descriptor parsers
> by moving away from anonymous byte array access to real structs so we
> can see which fields we're actually dereferencing.

Please use the structures in <linux/usb/audio.h>.

> * Supported sample formats are now reported as 32bit bitmap rather than
>   as a fixed value. For now, this is worked around by choosing just one
>   of them.

I'll write a patch to change struct audioformat to use a bitmask.

> Let me know what you think.

Haven't tested yet, but the patches look fine.


Regards,
Clemens


More information about the Alsa-devel mailing list