[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250109093822.5745-1-mstrozek@opensource.cirrus.com>
Date: Thu, 9 Jan 2025 09:38:22 +0000
From: Maciej Strozek <mstrozek@...nsource.cirrus.com>
To: Mark Brown <broonie@...nel.org>
CC: Liam Girdwood <lgirdwood@...il.com>, <linux-sound@...r.kernel.org>,
<patches@...nsource.cirrus.com>, <linux-kernel@...r.kernel.org>,
"Maciej
Strozek" <mstrozek@...nsource.cirrus.com>
Subject: [PATCH] ASoC: cs42l43: Add codec force suspend/resume ops
This ensures codec will resume after suspending during playback.
Signed-off-by: Maciej Strozek <mstrozek@...nsource.cirrus.com>
---
sound/soc/codecs/cs42l43.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c
index bee032c3ebbe..d2a2daefc2ec 100644
--- a/sound/soc/codecs/cs42l43.c
+++ b/sound/soc/codecs/cs42l43.c
@@ -2404,6 +2404,7 @@ static int cs42l43_codec_runtime_resume(struct device *dev)
static const struct dev_pm_ops cs42l43_codec_pm_ops = {
RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL)
+ SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
};
static const struct platform_device_id cs42l43_codec_id_table[] = {
--
2.39.5
Powered by blists - more mailing lists