]> asedeno.scripts.mit.edu Git - linux.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)
commit8cc0991c09bfd11fd878b0321a7a06724520d879
tree149e562bf0f773861f89fc6cec831b68db581d1d
parent0141254b0a74b37aa7eb13d42a56adba84d51c73
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: 586bc4aab878 ("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