From: Clemens Ladisch Date: Mon, 2 May 2005 06:52:32 +0000 (+0200) Subject: [ALSA] usb-audio - allow type 0 extension units X-Git-Tag: v2.6.13-rc1~68^2~660 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4dc40a3cc4778ebcb6212bdb71b48690a153be07;p=karo-tx-linux.git [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 --- 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;