浏览代码

[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>
Clemens Ladisch 20 年之前
父节点
当前提交
4dc40a3cc4
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      sound/usb/usbmixer.c

+ 0 - 3
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;