ASoC: mchp-pdmc: use runtime pm for clock power saving
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 13 Dec 2022 11:28:49 +0000 (13:28 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 25 Dec 2022 23:33:16 +0000 (23:33 +0000)
commite8c8e9de4ee3e9e1231b4f179c3f0e340bc2b1cf
tree1691f1bdff03e422a2dbd1a5bdcb787ac0654943
parentcfec019399f6a90ae7b73b0edff053d10ba1ad25
ASoC: mchp-pdmc: use runtime pm for clock power saving

Implement clock power saving taking advantage of runtime PM infrastructure.
This simplifies the code and allow using the same infrastructure for
suspend to RAM functionalities.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20221213112851.89212-3-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-pdmc.c