Skip to content

Commit

Permalink
[ALSA] usb-audio - allow type 0 extension units
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed May 29, 2005
1 parent 27d10f5 commit 4dc40a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/usb/usbmixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4dc40a3

Please sign in to comment.