ASoC: Intel: avs: Wake from D0ix when starting streaming

It is recommended to keep the DSP domain in full-power when starting DMA
engines.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://msgid.link/r/20240405090929.1184068-11-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Cezary Rojewski 2024-04-05 11:09:26 +02:00 committed by Mark Brown
parent d58275f474
commit 30df76bbcb
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -109,6 +109,10 @@ int avs_icl_log_buffer_offset(struct avs_dev *adev, u32 core)
bool avs_icl_d0ix_toggle(struct avs_dev *adev, struct avs_ipc_msg *tx, bool wake)
{
/* Full-power when starting DMA engines. */
if (tx->glb.set_ppl_state.state == AVS_PPL_STATE_RUNNING)
return true;
/* Payload-less IPCs do not take part in d0ix toggling. */
return tx->size;
}