ALSA: usb-mixer: parse descriptors with structs
authorDaniel Mack <daniel@caiaq.de>
Thu, 11 Mar 2010 20:13:24 +0000 (21:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Mar 2010 11:21:12 +0000 (12:21 +0100)
commit99fc86450c439039d2ef88d06b222fd51a779176
treede18f564ac09bc36f40b4ea4f88ab71c48ce290c
parentf0b5e634ff25e02a64676022ee13284a9c810879
ALSA: usb-mixer: parse descriptors with structs

Introduce a number of new structs for mixer, selector, feature and
processing units and some static inline helpers to access fields which
have dynamic offsets. Use them in mixer.c to parse the descriptors. This
is necessary for the upcoming audio v2 parsers.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/linux/usb/audio.h
sound/usb/mixer.c