Skip to content

Commit

Permalink
ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Takashi Iwai authored and Mark Brown committed Oct 25, 2013
1 parent 90130d2 commit f82bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-generic-dmaengine-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f82bf8e

Please sign in to comment.