From b5e62fc0ce69ba9345290d0c420d973b4fdea6df Mon Sep 17 00:00:00 2001 From: Lukas Wunner Date: Fri, 9 Mar 2018 14:39:24 +0100 Subject: [PATCH 3/3] ALSA: hda - Broaden VGA class matching When determining whether an HDA controller is integrated into a GPU, we currently only match against PCI_CLASS_DISPLAY_VGA. But vendors are also using PCI_CLASS_DISPLAY_3D and PCI_CLASS_DISPLAY_OTHER, so broaden the matching to include those as well. Cc: Takashi Iwai Signed-off-by: Lukas Wunner --- sound/pci/hda/hda_intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index ec4e6b829ee2..971df42ab8ea 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1426,7 +1426,7 @@ static struct pci_dev *get_bound_vga(struct pci_dev *pci) p = pci_get_domain_bus_and_slot(pci_domain_nr(pci->bus), pci->bus->number, 0); if (p) { - if ((p->class >> 8) == PCI_CLASS_DISPLAY_VGA) + if ((p->class >> 16) == PCI_BASE_CLASS_DISPLAY) return p; pci_dev_put(p); } -- 2.16.2