Skip to content

Commit 971a6f4

Browse files
committed
Merge remote-tracking branch 'asoc/fix/dma' into asoc-linus
2 parents ac5f1ad + a894bd7 commit 971a6f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/soc/soc-generic-dmaengine-pcm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <sound/dmaengine_pcm.h>
2626

2727
struct dmaengine_pcm {
28-
struct dma_chan *chan[SNDRV_PCM_STREAM_CAPTURE + 1];
28+
struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1];
2929
const struct snd_dmaengine_pcm_config *config;
3030
struct snd_soc_platform platform;
3131
unsigned int flags;
@@ -90,6 +90,8 @@ static int dmaengine_pcm_hw_params(struct snd_pcm_substream *substream,
9090
struct dma_slave_config slave_config;
9191
int ret;
9292

93+
memset(&slave_config, 0, sizeof(slave_config));
94+
9395
if (!pcm->config)
9496
prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config;
9597
else

0 commit comments

Comments
 (0)