projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a170be
)
ASoC: fsl: fsl_asrc_dma: use for_each_pcm_streams() macro
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 17 Feb 2020 08:28:40 +0000
(17:28 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 18 Feb 2020 23:37:10 +0000
(23:37 +0000)
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/87wo8laa8p.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_dma.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_asrc_dma.c
b/sound/soc/fsl/fsl_asrc_dma.c
index
ece130f
..
44e5924
100644
(file)
--- a/
sound/soc/fsl/fsl_asrc_dma.c
+++ b/
sound/soc/fsl/fsl_asrc_dma.c
@@
-400,7
+400,7
@@
static int fsl_asrc_dma_pcm_new(struct snd_soc_component *component,
return ret;
}
- for
(i = SNDRV_PCM_STREAM_PLAYBACK; i <= SNDRV_PCM_STREAM_LAST; i++
) {
+ for
_each_pcm_streams(i
) {
substream = pcm->streams[i].substream;
if (!substream)
continue;
@@
-428,7
+428,7
@@
static void fsl_asrc_dma_pcm_free(struct snd_soc_component *component,
struct snd_pcm_substream *substream;
int i;
- for
(i = SNDRV_PCM_STREAM_PLAYBACK; i <= SNDRV_PCM_STREAM_LAST; i++
) {
+ for
_each_pcm_streams(i
) {
substream = pcm->streams[i].substream;
if (!substream)
continue;