diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-03-15 14:09:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-16 13:08:43 +0300 |
commit | 3f7f8489e25b180cf8de8a3ae3896b3f18fc4aa5 (patch) | |
tree | a29d1fd0c228f507f079198d95e7c98d0a8689b6 /sound/soc | |
parent | 7373f481dc4098a844a756201e98341bc56baaa2 (diff) | |
download | linux-3f7f8489e25b180cf8de8a3ae3896b3f18fc4aa5.tar.xz |
ASoC: Intel: Skylake: Freeup properly on skl_dsp_free
We are supposed to freeup the Code loader DMA allocation and
ensure all interrupts are disabled before we disable dsp cores.
So invoke these to ensure DSP shuts down properly.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst-dsp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-sst-dsp.c b/sound/soc/intel/skylake/skl-sst-dsp.c index a5267e8a96e0..2962ef22fc84 100644 --- a/sound/soc/intel/skylake/skl-sst-dsp.c +++ b/sound/soc/intel/skylake/skl-sst-dsp.c @@ -336,6 +336,11 @@ void skl_dsp_free(struct sst_dsp *dsp) skl_ipc_int_disable(dsp); free_irq(dsp->irq, dsp); + dsp->cl_dev.ops.cl_cleanup_controller(dsp); + skl_cldma_int_disable(dsp); + skl_ipc_op_int_disable(dsp); + skl_ipc_int_disable(dsp); + skl_dsp_disable_core(dsp); } EXPORT_SYMBOL_GPL(skl_dsp_free); |