Skip to content

Commit 269f399

Browse files
matuszpdbroonie
authored andcommitted
ASoC: fsl_sai: Disable bit clock with transmitter
Otherwise bit clock remains running writing invalid data to the DAC. Signed-off-by: Matus Gajdos <matuszpd@gmail.com> Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230712124934.32232-1-matuszpd@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 469e2f2 commit 269f399

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sound/soc/fsl/fsl_sai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ static void fsl_sai_config_disable(struct fsl_sai *sai, int dir)
713713
u32 xcsr, count = 100;
714714

715715
regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs),
716-
FSL_SAI_CSR_TERE, 0);
716+
FSL_SAI_CSR_TERE | FSL_SAI_CSR_BCE, 0);
717717

718718
/* TERE will remain set till the end of current frame */
719719
do {

sound/soc/fsl/fsl_sai.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
/* SAI Transmit/Receive Control Register */
9292
#define FSL_SAI_CSR_TERE BIT(31)
9393
#define FSL_SAI_CSR_SE BIT(30)
94+
#define FSL_SAI_CSR_BCE BIT(28)
9495
#define FSL_SAI_CSR_FR BIT(25)
9596
#define FSL_SAI_CSR_SR BIT(24)
9697
#define FSL_SAI_CSR_xF_SHIFT 16

0 commit comments

Comments
 (0)