linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume
@ 2019-08-27 22:13 Shengjiu Wang
  2019-08-27 12:09 ` [alsa-devel] " Daniel Baluta
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shengjiu Wang @ 2019-08-27 22:13 UTC (permalink / raw)
  To: brian.austin, Paul.Handrigan, lgirdwood, broonie, perex, tiwai,
	alsa-devel, linux-kernel

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>
---
 sound/soc/codecs/cs42xx8.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index 5b049fcdba20..94b1adb088fd 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -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);
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-29 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 22:13 [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume Shengjiu Wang
2019-08-27 12:09 ` [alsa-devel] " Daniel Baluta
2019-08-27 19:57 ` Applied "ASoC: cs42xx8: Force suspend/resume during system suspend/resume" to the asoc tree Mark Brown
2019-08-29 10:03 ` [alsa-devel] [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).