[PATCH v3 5/6] ASoC: amd: acp: always append the DAI type to SoundWire DAI link names

From: Syed Saba Kareem

Date: Sun Nov 08 2026 - 14:35:48 EST


From: Syed Saba Kareem <Syed.SabaKareem@xxxxxxx>

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. Existing topologies are not affected as the topology stream
names and DAI link names are matched partially.

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 4e21d85d4724..842278d850c9 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