Commit 989ff775 authored by Jim Lodes's avatar Jim Lodes Committed by Mark Brown

ASoC: omap-pcm: Initialize DMA configuration

Initialize the dma_slave_config for PCM DMA transfers,
instead of leaving it uninitialized. Keeps previous data on
the stack from giving us invalid values in uninitialized
members of the config structure.
Signed-off-by: default avatarJim Lodes <jim.lodes@garmin.com>
Signed-off-by: default avatarJ.D. Schroeder <jay.schroeder@garmin.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Reviewed-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d4e44f14
......@@ -82,6 +82,8 @@ static int omap_pcm_hw_params(struct snd_pcm_substream *substream,
struct dma_chan *chan;
int err = 0;
memset(&config, 0x00, sizeof(config));
dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
/* return if this is a bufferless transfer e.g.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment