Commit 099b923f authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown

ASoC: amd: acp: Add new cpu dai's in machine driver

when using same cpu dai for 2 different dai links
below error is reported.
error: can't find BE for DAI ACPHS_VIRTUAL1.OUT

To avoid this error add new cpu dai.
Signed-off-by: default avatarVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://lore.kernel.org/r/20230109132104.1259479-2-venkataprasad.potturu@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0bdb2bbe
...@@ -565,8 +565,12 @@ SND_SOC_DAILINK_DEF(i2s_hs, ...@@ -565,8 +565,12 @@ SND_SOC_DAILINK_DEF(i2s_hs,
DAILINK_COMP_ARRAY(COMP_CPU("acp-i2s-hs"))); DAILINK_COMP_ARRAY(COMP_CPU("acp-i2s-hs")));
SND_SOC_DAILINK_DEF(sof_sp, SND_SOC_DAILINK_DEF(sof_sp,
DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-sp"))); DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-sp")));
SND_SOC_DAILINK_DEF(sof_sp_virtual,
DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-sp-virtual")));
SND_SOC_DAILINK_DEF(sof_hs, SND_SOC_DAILINK_DEF(sof_hs,
DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-hs"))); DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-hs")));
SND_SOC_DAILINK_DEF(sof_hs_virtual,
DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-hs-virtual")));
SND_SOC_DAILINK_DEF(sof_dmic, SND_SOC_DAILINK_DEF(sof_dmic,
DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-dmic"))); DAILINK_COMP_ARRAY(COMP_CPU("acp-sof-dmic")));
SND_SOC_DAILINK_DEF(pdm_dmic, SND_SOC_DAILINK_DEF(pdm_dmic,
...@@ -701,8 +705,8 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) ...@@ -701,8 +705,8 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
if (drv_data->amp_cpu_id == I2S_SP) { if (drv_data->amp_cpu_id == I2S_SP) {
links[i].name = "acp-amp-codec"; links[i].name = "acp-amp-codec";
links[i].id = AMP_BE_ID; links[i].id = AMP_BE_ID;
links[i].cpus = sof_sp; links[i].cpus = sof_sp_virtual;
links[i].num_cpus = ARRAY_SIZE(sof_sp); links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual);
links[i].platforms = sof_component; links[i].platforms = sof_component;
links[i].num_platforms = ARRAY_SIZE(sof_component); links[i].num_platforms = ARRAY_SIZE(sof_component);
links[i].dpcm_playback = 1; links[i].dpcm_playback = 1;
...@@ -733,8 +737,8 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card) ...@@ -733,8 +737,8 @@ int acp_sofdsp_dai_links_create(struct snd_soc_card *card)
if (drv_data->amp_cpu_id == I2S_HS) { if (drv_data->amp_cpu_id == I2S_HS) {
links[i].name = "acp-amp-codec"; links[i].name = "acp-amp-codec";
links[i].id = AMP_BE_ID; links[i].id = AMP_BE_ID;
links[i].cpus = sof_hs; links[i].cpus = sof_hs_virtual;
links[i].num_cpus = ARRAY_SIZE(sof_hs); links[i].num_cpus = ARRAY_SIZE(sof_hs_virtual);
links[i].platforms = sof_component; links[i].platforms = sof_component;
links[i].num_platforms = ARRAY_SIZE(sof_component); links[i].num_platforms = ARRAY_SIZE(sof_component);
links[i].dpcm_playback = 1; links[i].dpcm_playback = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment