Skip to content

Commit

Permalink
ALSA: hda - drop def association and sequence from pinconf comparing
Browse files Browse the repository at this point in the history
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: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Hui Wang authored and Takashi Iwai committed May 26, 2014
1 parent 621b5a0 commit c687200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/hda/hda_auto_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c687200

Please sign in to comment.