ASoC: SOF: Intel: mtl: add core_get & put support on MeterLake platforms
authorRander Wang <rander.wang@intel.com>
Tue, 23 May 2023 10:32:16 +0000 (13:32 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 23 May 2023 12:55:59 +0000 (13:55 +0100)
commitc6d15567a4d5dd51ecccc332d514c6dc21bce652
tree179928f6a50dc5e8a9a5e77e954fbbd9130a4c58
parent63def6c17134141a17997e06d914d1b573ddceaf
ASoC: SOF: Intel: mtl: add core_get & put support on MeterLake platforms

In core_get case, driver can power up primary core and don't need to send
ipc message to fw. Non-primary core should be powered up by fw with ipc
message.

In core_put case, driver should first send ipc message to fw to disable dsp
core then power down primary core if the target is primary core.

Signed-off-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230523103217.20412-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/mtl.c