OSDN Git Service

ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 6 Dec 2016 08:56:27 +0000 (16:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:12 +0000 (10:40 +0100)
commit0ce4f00087b476db4baf97344fffee4d84a6e9d3
treebb85b76a62e4d73963da00838a31c1e75361590f
parente029ef3a9c82ae05792173235f88d5e46db0f79c
ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq

commit 5e0ad0d8747f3e4803a9c3d96d64dd7332506d3c upstream.

Commit [64047d7f4912 ALSA: hda - ignore the assoc and seq when comparing
pin configurations] intented to ignore both seq and assoc at pin
comparing, but it only ignored seq. So that commit may still fail to
match pins on some machines.
Change the bitmask to also ignore assoc.

v2: Use macro to do bit masking.

Thanks to Hui Wang for the analysis.

Fixes: 64047d7f4912 ("ALSA: hda - ignore the assoc and seq when comparing...")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_auto_parser.c