diff mbox

[08/13] ASoC: Intel: reset the DSP while suspending

Message ID 1423715405-4562-9-git-send-email-vinod.koul@intel.com (mailing list archive)
State Accepted
Commit de251d773bb214fa5e7666a0da1225528e07da5e
Headers show

Commit Message

Vinod Koul Feb. 12, 2015, 4:30 a.m. UTC
The manual recommends that we reset the DSP when we suspend so add that in
runtime suspend handler

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/intel/sst/sst.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
index 0fb1b0ea164c..ea85789641f2 100644
--- a/sound/soc/intel/sst/sst.c
+++ b/sound/soc/intel/sst/sst.c
@@ -412,6 +412,7 @@  static int intel_sst_runtime_suspend(struct device *dev)
 	synchronize_irq(ctx->irq_num);
 	flush_workqueue(ctx->post_msg_wq);
 
+	ctx->ops->reset(ctx);
 	/* save the shim registers because PMC doesn't save state */
 	sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64);