linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: simple-card-utils: fix sysclk shutdown
@ 2022-04-12 11:16 Olivier Moysan
  2022-04-20 21:40 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Moysan @ 2022-04-12 11:16 UTC (permalink / raw)
  To: Jaroslav Kysela, Kuninori Morimoto, Liam Girdwood, Mark Brown,
	Richard Fitzgerald, Robert Hancock, Sameer Pujar, Samuel Holland,
	Stephan Gerhold, Takashi Iwai
  Cc: alsa-devel, linux-kernel, Olivier Moysan

In asoc_simple_shutdown() the snd_soc_dai_set_sysclk() function
is called twice with input direction SND_SOC_CLOCK_IN.
Restore one call with output direction SND_SOC_CLOCK_OUT.

Fixes: 5ca2ab459817 ("ASoC: simple-card-utils: Add new system-clock-fixed flag")

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
 sound/soc/generic/simple-card-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
index f2157944247f..da0c27828ce6 100644
--- a/sound/soc/generic/simple-card-utils.c
+++ b/sound/soc/generic/simple-card-utils.c
@@ -322,7 +322,7 @@ void asoc_simple_shutdown(struct snd_pcm_substream *substream)
 
 		if (props->mclk_fs && !dai->clk_fixed && !snd_soc_dai_active(cpu_dai))
 			snd_soc_dai_set_sysclk(cpu_dai,
-					       0, 0, SND_SOC_CLOCK_IN);
+					       0, 0, SND_SOC_CLOCK_OUT);
 
 		asoc_simple_clk_disable(dai);
 	}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: simple-card-utils: fix sysclk shutdown
  2022-04-12 11:16 [PATCH] ASoC: simple-card-utils: fix sysclk shutdown Olivier Moysan
@ 2022-04-20 21:40 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-04-20 21:40 UTC (permalink / raw)
  To: samuel, rf, Takashi Iwai, robert.hancock, spujar, olivier.moysan,
	Kuninori Morimoto, Liam Girdwood, stephan, Jaroslav Kysela
  Cc: alsa-devel, linux-kernel

On Tue, 12 Apr 2022 13:16:58 +0200, Olivier Moysan wrote:
> In asoc_simple_shutdown() the snd_soc_dai_set_sysclk() function
> is called twice with input direction SND_SOC_CLOCK_IN.
> Restore one call with output direction SND_SOC_CLOCK_OUT.
> 
> Fixes: 5ca2ab459817 ("ASoC: simple-card-utils: Add new system-clock-fixed flag")
> 
> 
> [...]

Applied to

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

Thanks!

[1/1] ASoC: simple-card-utils: fix sysclk shutdown
      commit: 3756aa16fadaef2873cfbd2659dfa1978a7e1859

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-20 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 11:16 [PATCH] ASoC: simple-card-utils: fix sysclk shutdown Olivier Moysan
2022-04-20 21:40 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).