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

Commit 2385b789 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - Ensure codec patch files are checked for the correct codec ID



Signed-off-by: default avatarDavid Henningsson <diwic@ubuntu.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ab85457f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -649,7 +649,9 @@ static void parse_codec_mode(char *buf, struct hda_bus *bus,
	*codecp = NULL;
	if (sscanf(buf, "%i %i %i", &vendorid, &subid, &caddr) == 3) {
		list_for_each_entry(codec, &bus->codec_list, list) {
			if (codec->addr == caddr) {
			if (codec->vendor_id == vendorid &&
			    codec->subsystem_id == subid &&
			    codec->addr == caddr) {
				*codecp = codec;
				break;
			}