Skip to content

Commit

Permalink
ASoC: Intel: save and restore the CSR register
Browse files Browse the repository at this point in the history
The IPC driver saved only IMR register, we need to save the CSR as well, so
add it

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Vinod Koul authored and Mark Brown committed Feb 23, 2015
1 parent b3ec1c3 commit a825ac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/intel/sst/sst.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ static inline void sst_save_shim64(struct intel_sst_drv *ctx,

spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags);

shim_regs->imrx = sst_shim_read64(shim, SST_IMRX),
shim_regs->imrx = sst_shim_read64(shim, SST_IMRX);
shim_regs->csr = sst_shim_read64(shim, SST_CSR);


spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags);
}
Expand All @@ -367,6 +369,7 @@ static inline void sst_restore_shim64(struct intel_sst_drv *ctx,
*/
spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags);
sst_shim_write64(shim, SST_IMRX, shim_regs->imrx),
sst_shim_write64(shim, SST_CSR, shim_regs->csr),
spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags);
}

Expand Down

0 comments on commit a825ac7

Please sign in to comment.