summaryrefslogtreecommitdiffstats
path: root/sound/usb/usbmixer.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-05-02 08:52:32 +0200
committerJaroslav Kysela <perex@suse.cz>2005-05-29 10:05:51 +0200
commit4dc40a3cc4778ebcb6212bdb71b48690a153be07 (patch)
treecbc39632f4150b78e3274548e00039448ea1afe5 /sound/usb/usbmixer.c
parent27d10f5664c7650af3b2ffadfefaf19b36dc7bd8 (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/usbmixer.c')
-rw-r--r--sound/usb/usbmixer.c3
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
}
type = combine_word(&dsc[4]);
- if (! type)
- return 0; /* undefined? */
-
for (info = list; info && info->type; info++)
if (info->type == type)
break;