diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-03-09 05:02:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-09 15:25:03 +0100 |
commit | 40a92dbcbc32d7dfbf186dfb1e27ee55d1df2f64 (patch) | |
tree | 59a42ac52e8ee11a6dba803ddd4874e11a620eec /sound/soc/generic/simple-card-utils.c | |
parent | Merge series "ASoC: soc-pcm cleanup step5" from Kuninori Morimoto <kuninori.m... (diff) | |
download | linux-40a92dbcbc32d7dfbf186dfb1e27ee55d1df2f64.tar.xz linux-40a92dbcbc32d7dfbf186dfb1e27ee55d1df2f64.zip |
ASoC: simple-card-utils: use for_each_pcm_streams()
We already have for_each_pcm_streams() macro.
Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/875zfei3aa.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic/simple-card-utils.c')
-rw-r--r-- | sound/soc/generic/simple-card-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 320e648f7499..abbdf1054f6f 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -347,7 +347,7 @@ static int asoc_simple_init_dai_link_params(struct snd_soc_pcm_runtime *rtd, } /* Assumes the capabilities are the same for all supported streams */ - for (stream = 0; stream < 2; stream++) { + for_each_pcm_streams(stream) { ret = snd_soc_runtime_calc_hw(rtd, &hw, stream); if (ret == 0) break; |