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

Commit 94ce3345 authored by Paweł Piskorski's avatar Paweł Piskorski Committed by Mark Brown
Browse files

ASoC: Intel: Don't issue ipc when processing response



Make sure we dont issue IPC when we are processing a response.

Signed-off-by: default avatarPaweł Piskorski <pawel.piskorski@intel.com>
Signed-off-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: default avatarJie Yang <yang.jie@intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 97cfc751
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -457,9 +457,10 @@ static void ipc_tx_msgs(struct kthread_work *work)
		return;
		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);
	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);
		spin_unlock_irqrestore(&hsw->dsp->spinlock, flags);
		return;
		return;
	}
	}