ALSA: usbaudio: parse USB descriptors with structs
authorDaniel Mack <daniel@caiaq.de>
Mon, 22 Feb 2010 22:49:09 +0000 (23:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Feb 2010 07:40:12 +0000 (08:40 +0100)
commit28e1b773083d349d5223f586a39fa30f5d0f1c36
tree4793eb1d87a094cf3642600ac3b201f81bab7e54
parent40717382e0c1f572553e4fdefb489db4b95a5e7e
ALSA: usbaudio: parse USB descriptors with structs

In preparation of support for v2.0 audio class, use the structs from
linux/usb/audio.h and add some new ones to describe the fields that are
actually parsed by the descriptor decoders.

Also, factor out code from usb_create_streams(). This makes it easier to
adopt the new iteration logic needed for v2.0.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/linux/usb/audio.h
sound/usb/usbaudio.c
sound/usb/usbmixer.c