Skip to content

Commit

Permalink
ALSA: hda - get subvendor from codec rather than pci_dev
Browse files Browse the repository at this point in the history
It is safer for non-pci situation.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Hui Wang authored and Takashi Iwai committed May 26, 2014
1 parent 2053141 commit 621b5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_auto_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 621b5a0

Please sign in to comment.