mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
27d10f5664
commit
4dc40a3cc4
1 changed files with 0 additions and 3 deletions
|
@ -1232,9 +1232,6 @@ static int build_audio_procunit(mixer_build_t *state, int unitid, unsigned char
|
||||||
}
|
}
|
||||||
|
|
||||||
type = combine_word(&dsc[4]);
|
type = combine_word(&dsc[4]);
|
||||||
if (! type)
|
|
||||||
return 0; /* undefined? */
|
|
||||||
|
|
||||||
for (info = list; info && info->type; info++)
|
for (info = list; info && info->type; info++)
|
||||||
if (info->type == type)
|
if (info->type == type)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue