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 <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 080505f commit 8f0defd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)