-
Notifications
You must be signed in to change notification settings - Fork 140
Enable ipc4 d0i3 setting #3928
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
Enable ipc4 d0i3 setting #3928
Changes from all commits
ed62ae4
2f3d78e
cf0258d
073343a
30189ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1077,10 +1077,28 @@ static int sof_ipc3_ctx_restore(struct snd_sof_dev *sdev) | |
| return sof_ipc3_ctx_ipc(sdev, SOF_IPC_PM_CTX_RESTORE); | ||
| } | ||
|
|
||
| static int sof_ipc3_set_pm_gate(struct snd_sof_dev *sdev, u32 flags) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe rename to 'set_pm_gate_flags' - which seems to be a better definition of what the functions actually do.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does a bit more than setting flags, it sends the message to firmware to set the 'pm_gate' and the state is described by the 'flags' parameter. |
||
| { | ||
| struct sof_ipc_pm_gate pm_gate; | ||
| struct sof_ipc_reply reply; | ||
|
|
||
| memset(&pm_gate, 0, sizeof(pm_gate)); | ||
|
|
||
| /* configure pm_gate ipc message */ | ||
| pm_gate.hdr.size = sizeof(pm_gate); | ||
| pm_gate.hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE; | ||
| pm_gate.flags = flags; | ||
|
|
||
| /* send pm_gate ipc to dsp */ | ||
| return sof_ipc_tx_message_no_pm(sdev->ipc, &pm_gate, sizeof(pm_gate), | ||
| &reply, sizeof(reply)); | ||
| } | ||
|
|
||
RanderWang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| static const struct sof_ipc_pm_ops ipc3_pm_ops = { | ||
| .ctx_save = sof_ipc3_ctx_save, | ||
| .ctx_restore = sof_ipc3_ctx_restore, | ||
| .set_core_state = sof_ipc3_set_core_state, | ||
| .set_pm_gate = sof_ipc3_set_pm_gate, | ||
| }; | ||
|
|
||
| const struct sof_ipc_ops ipc3_ops = { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.