Commit fa7b2a1f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
parent 0a170be9
...@@ -400,7 +400,7 @@ static int fsl_asrc_dma_pcm_new(struct snd_soc_component *component, ...@@ -400,7 +400,7 @@ static int fsl_asrc_dma_pcm_new(struct snd_soc_component *component,
return ret; return ret;
} }
for (i = SNDRV_PCM_STREAM_PLAYBACK; i <= SNDRV_PCM_STREAM_LAST; i++) { for_each_pcm_streams(i) {
substream = pcm->streams[i].substream; substream = pcm->streams[i].substream;
if (!substream) if (!substream)
continue; continue;
...@@ -428,7 +428,7 @@ static void fsl_asrc_dma_pcm_free(struct snd_soc_component *component, ...@@ -428,7 +428,7 @@ static void fsl_asrc_dma_pcm_free(struct snd_soc_component *component,
struct snd_pcm_substream *substream; struct snd_pcm_substream *substream;
int i; int i;
for (i = SNDRV_PCM_STREAM_PLAYBACK; i <= SNDRV_PCM_STREAM_LAST; i++) { for_each_pcm_streams(i) {
substream = pcm->streams[i].substream; substream = pcm->streams[i].substream;
if (!substream) if (!substream)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment