diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-05-02 02:52:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 04:05:51 -0400 |
commit | 4dc40a3cc4778ebcb6212bdb71b48690a153be07 (patch) | |
tree | cbc39632f4150b78e3274548e00039448ea1afe5 /sound/usb | |
parent | 27d10f5664c7650af3b2ffadfefaf19b36dc7bd8 (diff) |
[ALSA] usb-audio - allow type 0 extension units
USB generic driver
Extension units can have type 0, so do not ignore them when constructing
mixer controls.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/usbmixer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/usb/usbmixer.c b/sound/usb/usbmixer.c index bfaec4fc1851..5683ae0b5ba1 100644 --- a/sound/usb/usbmixer.c +++ b/sound/usb/usbmixer.c | |||
@@ -1232,9 +1232,6 @@ static int build_audio_procunit(mixer_build_t *state, int unitid, unsigned char | |||
1232 | } | 1232 | } |
1233 | 1233 | ||
1234 | type = combine_word(&dsc[4]); | 1234 | type = combine_word(&dsc[4]); |
1235 | if (! type) | ||
1236 | return 0; /* undefined? */ | ||
1237 | |||
1238 | for (info = list; info && info->type; info++) | 1235 | for (info = list; info && info->type; info++) |
1239 | if (info->type == type) | 1236 | if (info->type == type) |
1240 | break; | 1237 | break; |