Skip to content

Commit de0b031

Browse files
committed
fixup! ASoC: SOF: Add support for on-demand DSP boot
Do not send notification about privacy change if the fw is not booted up. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent a759a73 commit de0b031

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

sound/soc/sof/ipc4.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,19 @@ void sof_ipc4_mic_privacy_state_change(struct snd_sof_dev *sdev, bool state)
892892
struct sof_ipc4_msg msg;
893893
u32 data = state;
894894

895+
/*
896+
* The mic privacy change notification's role is to notify the running
897+
* firmware that there is a change in mic privacy state from whatever
898+
* the state was before - since the firmware booted up or since the
899+
* previous change during runtime.
900+
*
901+
* If the firmware has not been booted up, there is no need to send
902+
* change notification (the firmware is not booted up).
903+
* The firmware checks the current state during its boot.
904+
*/
905+
if (sdev->fw_state != SOF_FW_BOOT_COMPLETE)
906+
return;
907+
895908
msg.primary = SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG);
896909
msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST);
897910
msg.primary |= SOF_IPC4_MOD_ID(SOF_IPC4_MOD_INIT_BASEFW_MOD_ID);

0 commit comments

Comments
 (0)