mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 20:06:40 +07:00
ALSA: hda - get subvendor from codec rather than pci_dev
It is safer for non-pci situation. Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
20531415ad
commit
621b5a047e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user