aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-generic-dmaengine-pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c
index ee0790337ec9..6ad4c7a47f5d 100644
--- a/sound/soc/soc-generic-dmaengine-pcm.c
+++ b/sound/soc/soc-generic-dmaengine-pcm.c
@@ -90,6 +90,8 @@ static int dmaengine_pcm_hw_params(struct snd_pcm_substream *substream,
90 struct dma_slave_config slave_config; 90 struct dma_slave_config slave_config;
91 int ret; 91 int ret;
92 92
93 memset(&slave_config, 0, sizeof(slave_config));
94
93 if (!pcm->config) 95 if (!pcm->config)
94 prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config; 96 prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config;
95 else 97 else