Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de251d77 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

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: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a825ac76
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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);