[alsa-devel] [PATCH] ASoC: dmaengine: Use SNDRV_PCM_STREAM_LAST for array size
Lars-Peter Clausen
lars at metafoo.de
Fri Oct 25 18:07:39 CEST 2013
On 10/25/2013 06:06 PM, Takashi Iwai wrote:
> ... to make the meaning more obvious.
>
> Signed-off-by: Takashi Iwai <tiwai at suse.de>
Acked-by: Lars-Peter Clausen <lars at metafoo.de>
Thanks.
> ---
> sound/soc/soc-generic-dmaengine-pcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c
> index 0c469cb..ee07903 100644
> --- a/sound/soc/soc-generic-dmaengine-pcm.c
> +++ b/sound/soc/soc-generic-dmaengine-pcm.c
> @@ -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;
>
More information about the Alsa-devel
mailing list