summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorJim Qu2018-07-16 08:06:34 +0200
committerTakashi Iwai2018-07-16 16:37:08 +0200
commitb6d7b3622b6e7685767a616bb663aed40d04fdc6 (patch)
tree91314ce281c79d64e610d9315cbb179b3b5cb661 /sound/pci/hda/hda_intel.c
parentALSA: usb-audio: Tidy up logic for Processing Unit min/max values (diff)
downloadkernel-qcow2-linux-b6d7b3622b6e7685767a616bb663aed40d04fdc6.tar.gz
kernel-qcow2-linux-b6d7b3622b6e7685767a616bb663aed40d04fdc6.tar.xz
kernel-qcow2-linux-b6d7b3622b6e7685767a616bb663aed40d04fdc6.zip
ALSA: hda: use PCI_BASE_CLASS_DISPLAY to replace PCI_CLASS_DISPLAY_VGA
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>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index a9b55d65f2bd..daedf662b940 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1429,7 +1429,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);
}