]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: Intel: hda-mlink: Add support for mic privacy in VS SHIM registers
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 7 Mar 2025 11:28:14 +0000 (13:28 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 8 Mar 2025 16:06:41 +0000 (16:06 +0000)
commit0978e8207b61ac6d51280e5d28ccfff75d653363
tree08b4a3006ad1ba93db3e2e8d81ec1ec3b87fcac3
parenteea84a7f0cdb693c261a7cf84bd4b3d81479c9a6
ASoC: SOF: Intel: hda-mlink: Add support for mic privacy in VS SHIM registers

New register has been introduced with PTL in the vendor specific SHIM
registers, outside of the IPs itself for microphone privacy status handling.

Via the PVCCS register the current microphone privacy status can be checked
and the interrupt generation on status change can be enabled/disabled.
The status change interrupt is routed to the owner of the interface
(DSP/host).

The PVCCS is provided for each sublink under the IP to make it possible to
control the interrupt generation per sublink.
On status change the MDSTSCHG bit needs to be cleared for all sublink of
the interface to be able to detect future changes in privacy.

The status bit (MDSTS) is volatile in all PVCCS register, it reflects the
current state of the GPIO signal.

Microphone privacy is a hardware feature (if enabled and configured that
way), the host has only passive, monitoring role.

The added functions are generic to be future proof if the mic privacy
support is extended beyond Soundwire and DMIC links.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://patch.msgid.link/20250307112816.1495-7-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/hda-mlink.h
sound/soc/sof/intel/hda-mlink.c