Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: soc-acpi-intel-arl-match: use dummy topology for cs42l43 + cs35l56
@ 2026-12-04 14:37 Bard Liao
  2026-12-04 14:57 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Bard Liao @ 2026-12-04 14:37 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, bard.liao, peter.ujfalusi, ckeepax

The ARL cs42l43 on link 0 + cs35l56 on links 2/3 entries use
sof-arl-cs42l43-l0-cs35l56-l23.tplg as the topology name. With a
non-dummy topology name, sof_sdw_get_tplg_files() gives up on function
topologies as soon as one dai link has no matching function topology,
and SOF falls back to the monolithic topology.

Use sof-arl-dummy.tplg instead. A dummy topology name means there is
no monolithic fallback, so the card is formed from function topologies
on a best-effort basis, skipping the dai links that have no function
topology instead of falling back to the monolithic topology.

Link: https://github.com/thesofproject/linux/issues/5916
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
 sound/soc/intel/common/soc-acpi-intel-arl-match.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/intel/common/soc-acpi-intel-arl-match.c b/sound/soc/intel/common/soc-acpi-intel-arl-match.c
index bddeb1225e5d..837be1e6cdc7 100644
--- a/sound/soc/intel/common/soc-acpi-intel-arl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-arl-match.c
@@ -665,21 +665,21 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
 		.link_mask = BIT(0) | BIT(2) | BIT(3),
 		.links = arl_cs42l43_l0_cs35l56_l23,
 		.drv_name = "sof_sdw",
-		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
+		.sof_tplg_filename = "sof-arl-dummy.tplg",
 		.get_function_tplg_files = sof_sdw_get_tplg_files,
 	},
 	{
 		.link_mask = BIT(0) | BIT(2) | BIT(3),
 		.links = arl_cs42l43_l0_cs35l56_2_l23,
 		.drv_name = "sof_sdw",
-		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
+		.sof_tplg_filename = "sof-arl-dummy.tplg",
 		.get_function_tplg_files = sof_sdw_get_tplg_files,
 	},
 	{
 		.link_mask = BIT(0) | BIT(2) | BIT(3),
 		.links = arl_cs42l43_l0_cs35l56_3_l23,
 		.drv_name = "sof_sdw",
-		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
+		.sof_tplg_filename = "sof-arl-dummy.tplg",
 		.get_function_tplg_files = sof_sdw_get_tplg_files,
 	},
 	{
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: Intel: soc-acpi-intel-arl-match: use dummy topology for cs42l43 + cs35l56
  2026-12-04 14:37 [PATCH] ASoC: Intel: soc-acpi-intel-arl-match: use dummy topology for cs42l43 + cs35l56 Bard Liao
@ 2026-12-04 14:57 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-04 14:57 UTC (permalink / raw)
  To: Bard Liao; +Cc: linux-sound

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] ASoC: Intel: dummy tplg drops monolithic fallback in
  snd_sof_load_topology()
- [Low] ASoC: Intel: commit message omits root cause for ARL dummy tplg
  switch
--

commit 778f084a7928198db8afa0d404eb123cbd557c6a
Author: Bard Liao <yung-chuan.liao@linux.intel.com>

> ASoC: Intel: soc-acpi-intel-arl-match: use dummy topology for cs42l43 + cs35l56
>
> The ARL cs42l43 on link 0 + cs35l56 on links 2/3 entries use
> sof-arl-cs42l43-l0-cs35l56-l23.tplg as the topology name. With a
> non-dummy topology name, sof_sdw_get_tplg_files() gives up on function
> topologies as soon as one dai link has no matching function topology,
> and SOF falls back to the monolithic topology.
>
> Use sof-arl-dummy.tplg instead. A dummy topology name means there is
> no monolithic fallback, so the card is formed from function topologies
> on a best-effort basis, skipping the dai links that have no function
> topology instead of falling back to the monolithic topology.
>
> Link: https://github.com/thesofproject/linux/issues/5916
> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

[Severity: Low]
Could the commit message explain which DAI link lacks a matching function
topology and why falling back to sof-arl-cs42l43-l0-cs35l56-l23.tplg is a
problem here?

Relying on the external GitHub link leaves the root cause and the reason
for dropping monolithic fallback on these three entries out of the git
history.

> diff --git a/sound/soc/intel/common/soc-acpi-intel-arl-match.c b/sound/soc/intel/common/soc-acpi-intel-arl-match.c
> index bddeb1225e5df..837be1e6cdc78 100644
> --- a/sound/soc/intel/common/soc-acpi-intel-arl-match.c
> +++ b/sound/soc/intel/common/soc-acpi-intel-arl-match.c
> @@ -665,21 +665,21 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
>  		.link_mask = BIT(0) | BIT(2) | BIT(3),
>  		.links = arl_cs42l43_l0_cs35l56_l23,
>  		.drv_name = "sof_sdw",
> -		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
> +		.sof_tplg_filename = "sof-arl-dummy.tplg",
>  		.get_function_tplg_files = sof_sdw_get_tplg_files,
>  	},
>  	{
>  		.link_mask = BIT(0) | BIT(2) | BIT(3),
>  		.links = arl_cs42l43_l0_cs35l56_2_l23,
>  		.drv_name = "sof_sdw",
> -		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
> +		.sof_tplg_filename = "sof-arl-dummy.tplg",
>  		.get_function_tplg_files = sof_sdw_get_tplg_files,
>  	},
>  	{
>  		.link_mask = BIT(0) | BIT(2) | BIT(3),
>  		.links = arl_cs42l43_l0_cs35l56_3_l23,
>  		.drv_name = "sof_sdw",
> -		.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l23.tplg",
> +		.sof_tplg_filename = "sof-arl-dummy.tplg",
>  		.get_function_tplg_files = sof_sdw_get_tplg_files,
>  	},
>  	{

[Severity: Medium]
Does switching these existing entries to sof-arl-dummy.tplg break audio
probe on systems without function topologies?

In snd_sof_load_topology(), a "dummy" filename disables monolithic
fallback and returns -EINVAL when tplg_cnt is 0.  ARL laptops with an
older sof-firmware package (or snd_sof.disable_function_topology=1) will
now fail probe instead of using sof-arl-cs42l43-l0-cs35l56-l23.tplg.

Because best_effort is also enabled for dummy filenames,
sof_sdw_get_tplg_files() skips any missing fragment rather than returning
0, so a partial function topology set can also leave speakers or the
headset jack silently missing.

Decoupling best-effort skipping of unsupported DAI links from the dummy
no-fallback check in snd_sof_load_topology() would preserve monolithic
fallback for these entries.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204143720.3631183-1-yung-chuan.liao@linux.intel.com?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 14:37 [PATCH] ASoC: Intel: soc-acpi-intel-arl-match: use dummy topology for cs42l43 + cs35l56 Bard Liao
2026-12-04 14:57 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox