ASoC: soc-pcm: add missing ret=0 at soc_pcm_open()
PATCH 1/1 ASoC: soc-pcm: add missing ret=0 at soc_pcm_open()
From: Kuninori Morimoto <[email protected]>
commit 140a4532cdb8c ("ASoC: soc-pcm: add soc_pcm_clean() and call it from soc_pcm_open/close()") switched to use soc_pcm_clean() at soc_pcm_open().
But it removed "return 0", and missing "ret = 0", because of it, it always return -EINVAL eventhough no error. This patch adds missing "ret = 0" for success case.
--- sound/soc/soc-pcm.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/soc-pcm.c +1 -0
@@ -796,6 +796,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) runtime->hw.rate_max); dynamic:snd_soc_runtime_activate (rtd, substream->stream); + ret =0 ; err:mutex_unlock (&rtd->card->pcm_mutex); pm_err:
Signature · 1 line
2.25.1
Hi
Quoted 6 lines · Kuninori Morimoto
From: Kuninori Morimoto <[email protected]>
commit
140a4532cdb8c("ASoC: soc-pcm: addsoc_pcm_clean()and call it from soc_pcm_open/close()") switched to usesoc_pcm_clean()atsoc_pcm_open().
Quoted 6 lines
But it removed "return 0", and missing "ret = 0", because of it, it always return
-EINVALeventhough no error. This patch adds missing "ret = 0" for success case.Reported-by Marek Szyprowski <[email protected]>Signed-off-by Kuninori Morimoto <[email protected]>
This fixed my issue. Thanks!
Quoted 9 lines
--- sound/soc/soc-pcm.c | 1 + 1 file changed, 1 insertion(+)sound/soc/soc-pcm.c +0
-0
sound/soc/soc-pcm.c static int soc_pcm_open(struct snd_pcm_substream *substream) · line 802
Quoted 7 lines
sound/soc/soc-pcm.c +1
-0@@ -796,6 +796,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) runtime->hw.rate_max); dynamic:snd_soc_runtime_activate (rtd, substream->stream); + ret =0 ; err:mutex_unlock (&rtd->card->pcm_mutex); pm_err:
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Mark Brown
maintainerQuoted 5 lines · Kuninori Morimoto
From: Kuninori Morimoto <[email protected]>
commit
140a4532cdb8c("ASoC: soc-pcm: addsoc_pcm_clean()and call it from soc_pcm_open/close()") switched to usesoc_pcm_clean()atsoc_pcm_open().
This doesn't apply against current code, please check and resend (does it depend on your latest series you posted yesterday)?
Mark Brown
maintainerQuoted 9 lines · Mark Brown
Quoted 5 lines · Kuninori Morimoto
From: Kuninori Morimoto <[email protected]>
commit
140a4532cdb8c("ASoC: soc-pcm: addsoc_pcm_clean()and call it from soc_pcm_open/close()") switched to usesoc_pcm_clean()atsoc_pcm_open().This doesn't apply against current code, please check and resend (does it depend on your latest series you posted yesterday)?
Ah, looks like it was the other standalone fix you sent today - it applies now with that added.
Mark Brown
maintainerQuoted 7 lines · Kuninori Morimoto
commit
140a4532cdb8c("ASoC: soc-pcm: addsoc_pcm_clean()and call it from soc_pcm_open/close()") switched to usesoc_pcm_clean()atsoc_pcm_open().But it removed "return 0", and missing "ret = 0", because of it, it always return
-EINVALeventhough no error. This patch adds missing "ret = 0" for success case.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: soc-pcm: add missing ret=0 at soc_pcm_open()
commit: 8e7875ae373a3690397c4e593629d3b9ad5ccf42
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