mbox series

[0/6] ASoC: cs35l56: Add system suspend handling

Message ID 168122674164.26.7343142697839184525@mailman-core.alsa-project.org (mailing list archive)
Headers show
Series ASoC: cs35l56: Add system suspend handling | expand

Message

Richard Fitzgerald April 11, 2023, 3:25 p.m. UTC
This set of patches adds handling for system suspend.
Patches 1..4 make some code changes that simplify the
suspend implementation, mainly to avoid race conditions.

There are two seperate aspects to suspend, and these have
been done as two patches:
- the main suspend-resume handling,
- re-loading the firmware if necessary after resume.

Richard Fitzgerald (6):
  ASoC: cs35l56: Remove quick-cancelling of dsp_work()
  ASoC: cs35l56: Use DAPM widget for firmware PLAY/PAUSE
  ASoC: cs35l56: Skip first init_completion wait in dsp_work if
    init_done
  ASoC: cs35l56: Always wait for firmware boot in runtime-resume
  ASoC: cs35l56: Add basic system suspend handling
  ASoC: cs35l56: Re-patch firmware after system suspend

 include/sound/cs35l56.h        |   4 +
 sound/soc/codecs/cs35l56-sdw.c |  36 ++++
 sound/soc/codecs/cs35l56.c     | 335 ++++++++++++++++++++++++++-------
 sound/soc/codecs/cs35l56.h     |   7 +-
 4 files changed, 308 insertions(+), 74 deletions(-)