[PATCH v2 3/6] ASoC: soc-dapm: Merge for_each_rtd_cpu/codec_dais()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Wed Mar 11 06:01:07 CET 2020
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Now we can use for_each_rtd_dais().
Let's use it instead of for_each_rtd_cpu/codec_dais().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
v1 -> v2
- tidyup for_each_rtd_dais()
sound/soc/soc-dapm.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index e00a465a7c32..251126cc4447 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -4433,14 +4433,11 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card)
static void soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream,
int event)
{
- struct snd_soc_dai *codec_dai;
- struct snd_soc_dai *cpu_dai;
+ struct snd_soc_dai *dai;
int i;
- for_each_rtd_cpu_dais(rtd, i, cpu_dai)
- soc_dapm_dai_stream_event(cpu_dai, stream, event);
- for_each_rtd_codec_dais(rtd, i, codec_dai)
- soc_dapm_dai_stream_event(codec_dai, stream, event);
+ for_each_rtd_dais(rtd, i, dai)
+ soc_dapm_dai_stream_event(dai, stream, event);
dapm_power_widgets(rtd->card, event);
}
--
2.17.1
More information about the Alsa-devel
mailing list