Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture hw mute indicator test code #5310

Draft
wants to merge 4 commits into
base: topic/sof-dev
Choose a base branch
from

Conversation

jsarha
Copy link

@jsarha jsarha commented Jan 28, 2025

There are some missing pieces in this code, but I wanted to make it available before I go to short vacation in the end of the week. The missing pieces are:

  • no support for handling SWD linux driver hw mute status updates
  • the snd_ipc4_global_capture_hw_mute_force() callback is not connected to DSP power-state (have not found an appropriate place yet... reverse engineering continues)

To test the code, this SOF draft PR can be used: #5310

When integrating the pieces to SOF mic_privacy code, the driver side expects a privacy state update when the DSP has booted up.

There are still unsolved issues to this concept (how to combine SDW/host-linux and DMIC/sof-FW mute status to one indicator) and they need to be resolved, before this work can be finished.

Jyri Sarha added 2 commits January 27, 2025 23:34
Add enum for global kcontrol IDs and
SOF_IPC4_KCONTROL_GLOBAL_CAPTURE_HW_MUTE in it.

Signed-off-by: Jyri Sarha <[email protected]>
…rams

Add SOF_IPC4_FW_GLOBAL_KCONTROL_MASK to fw_config_params. The purpose
is to inform the driver which global kcontrols are supported by the
FW.

Signed-off-by: Jyri Sarha <[email protected]>
@jsarha jsarha changed the title [DNM] UGLY HACK: Capture hw mute indicator test code Capture hw mute indicator test code Jan 28, 2025
sound/soc/sof/ipc4-control.c Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
sound/soc/sof/ipc4-control.c Outdated Show resolved Hide resolved
@@ -119,4 +119,6 @@ void sof_ipc4_update_cpc_from_manifest(struct snd_sof_dev *sdev,
size_t sof_ipc4_find_debug_slot_offset_by_type(struct snd_sof_dev *sdev,
u32 slot_type);

void snd_ipc4_global_capture_hw_mute_force(struct snd_sof_dev *sdev, bool force);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the calling of this is under works?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any good suggestion of where to follow DSP powerstate is apreciated.

@jsarha jsarha force-pushed the capture-hw-mute-indicator branch 3 times, most recently from a77b6d4 to 50568cb Compare January 28, 2025 16:45
Jyri Sarha added 2 commits January 28, 2025 18:51
Implement global kcontrol concept and add capture hw mute indicator
implementation in it.

Signed-off-by: Jyri Sarha <[email protected]>
…cator

This is inteded for driving the mute indicator following dsp power
state. If dsp is powerred down the capture muted state should be
indicated.

Signed-off-by: Jyri Sarha <[email protected]>
@jsarha jsarha force-pushed the capture-hw-mute-indicator branch from 50568cb to a61cf73 Compare January 29, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants