]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: SOF: ipc4: Add set_core_state pm_ops implementation
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 10 Jun 2022 08:35:47 +0000 (11:35 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 12:31:41 +0000 (13:31 +0100)
commitbd3df9ff25b32b66630c283bb2e065e8bb822e72
tree5c8641c29719cdb9d2038a99a8684fb11cf69eb1
parent0a047dafefafbccc931fab2d187ce75c302088d5
ASoC: SOF: ipc4: Add set_core_state pm_ops implementation

IPC4 uses the SET_DX message to enable/disable cores managed by the DSP.
The dx_state.core_mask indicates which core is going to change state,
the dx_state.dx_mask is to power on (1) or off (0) the core.
In the dx_mask only those bits (cores) checked which bit is set in the
core_mask, other bits (cores) ignored.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220610083549.16773-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/ipc4/header.h
sound/soc/sof/ipc4.c