ALSA: hda: Avoid binding with SOF for SKL/KBL platforms
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Aug 2025 14:11:00 +0000 (16:11 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 28 Aug 2025 16:13:52 +0000 (18:13 +0200)
commit112f7d3cff02e357c2f7a116fd7ab6a366ed27f4
treefab031080968c98299c2a2f9e989c4d94feaec51
parentf600bddbcf79acd13d4a0d93aed4ee2fe29f927d
ALSA: hda: Avoid binding with SOF for SKL/KBL platforms

For Intel SKL and KBL platforms, it may be bound with one of three
HD-audio drivers (AVS, SOF and legacy).  AVS is the preferred one when
DMIC is detected, and that's how it's defined in the snd-intel-dspcfg
config table.

But, when AVS driver is disabled (CONFIG_SND_SOC_INTEL_AVS=n), the
device may be bound freely with either SOF or legacy driver.
Before 6.17, the legacy driver took it primarily, but on 6.17, likely
due to the recent code shuffling, SOF driver seems taking it at first,
and fails to probe.  For avoiding the regression, we should enforce to
bind those with the legacy HD-audio drvier when AVS is disabled.

This patch adds the extra two entries in intel-dspcfg table that are
applied only when CONFIG_SND_SOC_INTEL_AVS=n, for binding with the
legacy driver.

Note that there are entries for APL in that config table block, but
APL may be supported by SOF for certain setups, so the choice can't be
exclusive.  Hence this patch includes only SKL and KBL.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1248121
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250828141101.16294-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/core/intel-dsp-config.c