Skip to content

Commit 33cb048

Browse files
ujfalusiplbossart
authored andcommitted
fixup! ASoC: SOF: ipc4: implement pm ctx_save callback
Add comment for ctx_save and note the non existent ctx_restore callback implementation Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent dacec80 commit 33cb048

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

sound/soc/sof/ipc4.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,15 @@ static int sof_ipc4_set_core_state(struct snd_sof_dev *sdev, int core_idx, bool
618618
return sof_ipc4_tx_msg(sdev, &msg, msg.data_size, NULL, 0, false);
619619
}
620620

621+
/*
622+
* The context save callback is used to send a message to the firmware notifying
623+
* it that the primary core is going to be turned off, which is used as an
624+
* indication to prepare for a full power down, thus preparing for IMR boot
625+
* (when supported)
626+
*
627+
* Note: in IPC4 there is no message used to restore context, thus no context
628+
* restore callback is implemented
629+
*/
621630
static int sof_ipc4_ctx_save(struct snd_sof_dev *sdev)
622631
{
623632
return sof_ipc4_set_core_state(sdev, SOF_DSP_PRIMARY_CORE, false);

0 commit comments

Comments
 (0)