ASoC: codecs: hda: Skip HDMI/DP registration if i915 is missing
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 26 Feb 2024 12:44:29 +0000 (13:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Mar 2024 08:17:02 +0000 (09:17 +0100)
commitcf9c19df2755d57501ce3922bb22ff0734d8bed5
tree12cc95db52fb08039738a81384419799c1511906
parentbd6e4c4a7060c7b994ccf808bf177c57ddde233e
ASoC: codecs: hda: Skip HDMI/DP registration if i915 is missing

If i915 does not support given platform but the hardware i.e.: HDAudio
codec is still there, the codec-probing procedure will succeed for such
device but the follow up initialization will always end up with -ENODEV.

While bus could filter out address '2' which Intel's HDMI/DP codecs
always enumerate on, more robust approach is to check for i915 presence
before registering display codecs.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240226124432.1203798-3-cezary.rojewski@intel.com
sound/soc/codecs/hda.c