]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ASoC: Intel: reset the DSP while suspending
authorVinod Koul <vinod.koul@intel.com>
Thu, 12 Feb 2015 04:30:00 +0000 (10:00 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 23 Feb 2015 15:39:00 +0000 (00:39 +0900)
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>
sound/soc/intel/sst/sst.c

index 97234ec4e416b204f2dbbc23f1053b1b4f54307a..11c578651c1c8cc778904ebb7665587cde44beef 100644 (file)
@@ -416,6 +416,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);