]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ALSA: hda: use PCI_BASE_CLASS_DISPLAY to replace PCI_CLASS_DISPLAY_VGA
authorJim Qu <Jim.Qu@amd.com>
Mon, 30 Jul 2018 01:32:00 +0000 (03:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:30:50 +0000 (12:30 +0200)
BugLink: http://bugs.launchpad.net/bugs/1782689
Except PCI_CLASS_DISPLAY_VGA, some PCI class is sometimes
PCI_CLASS_DISPLAY_3D or PCI_CLASS_DISPLAY_OTHER.

Signed-off-by: Jim Qu <Jim.Qu@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit b6d7b3622b6e7685767a616bb663aed40d04fdc6
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/pci/hda/hda_intel.c

index d6fc2c2e57b8ef7252237c6562170e11d0ad6a17..864521eae594f2f5b06afa93f15068209f8e7c17 100644 (file)
@@ -1427,7 +1427,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);
                        }