diff options
author | Mark Brown <broonie@kernel.org> | 2022-06-10 20:28:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-10 20:28:20 +0300 |
commit | 55e1c007e1bd3b30efac683f6d7eba6d4a13928d (patch) | |
tree | c88329ded80fb262cbb7678b43e0d0bb08638619 /include/sound | |
parent | 25ebeeebcb5493b42b6d43e4f4c49823782b83af (diff) | |
parent | 63b9069653a710b08d5fd174ac05d43711356541 (diff) | |
download | linux-55e1c007e1bd3b30efac683f6d7eba6d4a13928d.tar.xz |
ASoC: SOF: Add support ctx_save with IPC4
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
The context save functionality with IPC4 is triggered by sending a message to
the firmware about the pending power down of the primary core by the host.
In order to have this functionality implemented in a clean way we need to
introduce a new IPC level PM ops for core state management and use that instead
of open coding IPC messages here and there.
The first patch updates the ctx store/ctx_restore documentation to clarify that
they are optional.
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/sof/ipc4/header.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/sof/ipc4/header.h b/include/sound/sof/ipc4/header.h index b8b8e5b5e3e1..a795deacc2ea 100644 --- a/include/sound/sof/ipc4/header.h +++ b/include/sound/sof/ipc4/header.h @@ -385,6 +385,14 @@ struct sof_ipc4_fw_version { uint16_t build; } __packed; +/* Payload data for SOF_IPC4_MOD_SET_DX */ +struct sof_ipc4_dx_state_info { + /* core(s) to apply the change */ + uint32_t core_mask; + /* core state: 0: put core_id to D3; 1: put core_id to D0 */ + uint32_t dx_mask; +} __packed __aligned(4); + /* Reply messages */ /* |