]> 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)
commit146f616ea179b012eeeb46d557f685b2f9a99161
tree149e562bf0f773861f89fc6cec831b68db581d1d
parentce55db2b7a7ecb1b7e4eac7635a83ad1445dc070
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: 2859bf1a9d72 ("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