ALSA: usb-audio: clean up find_audio_control_unit()
authorDaniel Mack <daniel@caiaq.de>
Mon, 31 May 2010 11:35:43 +0000 (13:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 31 May 2010 16:17:49 +0000 (18:17 +0200)
commit67e1daa0bb30eda6ec5add27c3abf4536030f5a6
tree7309eecb049e51203c9c6500e7f7a054a9503173
parent2e0281d15c220d0a81c45c73872aa08d2f3ae3ef
ALSA: usb-audio: clean up find_audio_control_unit()

Use a struct to parse the audio units, and return usable descriptors
for all types. There's no need to limit the result set, except for some
kind of sanity check.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c