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

Commit a33b7b0a authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Check bit mask for codec SSID in snd_hda_pick_fixup()



snd_hda_pick_fixup() didn't check the case where the device mask bits
are set, typically used for SND_PCI_QUIRK_VENDOR() entries.  Fix this.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 915bf29e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -735,7 +735,8 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
		for (q = quirk; q->subvendor; q++) {
			unsigned int vendorid =
				q->subdevice | (q->subvendor << 16);
			if (vendorid == codec->subsystem_id) {
			unsigned int mask = 0xffff0000 | q->subdevice_mask;
			if ((codec->subsystem_id & mask) == (vendorid & mask)) {
				id = q->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE
				name = q->name;