]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda-ipc: simplify handling of IPC IRQ
authorKeyon Jie <yang.jie@linux.intel.com>
Tue, 30 Apr 2019 23:09:28 +0000 (18:09 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 06:00:32 +0000 (15:00 +0900)
commit8367e1ad4272750644f8e7995ebf2872e66efc9e
tree0cd1b7077a51814ebc7d8ee712b08da8b9bdd1a7
parent9593247d48da3d39832f10fd517ac749387aa810
ASoC: SOF: Intel: hda-ipc: simplify handling of IPC IRQ

When using a shared IRQ between IPC interrupt and stream IOC interrupt,
the interrupt handlers need to check the interrupt source before
scheduling their respective IRQ threads. In the case of IPC handler, it
should check if it is an IPC interrupt before waking up the IPC IRQ
thread.

The IPC IRQ thread, once scheduled, does not need to check the IRQ
source again. So, remove the superfluous check in the thread. Remove the
irq_status field from snd_sof_dev struct also as it is no longer needed.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/hda-ipc.c
sound/soc/sof/sof-priv.h