Skip to content

fixup! ASoC: SOF: Add support for on-demand DSP boot#5457

Merged
ujfalusi merged 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/on-demand-privacy-01
Jun 18, 2025
Merged

fixup! ASoC: SOF: Add support for on-demand DSP boot#5457
ujfalusi merged 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/on-demand-privacy-01

Conversation

@ujfalusi
Copy link
Collaborator

Do not send notification about privacy change if the fw is not booted up.

*/
if (sdev->fw_state != SOF_FW_BOOT_COMPLETE)
return 0;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Will firmware check the privacy state when it boots up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, it does

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

and if the firmware is not booted up then it does not need to be notified of a change (as it is not booted up)

Copy link
Collaborator

Choose a reason for hiding this comment

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

and if the firmware is not booted up then it does not need to be notified of a change (as it is not booted up)

Right, I was just wondering do we need to boot up the firmware when the privacy state is changed. Apparently no, thanks.

bardliao
bardliao previously approved these changes Jun 12, 2025
@ujfalusi ujfalusi force-pushed the peter/sof/pr/on-demand-privacy-01 branch from 6316a9b to a50c7b1 Compare June 13, 2025 06:35
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Code change is good, but the inline comment needs to be clarified.

* If the firmware has not been booted up, there is no need to send
* change notification. The firmware only needs to be aware of a change,
* when it boots up the privacy state is checked by the firmware, it
* only needs to be notified if it has changed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Compiler error on grammar. "The firmware only needs.... , when it boots up....., it only needs to be notitied." Is the main point the notification does not need to be sent, if the firmware is not booted up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

when the firmware is not booted it does not care about change, it is not booted, let me try to reword this.

@ujfalusi ujfalusi force-pushed the peter/sof/pr/on-demand-privacy-01 branch from a50c7b1 to 6878af6 Compare June 17, 2025 06:05
@ujfalusi
Copy link
Collaborator Author

Changes since v1:

  • comment section updated for clarity

kv2019i
kv2019i previously approved these changes Jun 17, 2025
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

I can understand the explanation now.

*
* If the firmware has not been booted up, there is no need to send
* change notification (the firmware is not booted up).
* The firmware checks the current state during it's boot.
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: s/it's boot/its 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>
@ujfalusi ujfalusi force-pushed the peter/sof/pr/on-demand-privacy-01 branch from 6878af6 to 1dc068a Compare June 17, 2025 09:35
@ujfalusi
Copy link
Collaborator Author

Changes since v2:

  • typo fixed in comment section (it's -> its)

@ujfalusi ujfalusi merged commit de0b031 into thesofproject:topic/sof-dev Jun 18, 2025
9 of 16 checks passed
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.

4 participants