Browse Source

ASoC: Intel: reset the DSP while suspending

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>
Signed-off-by: Mark Brown <broonie@kernel.org>
Vinod Koul 10 years ago
parent
commit
de251d773b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sound/soc/intel/sst/sst.c

+ 1 - 0
sound/soc/intel/sst/sst.c

@@ -416,6 +416,7 @@ static int intel_sst_runtime_suspend(struct device *dev)
 	synchronize_irq(ctx->irq_num);
 	synchronize_irq(ctx->irq_num);
 	flush_workqueue(ctx->post_msg_wq);
 	flush_workqueue(ctx->post_msg_wq);
 
 
+	ctx->ops->reset(ctx);
 	/* save the shim registers because PMC doesn't save state */
 	/* save the shim registers because PMC doesn't save state */
 	sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64);
 	sst_save_shim64(ctx, ctx->shim, ctx->shim_regs64);