mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
ALSA: hda: i915: Alays handle -EPROBE_DEFER
It turns out that even if the comment says that the driver can load
fine, it's not really the case and no codecs are detected.
Specifically for -EPROBE_DEFER, always fail the probe.
This fixes a regression when HDA-intel is loaded before i915.
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Closes: https://lore.kernel.org/r/ZVNUxZzCGcxQzqJX@intel.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tested-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Fixes: e6d0c13e9f
("ALSA: hda: i915: Remove extra argument from snd_hdac_i915_init")
Link: https://gitlab.freedesktop.org/drm/intel/-/issues/9671
Link: https://lore.kernel.org/r/20231115123625.74286-1-maarten.lankhorst@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b944aa9d86
commit
9e88b49315
@ -2141,6 +2141,9 @@ static int azx_probe(struct pci_dev *pci,
|
||||
if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT) {
|
||||
err = snd_hdac_i915_init(azx_bus(chip));
|
||||
if (err < 0) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
goto out_free;
|
||||
|
||||
/* if the controller is bound only with HDMI/DP
|
||||
* (for HSW and BDW), we need to abort the probe;
|
||||
* for other chips, still continue probing as other
|
||||
|
Loading…
Reference in New Issue
Block a user