projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
269f399
)
ASoC: fsl_spdif: Silence output on stop
author
Matus Gajdos
<matuszpd@gmail.com>
Wed, 19 Jul 2023 16:47:29 +0000
(18:47 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 19 Jul 2023 18:09:25 +0000
(19:09 +0100)
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>
Link:
https://lore.kernel.org/r/20230719164729.19969-1-matuszpd@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_spdif.c
b/sound/soc/fsl/fsl_spdif.c
index
015c370
..
3fd26f2
100644
(file)
--- a/
sound/soc/fsl/fsl_spdif.c
+++ b/
sound/soc/fsl/fsl_spdif.c
@@
-751,6
+751,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;