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

This reverts commit c687200b9d.

Dropping the def association and sequence from pinconf comparing is a
bit risky, It will introduce a greater risk of catching unwanted
machines.

And in addition, so far no BIOS experts give us an explicit answer
whether it makes senses to compare these two fields or not.

For safety reason, we revert this commit.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Hui Wang 2014-05-29 15:59:17 +08:00 коммит произвёл Takashi Iwai
Родитель 396178370b
Коммит 37df09492c
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -844,8 +844,7 @@ static bool pin_config_match(struct hda_codec *codec,
{
for (; pins->nid; pins++) {
u32 def_conf = snd_hda_codec_get_pincfg(codec, pins->nid);
u32 mask = 0xffffff00;
if ((pins->val & mask) != (def_conf & mask))
if (pins->val != def_conf)
return false;
}
return true;