Skip to content

Commit

Permalink
ASoC: Intel: Don't issue ipc when processing response
Browse files Browse the repository at this point in the history
Make sure we dont issue IPC when we are processing a response.

Signed-off-by: Paweł Piskorski <pawel.piskorski@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Paweł Piskorski authored and Mark Brown committed Aug 1, 2014
1 parent 97cfc75 commit 94ce334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sound/soc/intel/sst-haswell-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 94ce334

Please sign in to comment.