File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments