Commit 0e4c2b6b authored by Matus Gajdos's avatar Matus Gajdos Committed by Mark Brown

ASoC: fsl_spdif: Silence output on stop

Clear TX registers on stop to prevent the SPDIF interface from sending
last written word over and over again.

Fixes: a2388a49 ("ASoC: fsl: Add S/PDIF CPU DAI driver")
Signed-off-by: default avatarMatus Gajdos <matuszpd@gmail.com>
Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20230719164729.19969-1-matuszpd@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 269f399d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment