ASoC: soc-pcm/soc-compress: don't use snd_soc_dapm_stream_stop()
Subsystems (3)
PATCH 1/1 ASoC: soc-pcm/soc-compress: don't use snd_soc_dapm_stream_stop()
From: Kuninori Morimoto <[email protected]>
commit b0edff42360ab4 ("ASoC: soc-pcm/soc-compress: use snd_soc_dapm_stream_stop() for SND_SOC_DAPM_STREAM_STOP") uses snd_soc_dapm_stream_stop() for soc_compr_free_fe() and dpcm_fe_dai_shutdown() because it didn't care about pmdown_time. But, it didn't need to care.
This patch rollback to original code.
Some system will wait unneeded timed-out without this patch. Special Thanks for reporting to Chris Gorman.
... intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3 intel_sst_acpi 808622A8:00: fw returned err -16 sst-mfld-platform sst-mfld-platform: ASoC: PRE_PMD: pcm0_in event failed: -16 ...
---
Quoted 1 line
Mark
This patch is for asoc/for-5.6 branch
sound/soc/soc-compress.c | 2 +- sound/soc/soc-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-compress.c +1 -1
@@ -299,7 +299,7 @@ static int soc_compr_free_fe(struct snd_compr_stream *cstream)for_each_dpcm_be (fe, stream, dpcm) dpcm->state =SND_SOC_DPCM_LINK_STATE_FREE ; -snd_soc_dapm_stream_stop (fe, stream); +dpcm_dapm_stream_event (fe, stream,SND_SOC_DAPM_STREAM_STOP ); fe->dpcm[stream].state =SND_SOC_DPCM_STATE_CLOSE ; fe->dpcm[stream].runtime_update =SND_SOC_DPCM_UPDATE_NO ;
sound/soc/soc-pcm.c +1 -1
@@ -2006,7 +2006,7 @@ static int dpcm_fe_dai_shutdown(struct snd_pcm_substream *substream)soc_pcm_close (substream);/* run the stream event for each BE */ -snd_soc_dapm_stream_stop (fe, stream); +dpcm_dapm_stream_event (fe, stream,SND_SOC_DAPM_STREAM_STOP ); fe->dpcm[stream].state =SND_SOC_DPCM_STATE_CLOSE ;dpcm_set_fe_update_state (fe, stream,SND_SOC_DPCM_UPDATE_NO );
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: soc-pcm/soc-compress: don't use snd_soc_dapm_stream_stop()" to the asoc tree
The patch
ASoC: soc-pcm/soc-compress: don't use snd_soc_dapm_stream_stop()
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
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
From 1c5312308c96556ae209e8eb1423c38d4a113759 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <[email protected]>
Date: Fri, 21 Feb 2020 10:25:18 +0900
Subject: [PATCH] ASoC: soc-pcm/soc-compress: don't use
snd_soc_dapm_stream_stop()
commit b0edff42360ab4 ("ASoC: soc-pcm/soc-compress: use snd_soc_dapm_stream_stop() for SND_SOC_DAPM_STREAM_STOP") uses snd_soc_dapm_stream_stop() for soc_compr_free_fe() and dpcm_fe_dai_shutdown() because it didn't care about pmdown_time. But, it didn't need to care.
This patch rollback to original code.
Some system will wait unneeded timed-out without this patch. Special Thanks for reporting to Chris Gorman.
... intel_sst_acpi 808622A8:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3 intel_sst_acpi 808622A8:00: fw returned err -16 sst-mfld-platform sst-mfld-platform: ASoC: PRE_PMD: pcm0_in event failed: -16 ...
--- sound/soc/soc-compress.c | 2 +- sound/soc/soc-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-compress.c +1 -1
@@ -299,7 +299,7 @@ static int soc_compr_free_fe(struct snd_compr_stream *cstream)for_each_dpcm_be (fe, stream, dpcm) dpcm->state =SND_SOC_DPCM_LINK_STATE_FREE ; -snd_soc_dapm_stream_stop (fe, stream); +dpcm_dapm_stream_event (fe, stream,SND_SOC_DAPM_STREAM_STOP ); fe->dpcm[stream].state =SND_SOC_DPCM_STATE_CLOSE ; fe->dpcm[stream].runtime_update =SND_SOC_DPCM_UPDATE_NO ;
sound/soc/soc-pcm.c +1 -1
@@ -2006,7 +2006,7 @@ static int dpcm_fe_dai_shutdown(struct snd_pcm_substream *substream)soc_pcm_close (substream);/* run the stream event for each BE */ -snd_soc_dapm_stream_stop (fe, stream); +dpcm_dapm_stream_event (fe, stream,SND_SOC_DAPM_STREAM_STOP ); fe->dpcm[stream].state =SND_SOC_DPCM_STATE_CLOSE ;dpcm_set_fe_update_state (fe, stream,SND_SOC_DPCM_UPDATE_NO );
Signature · 1 line
2.20.1