From: Hui Wang Date: Mon, 26 May 2014 08:22:42 +0000 (+0800) Subject: ALSA: hda - get subvendor from codec rather than pci_dev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=621b5a047e5c9ced76afd5e8092283032cda802b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: hda - get subvendor from codec rather than pci_dev It is safer for non-pci situation. Signed-off-by: Hui Wang Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c index a14275326234..b684c6e4f301 100644 --- a/sound/pci/hda/hda_auto_parser.c +++ b/sound/pci/hda/hda_auto_parser.c @@ -860,7 +860,7 @@ void snd_hda_pick_pin_fixup(struct hda_codec *codec, return; for (pq = pin_quirk; pq->subvendor; pq++) { - if (codec->bus->pci->subsystem_vendor != pq->subvendor) + if ((codec->subsystem_id & 0xffff0000) != (pq->subvendor << 16)) continue; if (codec->vendor_id != pq->codec) continue;