diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-12-20 19:17:02 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-21 09:28:19 +0100 |
commit | 8cc0991c09bfd11fd878b0321a7a06724520d879 (patch) | |
tree | 149e562bf0f773861f89fc6cec831b68db581d1d /.clang-format | |
parent | 0141254b0a74b37aa7eb13d42a56adba84d51c73 (diff) | |
download | linux-8cc0991c09bfd11fd878b0321a7a06724520d879.tar.bz2 |
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>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions