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

Commit c687200b authored by Hui Wang's avatar Hui Wang Committed by Takashi Iwai
Browse files

ALSA: hda - drop def association and sequence from pinconf comparing



A lot a machine have the same codec, but they have different default
pinconf setting just because the def association and sequence is
different, as a result they can't share a hda_pintbl[], to overcome
it, we don't compare def association and sequence in the pinconf
matching.

Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 621b5a04
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -844,7 +844,8 @@ static bool pin_config_match(struct hda_codec *codec,
{
	for (; pins->nid; pins++) {
		u32 def_conf = snd_hda_codec_get_pincfg(codec, pins->nid);
		if (pins->val != def_conf)
		u32 mask = 0xffffff00;
		if ((pins->val & mask) != (def_conf & mask))
			return false;
	}
	return true;