Skip to content
Commit 8cc0991c authored by Alex Deucher's avatar Alex Deucher Committed by Takashi Iwai
Browse files

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: 586bc4aa ("ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD")
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20191221001702.1338587-1-alexander.deucher@amd.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0141254b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment