22 Feb
2010
22 Feb
'10
6:40 p.m.
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