ALSA: hda: i915: Alays handle -EPROBE_DEFER
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 15 Nov 2023 12:36:25 +0000 (13:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 15 Nov 2023 12:42:31 +0000 (13:42 +0100)
commit9e88b493157a9901fa498f23cc3c9ab82b43ce83
tree07cc3b2bfe9f5a7ab1bd91fe95f4d784732c7584
parentb944aa9d86d5f782bfe5e51336434c960304839c
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: e6d0c13e9f46 ("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>
sound/pci/hda/hda_intel.c