OSDN Git Service

ASoC: stm32: sai: add pm_runtime support
authorOlivier Moysan <olivier.moysan@st.com>
Fri, 11 Sep 2020 08:15:07 +0000 (10:15 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 Sep 2020 14:52:21 +0000 (15:52 +0100)
commit4e723e7565c4031568fb9db18253cfbf6442831d
tree2c3df5eeea9a3f1e21e8da839bd0a56a85cb2eed
parent375e2c352582442783178e6a33c279d6bc9354a2
ASoC: stm32: sai: add pm_runtime support

Enable support of pm_runtime on STM32 SAI driver to allow
SAI power state monitoring.
pm_runtime_put_autosuspend() is called from ASoC framework
on pcm device close.
The pmdown_time delay is available in runtime context, and may be set
in SAI driver to take into account shutdown delay on playback.
However, this shutdown delay is already handled in the DAPMs
of the audio codec linked to SAI CPU DAI.
So, the choice is made, not to support this delay on CPU DAI side.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20200911081507.7276-1-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_sai_sub.c