]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/hdmi - fix atpx_present when CLASS is not VGA
authorAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Dec 2019 00:17:02 +0000 (19:17 -0500)
committerTakashi Iwai <tiwai@suse.de>
Sat, 21 Dec 2019 08:28:19 +0000 (09:28 +0100)
commitfd4bd7e528a597553a094d80b2695d9027a9405a
tree149e562bf0f773861f89fc6cec831b68db581d1d
parentbb7e1f18d6f9a5fa300b0e0b091c213a0014248f
ALSA: hda/hdmi - fix atpx_present when CLASS is not VGA

You can't use PCI_BASE_CLASS with pci_get_class().  This
happens to work by luck on devices with PCI_CLASS_DISPLAY_VGA, but
misses PCI_CLASS_DISPLAY_OTHER.  Add a check for those as well.

Fixes: d72e26f43982 ("ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20191221001702.1338587-1-alexander.deucher@amd.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c