WSL2-Linux-Kernel/sound/hda
Takashi Iwai 36a38c53b4 ALSA: hda: Fix discovery of i915 graphics PCI device
It's been reported that the recent fix for skipping the
component-binding with D-GPU caused a regression on some systems; it
resulted in the completely missing component binding with i915 GPU.

The problem was the use of pci_get_class() function.  It matches with
the full PCI class bits, while we want to match only partially the PCI
base class bits.  So, when a system has an i915 graphics device with
the PCI class 0380, it won't hit because we're looking for only the
PCI class 0300.

This patch fixes i915_gfx_present() to look up each PCI device and
match with PCI base class explicitly instead of pci_get_class().

Fixes: c9db8a30d9 ("ALSA: hda/i915 - skip acomp init if no matching display")
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Tested-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1200611
Link: https://lore.kernel.org/r/87bkunztec.wl-tiwai@suse.de
Link: https://lore.kernel.org/r/20220621120044.11573-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-06-21 14:05:12 +02:00
..
ext ALSA: hda: Add snd_hdac_ext_bus_link_at() helper 2022-02-21 10:56:35 +01:00
Kconfig
Makefile
array.c
hda_bus_type.c
hdac_bus.c
hdac_component.c
hdac_controller.c
hdac_device.c ALSA: hda/realtek - Add HW8326 support 2022-06-08 10:41:19 +02:00
hdac_i915.c ALSA: hda: Fix discovery of i915 graphics PCI device 2022-06-21 14:05:12 +02:00
hdac_regmap.c
hdac_stream.c ALSA/ASoC: hda: move/rename snd_hdac_ext_stop_streams to hdac_stream.c 2021-12-25 09:11:09 +01:00
hdac_sysfs.c
hdmi_chmap.c
intel-dsp-config.c ALSA: hda: intel-dspcfg: use SOF for UpExtreme and UpExtreme11 boards 2022-06-17 10:44:52 +02:00
intel-nhlt.c ALSA: hda: intel-nhlt: remove use of __func__ in dev_dbg 2022-06-17 10:45:41 +02:00
intel-sdw-acpi.c ALSA: Replace acpi_bus_get_device() 2022-02-01 08:08:08 +01:00
local.h
trace.c
trace.h