summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd/vangogh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2022-09-20 06:32:16 +0000
committerMark Brown <broonie@kernel.org>2022-09-20 12:19:30 +0100
commit3989ade2d1e7ffc900e3842dc542b9e4bb3618fe (patch)
treeae4825ba231103b65f7d9bcd4aeef53c98444635 /sound/soc/amd/vangogh
parent5ba3522cf8b9f3a9f6cbbde1d1e9217e518e0e0a (diff)
downloadlinux-stable-3989ade2d1e7ffc900e3842dc542b9e4bb3618fe.tar.gz
linux-stable-3989ade2d1e7ffc900e3842dc542b9e4bb3618fe.tar.bz2
linux-stable-3989ade2d1e7ffc900e3842dc542b9e4bb3618fe.zip
ASoC: soc.h: remove num_cpus/codecs
Current rtd has both dai_link pointer (A) and num_cpus/codecs (B). (A) rtd->dai_link = dai_link; (B) rtd->num_cpus = dai_link->num_cpus; (B) rtd->num_codecs = dai_link->num_codecs; But, we can get num_cpus/codecs (B) via dai_link (A). This means we don't need to keep num_cpus/codecs on rtd. This patch removes these. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87sfkmv9n3.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/vangogh')
-rw-r--r--sound/soc/amd/vangogh/acp5x-mach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/vangogh/acp5x-mach.c b/sound/soc/amd/vangogh/acp5x-mach.c
index af3737ef9707..eebf2650ad27 100644
--- a/sound/soc/amd/vangogh/acp5x-mach.c
+++ b/sound/soc/amd/vangogh/acp5x-mach.c
@@ -172,7 +172,7 @@ static int acp5x_cs35l41_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_card *card = rtd->card;
struct snd_soc_dai *codec_dai;
int ret, i;
- unsigned int num_codecs = rtd->num_codecs;
+ unsigned int num_codecs = rtd->dai_link->num_codecs;
unsigned int bclk_val;
ret = 0;