Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/dma' into asoc-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 15, 2013
2 parents 738867f + a894bd7 commit 9450d92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 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 Expand Up @@ -90,6 +90,8 @@ static int dmaengine_pcm_hw_params(struct snd_pcm_substream *substream,
struct dma_slave_config slave_config;
int ret;

memset(&slave_config, 0, sizeof(slave_config));

if (!pcm->config)
prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config;
else
Expand Down

0 comments on commit 9450d92

Please sign in to comment.