[PATCH v4 5/6] ASoC: amd: acp: always append the DAI type to SoundWire DAI link names
From: Syed Saba Kareem
Date: Thu Nov 12 2026 - 07:38:34 EST
From: Siva Subramanian Ravi Saravanan <sravisar@xxxxxxx>
Function topologies are selected from the DAI type (SimpleJack,
SmartAmp, SmartMic) in the DAI link name, but the SoundWire SOF machine
driver only appends it when a link has more than one DAI link. Always
append it so the DAI type is available as selection metadata for the
function topologies.
This does not regress the platforms that keep using a single monolithic
topology (such as ACP6.3 and ACP7.0, which do not set
get_function_tplg_files). The SOF core binds a topology DAI widget to a
BE DAI link by testing whether the topology stream name is a substring
of the DAI link stream name (strstr() in sof_connect_dai_widget(),
sound/soc/sof/topology.c), i.e. the match is partial. Appending the
"-<type>" suffix only makes the DAI link stream name longer, so the
shorter monolithic topology stream name is still found as a substring
and the binding keeps working. This mirrors the Intel sof_sdw machine
driver, which also appends the DAI type unconditionally.
Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@xxxxxxx>
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@xxxxxxx>
---
sound/soc/amd/acp/acp-sdw-sof-mach.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/amd/acp/acp-sdw-sof-mach.c b/sound/soc/amd/acp/acp-sdw-sof-mach.c
index bb35c696a66d..b175cb67d3c7 100644
--- a/sound/soc/amd/acp/acp-sdw-sof-mach.c
+++ b/sound/soc/amd/acp/acp-sdw-sof-mach.c
@@ -398,6 +398,9 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
sdw_be_num = ret;
+ /* the dai_type in the DAI link name selects the function topologies */
+ ctx->append_dai_type = true;
+
/* enable dmic */
if (sof_sdw_quirk & ASOC_SDW_ACP_DMIC || mach_params->dmic_num ||
amd_ctx->pdm_sel) {
--
2.43.0