diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-02-17 09:28:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-19 00:37:11 +0100 |
commit | 4c260c3f19bd16e6b11841aad1162f5a105ed24e (patch) | |
tree | 3dd1956ea268024d72165158f84669fe19ef84c7 /sound/soc/qcom/lpass-platform.c | |
parent | ASoC: fsl: fsl_asrc_dma: use for_each_pcm_streams() macro (diff) | |
download | linux-4c260c3f19bd16e6b11841aad1162f5a105ed24e.tar.xz linux-4c260c3f19bd16e6b11841aad1162f5a105ed24e.zip |
ASoC: qcom: lpass-platform: use for_each_pcm_streams() macro
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/87v9o5aa8m.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-platform.c')
-rw-r--r-- | sound/soc/qcom/lpass-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index b05091c283b7..5d1bc5757169 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -529,7 +529,7 @@ static void lpass_platform_pcm_free(struct snd_soc_component *component, struct snd_pcm_substream *substream; int i; - for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { + for_each_pcm_streams(i) { substream = pcm->streams[i].substream; if (substream) { snd_dma_free_pages(&substream->dma_buffer); |