Commit 621b5a04 authored by Hui Wang's avatar Hui Wang Committed by Takashi Iwai

ALSA: hda - get subvendor from codec rather than pci_dev

It is safer for non-pci situation.
Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 20531415
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment