Skip to contentSkip to conversation

ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size

PATCH Applied Takashi Iwai 3 participants 3 messages Oct 25, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size

... to make the meaning more obvious.

---
 sound/soc/soc-generic-dmaengine-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-generic-dmaengine-pcm.c +1 -1
index 0c469cb..ee07903 100644
@@ -25,7 +25,7 @@
 #include <sound/dmaengine_pcm.h>
 
 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;
Signature · 1 line
1.8.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Takashi Iwai

... to make the meaning more obvious.

Thanks.

Quoted 18 lines
---
 sound/soc/soc-generic-dmaengine-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-generic-dmaengine-pcm.c +1 -1
index 0c469cb..ee07903 100644
@@ -25,7 +25,7 @@
 #include <sound/dmaengine_pcm.h>
 
 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;