diff mbox series

ASoC: cs42l43: Add codec force suspend/resume ops

Message ID 20250109093822.5745-1-mstrozek@opensource.cirrus.com (mailing list archive)
State New
Headers show
Series ASoC: cs42l43: Add codec force suspend/resume ops | expand

Commit Message

Maciej Strozek Jan. 9, 2025, 9:38 a.m. UTC
This ensures codec will resume after suspending during playback.

Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
---
 sound/soc/codecs/cs42l43.c | 1 +
 1 file changed, 1 insertion(+)

--
2.39.5

Comments

Charles Keepax Jan. 9, 2025, 10:09 a.m. UTC | #1
On Thu, Jan 09, 2025 at 09:38:22AM +0000, Maciej Strozek wrote:
> 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>

Thanks,
Charles
Mark Brown Jan. 9, 2025, 1:18 p.m. UTC | #2
On Thu, 09 Jan 2025 09:38:22 +0000, Maciej Strozek wrote:
> This ensures codec will resume after suspending during playback.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: cs42l43: Add codec force suspend/resume ops
      commit: 8f0defd2e52d22eb994d7e770b1261caa24917d8

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

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[] = {