Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <venkataprasad.potturu@amd.com>
Link: https://msgid.link/r/20240118143023.1903984-3-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Venkata Prasad Potturu and committed by
Mark Brown
6cc2aa9a 4bae2029

+7 -2
+7 -2
sound/soc/amd/acp/acp-mach-common.c
··· 1471 1471 if (drv_data->amp_cpu_id == I2S_SP) { 1472 1472 links[i].name = "acp-amp-codec"; 1473 1473 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 + } 1476 1481 links[i].platforms = sof_component; 1477 1482 links[i].num_platforms = ARRAY_SIZE(sof_component); 1478 1483 links[i].dpcm_playback = 1;