]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: hda/ptl: Move mic privacy change notification sending to a work
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 31 Mar 2025 07:06:23 +0000 (10:06 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 31 Mar 2025 11:51:55 +0000 (12:51 +0100)
commit7d783d9074cb1d54179ca03df514fe4b0bbae5ab
tree680cf58d3c0d51d305bc7b105db2ad51d40aa974
parent7eccc86e90f04a0d758d16c08627a620ac59604d
ASoC: SOF: hda/ptl: Move mic privacy change notification sending to a work

IPC message cannot be sent from the irq thread directly as the message will
not receive the reply (interrupts are disabled) and it will time out - the
reply is going to be received right after the we leave the irq thread.
This is a different case compared to the delayed IPC messages due to DSP
busy state.

Add support for sending the mic privacy change notification to the firmware
from a work instead of the process callback.

The work needs to be canceled if there is a chance that it might be running
on module remove or before system/runtime suspend.

Fixes: 4a43c3241ec3 ("ASoC: SOF: Intel: ptl: Add support for mic privacy")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20250331070623.5985-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h
sound/soc/sof/intel/ptl.c