]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: samsung: i2s: Move saving and restoring regs to runtime pm operations
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 29 Dec 2016 11:34:05 +0000 (12:34 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 31 Dec 2016 18:36:20 +0000 (18:36 +0000)
commite7e52dfc68a2160570c7ec51415e391961160edb
treed565526047b972ddd07c5eb6970ce2e379e6f6fd
parentdc938ddb56283a0b71d987e7ecd4be90390985d6
ASoC: samsung: i2s: Move saving and restoring regs to runtime pm operations

This patch moves saving and restoring I2S registers to runtime PM
operations, what prepares the driver to operate with audio power domain.
When support for audio power domain is enabled and the domain is being
turned off, the I2S module will loose its context (registers), so runtime
callbacks have to handle it. System sleep suspend/resume operation are
implemented on top of runtime PM operations with generic
pm_runtime_force_suspend/resume helpers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c