ASoC: amd: use new ACP dev names for DAI links
Subsystems (3)
PATCH 2/3 ASoC: amd: use new ACP dev names for DAI links
The old names used automatic platform device ids, which means they could change. Use the new device names which will never change.
Depends on patch: drm/amdgpu: use static ids for ACP platform devs [1]
[1] https://lore.kernel.org/all/[email protected]/
--- sound/soc/amd/acp-da7219-max98357a.c | 8 ++++---- sound/soc/amd/acp-es8336.c | 4 ++-- sound/soc/amd/acp-rt5645.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)
sound/soc/amd/acp-da7219-max98357a.c +4 -4
@@ -517,11 +517,11 @@ static const struct snd_soc_ops cz_rt5682_dmic1_cap_ops = { };SND_SOC_DAILINK_DEF (designware1, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.1.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.1" )));SND_SOC_DAILINK_DEF (designware2, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.2.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.2" )));SND_SOC_DAILINK_DEF (designware3, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.3.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.3" )));SND_SOC_DAILINK_DEF (dlgs,DAILINK_COMP_ARRAY (COMP_CODEC ("i2c-DLGS7219:00" ,"da7219-hifi" )));
@@ -533,7 +533,7 @@ SND_SOC_DAILINK_DEF(adau, DAILINK_COMP_ARRAY(COMP_CODEC("ADAU7002:00", "adau7002-hifi")));SND_SOC_DAILINK_DEF (platform, -DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.0.auto" ))); +DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.0" )));static struct snd_soc_dai_link cz_dai_7219_98357[] = { {
sound/soc/amd/acp-es8336.c +2 -2
@@ -137,11 +137,11 @@ static const struct snd_soc_ops st_es8336_ops = { };SND_SOC_DAILINK_DEF (designware1, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.2.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.1" )));SND_SOC_DAILINK_DEF (codec,DAILINK_COMP_ARRAY (COMP_CODEC ("i2c-ESSX8336:00" ,"ES8316 HiFi" )));SND_SOC_DAILINK_DEF (platform, -DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.1.auto" ))); +DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.0" )));static struct snd_soc_dai_link st_dai_es8336[] = { {
sound/soc/amd/acp-rt5645.c +3 -3
@@ -108,15 +108,15 @@ static const struct snd_soc_ops cz_aif1_ops = { };SND_SOC_DAILINK_DEF (designware1, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.1.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.1" )));SND_SOC_DAILINK_DEF (designware2, -DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.2.auto" ))); +DAILINK_COMP_ARRAY (COMP_CPU ("designware-i2s.2" )));SND_SOC_DAILINK_DEF (codec,DAILINK_COMP_ARRAY (COMP_CODEC ("i2c-10EC5650:00" ,"rt5645-aif1" )));SND_SOC_DAILINK_DEF (platform, -DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.0.auto" ))); +DAILINK_COMP_ARRAY (COMP_PLATFORM ("acp_audio_dma.0" )));static struct snd_soc_dai_link cz_dai_rt5650[] = { {
Signature · 1 line
2.49.0
Mark Brown
maintainerQuoted 2 lines · Brady Norander
The old names used automatic platform device ids, which means they could change. Use the new device names which will never change.
I've got this patch and another patch numbered 3 (but not properly threaded with it) but not a patch 1. What's going on here with dependencies?
Mark Brown
maintainerReview
Quoted 6 lines · Brady Norander
The old names used automatic platform device ids, which means they could change. Use the new device names which will never change.
SND_SOC_DAILINK_DEF(designware1,
(quoted diff) +1
-1- DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.1.auto"))); + DAILINK_COMP_ARRAY(COMP_CPU("designware-i2s.1")));
What happens if someone puts two GPUs in one machine?