summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMaciej Strozek <mstrozek@opensource.cirrus.com>2025-01-09 10:38:22 +0100
committerMark Brown <broonie@kernel.org>2025-01-09 12:15:57 +0100
commit8f0defd2e52d22eb994d7e770b1261caa24917d8 (patch)
tree4d86bc10abe9bc8beda5912ecd6dc612383d3a95 /sound
parentALSA: doc: Add codecs/index.rst to top-level index (diff)
downloadlinux-8f0defd2e52d22eb994d7e770b1261caa24917d8.tar.xz
linux-8f0defd2e52d22eb994d7e770b1261caa24917d8.zip
ASoC: cs42l43: Add codec force suspend/resume ops
This ensures codec will resume after suspending during playback. Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250109093822.5745-1-mstrozek@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs42l43.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c
index 4236f78beec0..83c21c17fb80 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[] = {