aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweÅ‚ Piskorski <[email protected]>2014-08-01 23:09:44 +0800
committerMark Brown <[email protected]>2014-08-01 19:11:28 +0100
commit94ce33456dbada5cb6ae1e10bd8895f034de731d (patch)
tree108731007dfcd4860d8a6b7b993ac72dd9c96165
parent97cfc751e1f2c300e093a9d2840aeee075db68d4 (diff)
ASoC: Intel: Don't issue ipc when processing response
Make sure we dont issue IPC when we are processing a response. Signed-off-by: PaweÅ‚ Piskorski <[email protected]> Signed-off-by: Liam Girdwood <[email protected]> Signed-off-by: Jie Yang <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/intel/sst-haswell-ipc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index 1ca71a283761..ae204a6e316b 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -457,9 +457,10 @@ static void ipc_tx_msgs(struct kthread_work *work)
return;
}
- /* if the DSP is busy we will TX messages after IRQ */
+ /* if the DSP is busy, we will TX messages after IRQ.
+ * also postpone if we are in the middle of procesing completion irq*/
ipcx = sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCX);
- if (ipcx & SST_IPCX_BUSY) {
+ if (ipcx & (SST_IPCX_BUSY | SST_IPCX_DONE)) {
spin_unlock_irqrestore(&hsw->dsp->spinlock, flags);
return;
}