Skip to content

Commit 7a2f8c2

Browse files
authored
Merge pull request #138 from ranj063/ctx-restore
ipc: fix ipc reply for CTX_RESTORE
2 parents 956585e + c172b0d commit 7a2f8c2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ipc/handler.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,14 @@ static int ipc_pm_context_save(uint32_t header)
581581

582582
static int ipc_pm_context_restore(uint32_t header)
583583
{
584-
// struct sof_ipc_pm_ctx pm_ctx = _ipc->comp_data;
584+
struct sof_ipc_pm_ctx *pm_ctx = _ipc->comp_data;
585585

586586
trace_ipc("PMr");
587587

588-
/* now restore the context */
588+
/* restore context placeholder */
589+
mailbox_hostbox_write(0, pm_ctx, sizeof(*pm_ctx));
589590

590-
return 0;
591+
return 1;
591592
}
592593

593594
static int ipc_glb_pm_message(uint32_t header)

0 commit comments

Comments
 (0)