linux icon indicating copy to clipboard operation
linux copied to clipboard

ASoC: SOF: Intel: Add support for hardware mic privacy change reporting

Open ujfalusi opened this issue 11 months ago • 3 comments

Hi,

ACE3 (Panther Lake) introduced support for microphone privacy feature which
can - in hardware - mute incoming audio data based on a state of a physical
switch.
The change in the privacy state is delivered through interface IP blocks
and can only be handled by the link owner.
In Intel platforms Soundwire is for example host owned, so the interrupt
can only be handled by the host.

Since the input stream is going to be muted by hardware, the host needs to
send a message to firmware about the change in privacy so it can execute a
fade out/in to enhance user experience.

The support for microphone privacy can be queried from the HW_CONFIG data
under the INTEL_MIC_PRIVACY_CAP tuple. This is Intel specific data, the
core will pass it to platform code if the intel_configure_mic_privacy()
callback is provided.

Platform code can call sof_ipc4_mic_privacy_state_change() to send the IPC
message to the firmware on state change.

This series will change how we set up dsp_ops for ACE versions to make it cleaner what needs to be handled differently in each iteration of the architecture and adds the needed definitions and code to handle the mic privacy via vendor specific SHIM register.

ujfalusi avatar Jan 29 '25 12:01 ujfalusi

Changes since v1:

  • rename hdac_bus_eml_check_mic_privacy() to hdac_bus_eml_is_mic_privacy_changed()
  • rename hdac_bus_eml_get_mic_privacy() to hdac_bus_eml_get_mic_privacy_state()

ujfalusi avatar Feb 07 '25 09:02 ujfalusi

SOFCI TEST

ujfalusi avatar Feb 07 '25 11:02 ujfalusi

Changes since v2:

  • the commit message for the hda-mlink patch rewritten

ujfalusi avatar Feb 13 '25 13:02 ujfalusi

Changes since v3:

  • dropped the hack/debugging patch

ujfalusi avatar Feb 26 '25 08:02 ujfalusi

Changes since v4:

  • Date correct for ptl.c
  • grammar fix in commit message

ujfalusi avatar Feb 26 '25 12:02 ujfalusi

Changes since v5:

  • missed ; is added to hda-mlink.h

ujfalusi avatar Feb 27 '25 08:02 ujfalusi

Changes since v6:

  • moved the ; fix to the correct patch (one up)

ujfalusi avatar Feb 27 '25 11:02 ujfalusi