From: Takashi Iwai Date: Fri, 25 Oct 2013 16:06:09 +0000 (+0200) Subject: ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f82bf8e2c8be73ebd719807bf054721930371174;p=linux-beck.git ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size ... to make the meaning more obvious. Signed-off-by: Takashi Iwai Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- 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 @@ #include struct dmaengine_pcm { - struct dma_chan *chan[SNDRV_PCM_STREAM_CAPTURE + 1]; + struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; const struct snd_dmaengine_pcm_config *config; struct snd_soc_platform platform; unsigned int flags;