ASoC: rt9120: Make dev PM runtime bind AsoC component PM
authorChiYuan Huang <cy_huang@richtek.com>
Thu, 29 Dec 2022 08:03:53 +0000 (16:03 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 29 Dec 2022 13:21:57 +0000 (13:21 +0000)
commit7161bd540eebebae2bbe8c79de25d8caf12dbf78
tree8c2942d8501ed3efddfbd11fe642dbe8b5f18132
parent8a54f666db581bbf07494cca44a0124acbced581
ASoC: rt9120: Make dev PM runtime bind AsoC component PM

RT9120 uses PM runtime autosuspend to decrease the frequently on/off
spent time. This exists one case, when pcm is closed and dev PM is
waiting for autosuspend time expired to enter runtime suspend state.
At the mean time, system is going to enter suspend, dev PM runtime
suspend won't be called. It makes the rt9120 suspend consumption
current not as expected.

This patch can fix the rt9120 dev PM issue during runtime autosuspend
and system suspend by binding dev PM runtime and ASoC component PM.

Fixes: 80b949f332e3 ("ASoC: rt9120: Use pm_runtime and regcache to optimize 'pwdnn' logic")
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/1672301033-3675-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt9120.c