]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: cs42xx8: Force suspend/resume during system suspend/resume
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 27 Aug 2019 22:13:46 +0000 (18:13 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 19:39:46 +0000 (20:39 +0100)
Use force_suspend/resume to make sure clocks are disabled/enabled
accordingly during system suspend/resume.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/1566944026-18113-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42xx8.c

index 5b049fcdba2013ee0398653bbf1f1ef8710620b9..94b1adb088fde0ecf639b7712fcc021cc9989253 100644 (file)
@@ -684,6 +684,8 @@ static int cs42xx8_runtime_suspend(struct device *dev)
 #endif
 
 const struct dev_pm_ops cs42xx8_pm = {
+       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+                               pm_runtime_force_resume)
        SET_RUNTIME_PM_OPS(cs42xx8_runtime_suspend, cs42xx8_runtime_resume, NULL)
 };
 EXPORT_SYMBOL_GPL(cs42xx8_pm);