diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-25 12:06:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-25 16:14:26 -0400 |
commit | f82bf8e2c8be73ebd719807bf054721930371174 (patch) | |
tree | bf5471496ecd5779587b806783970fb30a73e137 /sound/soc/soc-generic-dmaengine-pcm.c | |
parent | 90130d2e8f75c7181cef514e8a1491925f386a16 (diff) |
ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size
... to make the meaning more obvious.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-generic-dmaengine-pcm.c')
-rw-r--r-- | sound/soc/soc-generic-dmaengine-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 0c469cbbe881..ee0790337ec9 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <sound/dmaengine_pcm.h> | 25 | #include <sound/dmaengine_pcm.h> |
26 | 26 | ||
27 | struct dmaengine_pcm { | 27 | struct dmaengine_pcm { |
28 | struct dma_chan *chan[SNDRV_PCM_STREAM_CAPTURE + 1]; | 28 | struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; |
29 | const struct snd_dmaengine_pcm_config *config; | 29 | const struct snd_dmaengine_pcm_config *config; |
30 | struct snd_soc_platform platform; | 30 | struct snd_soc_platform platform; |
31 | unsigned int flags; | 31 | unsigned int flags; |