OSDN Git Service

ASoC: mchp-spdifrx: add runtime pm support
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 30 Jan 2023 12:06:46 +0000 (14:06 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 30 Jan 2023 18:36:25 +0000 (18:36 +0000)
commitc7db2a59438959bc881bc5722abf0d0a38681c2b
tree8e4f8195d2aae2f9f1b672cefa3ac8ed386bd3c6
parentddce4aeccacb6f575cbfad623da5f0deb2592baf
ASoC: mchp-spdifrx: add runtime pm support

Add runtime PM support for Microchip SPDIFRX driver. On runtime suspend
the clocks are disabled and regmap is set in caching mode. On runtime
resume the clocks are enabled and regmap is synced with the device.

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