Skip to content

Commit 6cc2aa9

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
ASoC: amd: acp: Add check for cpu dai link initialization
Add condition check for cpu dai link initialization for amplifier codec path, as same pcm id uses for both headset and speaker path for RENOIR platforms. Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4bae202 commit 6cc2aa9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sound/soc/amd/acp/acp-mach-common.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,8 +1471,13 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
14711471
if (drv_data->amp_cpu_id == I2S_SP) {
14721472
links[i].name = "acp-amp-codec";
14731473
links[i].id = AMP_BE_ID;
1474-
links[i].cpus = sof_sp_virtual;
1475-
links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual);
1474+
if (drv_data->platform == RENOIR) {
1475+
links[i].cpus = sof_sp;
1476+
links[i].num_cpus = ARRAY_SIZE(sof_sp);
1477+
} else {
1478+
links[i].cpus = sof_sp_virtual;
1479+
links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual);
1480+
}
14761481
links[i].platforms = sof_component;
14771482
links[i].num_platforms = ARRAY_SIZE(sof_component);
14781483
links[i].dpcm_playback = 1;

0 commit comments

Comments
 (0)