ASoC: Intel: Skylake: Configure DMA in PRE_PMD handler of Mixer
authorJeeja KP <jeeja.kp@intel.com>
Thu, 8 Dec 2016 08:11:14 +0000 (13:41 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 15 Dec 2016 12:15:59 +0000 (12:15 +0000)
commitbb704a737cecc1c4c9f1b0251aa79d8276308ccc
tree6647e33f49e1c4bf51f64f28a3f21ccde9f02d64
parent12c3be0e720fe8c4e0f456fd25a6dcc8b254606c
ASoC: Intel: Skylake: Configure DMA in PRE_PMD handler of Mixer

If system is suspended when PCM was paused/stopped, restart doesn't
configure DMA as it is we are in Pause state and results in IO error
eventually.

Configure host/link DMA before initializing DSP Gateway copier module
instead of DAI prepare(). So moved DMA configuration to mixer PRE_PMD
widget handler instead of DAI prepare.

This uses previously added new API to do the configuration and removes
old DAI prepare code.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c
sound/soc/intel/skylake/skl-topology.c