]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: imx8: Add runtime PM / System PM support
authorDaniel Baluta <daniel.baluta@nxp.com>
Fri, 19 Nov 2021 09:43:16 +0000 (11:43 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Nov 2021 15:40:09 +0000 (15:40 +0000)
commit6254d9e1c0b1db4863c7bac0e5ff90dc1681275c
tree02d912ada602968c71ef60792439f512c085a4b4
parent20481f08250c034fd5c9fb82af2277a5d5944268
ASoC: SOF: imx8: Add runtime PM / System PM support

Handle clocks and mailbox channels at runtime suspend/resume
in order to save power.

DSP runtime PM uses a timeout of 2s. If device
is idle for 2s system will enter runtime suspend.

Because SOF state machine assumes that even if the DSP wasn't previously
active at a System resume, will re-load the firmware we need to make sure
that all needed resources are active.

Kernel core will take care of enabling the PD, we need to make sure that
we request the MU channels.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211119094319.81674-3-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c