ASoC: SOF: handle paused streams during system suspend
Subsystems (3)
Kai Vehmanen
reviewerPATCH 1/1 ASoC: SOF: handle paused streams during system suspend
From: Ranjani Sridharan <[email protected]>
During system suspend, paused streams do not get suspended. Therefore, we need to explicitly free these PCMs in the DSP and free the associated DAPM widgets so that they can be set up again during resume.
--- sound/soc/sof/pcm.c | 5 ++- sound/soc/sof/sof-audio.c | 74 +++++++++++++++++++++++++++++++++++++-- sound/soc/sof/sof-audio.h | 2 ++ 3 files changed, 76 insertions(+), 5 deletions(-)
sound/soc/sof/pcm.c +2 -3
@@ -100,9 +100,8 @@ void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream) }EXPORT_SYMBOL (snd_sof_pcm_period_elapsed); -static int sof_pcm_dsp_pcm_free (struct snd_pcm_substream *substream, -struct snd_sof_dev *sdev, -struct snd_sof_pcm *spcm) +int sof_pcm_dsp_pcm_free (struct snd_pcm_substream *substream,struct snd_sof_dev *sdev, +struct snd_sof_pcm *spcm) {struct sof_ipc_stream stream;struct sof_ipc_reply reply;
sound/soc/sof/sof-audio.c +72 -2
98 lines not on this page · raw message
sound/soc/sof/sof-audio.h +2 -0
@@ -265,4 +265,6 @@ int sof_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);/* PCM */ int sof_widget_list_setup (struct snd_sof_dev *sdev,struct snd_sof_pcm *spcm,int dir);int sof_widget_list_free (struct snd_sof_dev *sdev,struct snd_sof_pcm *spcm,int dir); +int sof_pcm_dsp_pcm_free (struct snd_pcm_substream *substream,struct snd_sof_dev *sdev, +struct snd_sof_pcm *spcm);#endif
base-commit: 65c16dd2942f4476a3f96a2625b1475c6137c09a
Signature · 1 line
2.33.0
Mark Brown
maintainerQuoted 8 lines · Kai Vehmanen
From: Ranjani Sridharan <[email protected]>
During system suspend, paused streams do not get suspended. Therefore, we need to explicitly free these PCMs in the DSP and free the associated DAPM widgets so that they can be set up again during resume.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: handle paused streams during system suspend
commit: 96da174024b9c63bd5d3358668d0bc12677be877
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