Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dc40a3c authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela
Browse files

[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: default avatarClemens Ladisch <clemens@ladisch.de>
parent 27d10f56
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -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;