* [PATCH] ASoC: fsl_spdif: Silence output on stop
@ 2023-07-19 16:47 Matus Gajdos
2023-07-19 17:58 ` Fabio Estevam
2023-07-21 17:41 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Matus Gajdos @ 2023-07-19 16:47 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Stephen Warren
Cc: Matus Gajdos, alsa-devel, linuxppc-dev, linux-kernel, Mark Brown
Clear TX registers on stop to prevent the SPDIF interface from sending
last written word over and over again.
Fixes: a2388a498ad2 ("ASoC: fsl: Add S/PDIF CPU DAI driver")
Signed-off-by: Matus Gajdos <matuszpd@gmail.com>
---
sound/soc/fsl/fsl_spdif.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 95e639711eba..95bb8b10494a 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -755,6 +755,8 @@ static int fsl_spdif_trigger(struct snd_pcm_substream *substream,
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
regmap_update_bits(regmap, REG_SPDIF_SCR, dmaen, 0);
regmap_update_bits(regmap, REG_SPDIF_SIE, intr, 0);
+ regmap_write(regmap, REG_SPDIF_STL, 0x0);
+ regmap_write(regmap, REG_SPDIF_STR, 0x0);
break;
default:
return -EINVAL;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: fsl_spdif: Silence output on stop
2023-07-19 16:47 [PATCH] ASoC: fsl_spdif: Silence output on stop Matus Gajdos
@ 2023-07-19 17:58 ` Fabio Estevam
2023-07-21 17:41 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2023-07-19 17:58 UTC (permalink / raw)
To: Matus Gajdos
Cc: alsa-devel, Stephen Warren, Mark Brown, Xiubo Li, linuxppc-dev,
Takashi Iwai, Liam Girdwood, Jaroslav Kysela, Nicolin Chen,
Mark Brown, Shengjiu Wang, linux-kernel
On Wed, Jul 19, 2023 at 1:48 PM Matus Gajdos <matuszpd@gmail.com> wrote:
>
> Clear TX registers on stop to prevent the SPDIF interface from sending
> last written word over and over again.
>
> Fixes: a2388a498ad2 ("ASoC: fsl: Add S/PDIF CPU DAI driver")
> Signed-off-by: Matus Gajdos <matuszpd@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: fsl_spdif: Silence output on stop
2023-07-19 16:47 [PATCH] ASoC: fsl_spdif: Silence output on stop Matus Gajdos
2023-07-19 17:58 ` Fabio Estevam
@ 2023-07-21 17:41 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-07-21 17:41 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Stephen Warren,
Matus Gajdos
Cc: alsa-devel, linuxppc-dev, linux-kernel, Mark Brown
On Wed, 19 Jul 2023 18:47:29 +0200, Matus Gajdos wrote:
> Clear TX registers on stop to prevent the SPDIF interface from sending
> last written word over and over again.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: fsl_spdif: Silence output on stop
commit: 0e4c2b6b0c4a4b4014d9424c27e5e79d185229c5
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] 3+ messages in thread
end of thread, other threads:[~2023-07-21 17:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 16:47 [PATCH] ASoC: fsl_spdif: Silence output on stop Matus Gajdos
2023-07-19 17:58 ` Fabio Estevam
2023-07-21 17:41 ` 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).