Skip to contentSkip to conversation

ASoC: fsl_sai: Disable bit clock with transmitter

PATCH In review Matus Gajdos 4 participants 6 messages Jul 12, 2023 – Jul 18, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl_sai: Disable bit clock with transmitter

Otherwise bit clock remains running writing invalid data to the DAC.

---
 sound/soc/fsl/fsl_sai.c | 2 +-
 sound/soc/fsl/fsl_sai.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
sound/soc/fsl/fsl_sai.c +1 -1
index 5e09f634c61b..dcc7fbe7acac 100644
@@ -719,7 +719,7 @@ static void fsl_sai_config_disable(struct fsl_sai *sai, int dir)
 	u32 xcsr, count = 100;
 
 	regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs),
-			   FSL_SAI_CSR_TERE, 0);
+			   FSL_SAI_CSR_TERE | FSL_SAI_CSR_BCE, 0);
 
 	/* TERE will remain set till the end of current frame */
 	do {
sound/soc/fsl/fsl_sai.h +1 -0
index 8254c3547b87..550df87b6a06 100644
@@ -91,6 +91,7 @@
 /* SAI Transmit/Receive Control Register */
 #define FSL_SAI_CSR_TERE	BIT(31)
 #define FSL_SAI_CSR_SE		BIT(30)
+#define FSL_SAI_CSR_BCE		BIT(28)
 #define FSL_SAI_CSR_FR		BIT(25)
 #define FSL_SAI_CSR_SR		BIT(24)
 #define FSL_SAI_CSR_xF_SHIFT	16
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Matus Gajdos

Otherwise bit clock remains running writing invalid data to the DAC.

Best regards
Wang Shengjiu

Quoted 35 lines
---
 sound/soc/fsl/fsl_sai.c | 2 +-
 sound/soc/fsl/fsl_sai.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
sound/soc/fsl/fsl_sai.c +1 -1
index 5e09f634c61b..dcc7fbe7acac 100644
@@ -719,7 +719,7 @@ static void fsl_sai_config_disable(struct fsl_sai
 *sai, int dir)
        u32 xcsr, count = 100;
 
        regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs),
-                          FSL_SAI_CSR_TERE, 0);
+                          FSL_SAI_CSR_TERE | FSL_SAI_CSR_BCE, 0);
 
        /* TERE will remain set till the end of current frame */
        do {
sound/soc/fsl/fsl_sai.h +1 -1
index 8254c3547b87..550df87b6a06 100644
@@ -91,6 +91,7 @@
 /* SAI Transmit/Receive Control Register */
 #define FSL_SAI_CSR_TERE       BIT(31)
 #define FSL_SAI_CSR_SE         BIT(30)
+#define FSL_SAI_CSR_BCE                BIT(28)
 #define FSL_SAI_CSR_FR         BIT(25)
 #define FSL_SAI_CSR_SR         BIT(24)
 #define FSL_SAI_CSR_xF_SHIFT   16
--

2.25.1

maintainer
#3 lore raw
Quoted 8 lines · Fabio Estevam
Quoted 4 lines · Matus Gajdos

Otherwise bit clock remains running writing invalid data to the DAC.

Should this contain a Fixes tag so that it could be backported to stable kernels?

I'll just put a non-specific Cc stable tag on it, that should be enough to get it backported.

reviewer
#4 lore raw
Quoted 2 lines · Mark Brown

I'll just put a non-specific Cc stable tag on it, that should be enough to get it backported.

Sounds good. Thanks, Mark.

maintainer
#5 lore raw
In reply to Matus Gajdos
Quoted 3 lines · Matus Gajdos

Otherwise bit clock remains running writing invalid data to the DAC.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: fsl_sai: Disable bit clock with transmitter

      commit: 269f399dc19f0e5c51711c3ba3bd06e0ef6ef403

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