Skip to content

Commit 0e4c2b6

Browse files
matuszpdbroonie
authored andcommitted
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: a2388a4 ("ASoC: fsl: Add S/PDIF CPU DAI driver") Signed-off-by: Matus Gajdos <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 269f399 commit 0e4c2b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/fsl/fsl_spdif.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ static int fsl_spdif_trigger(struct snd_pcm_substream *substream,
751751
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
752752
regmap_update_bits(regmap, REG_SPDIF_SCR, dmaen, 0);
753753
regmap_update_bits(regmap, REG_SPDIF_SIE, intr, 0);
754+
regmap_write(regmap, REG_SPDIF_STL, 0x0);
755+
regmap_write(regmap, REG_SPDIF_STR, 0x0);
754756
break;
755757
default:
756758
return -EINVAL;

0 commit comments

Comments
 (0)