Skip to content

Commit 8f0defd

Browse files
mstrozekbroonie
authored andcommitted
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>
1 parent 080505f commit 8f0defd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/codecs/cs42l43.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,6 +2404,7 @@ static int cs42l43_codec_runtime_resume(struct device *dev)
24042404

24052405
static const struct dev_pm_ops cs42l43_codec_pm_ops = {
24062406
RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL)
2407+
SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
24072408
};
24082409

24092410
static const struct platform_device_id cs42l43_codec_id_table[] = {

0 commit comments

Comments
 (0)