* [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
@ 2023-07-12 12:49 Matus Gajdos
2023-07-17 10:45 ` Shengjiu Wang
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Matus Gajdos @ 2023-07-12 12:49 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
Cc: Matus Gajdos, alsa-devel, linuxppc-dev, linux-kernel
Otherwise bit clock remains running writing invalid data to the DAC.
Signed-off-by: Matus Gajdos <matuszpd@gmail.com>
---
sound/soc/fsl/fsl_sai.c | 2 +-
sound/soc/fsl/fsl_sai.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 5e09f634c61b..dcc7fbe7acac 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -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 {
diff --git a/sound/soc/fsl/fsl_sai.h b/sound/soc/fsl/fsl_sai.h
index 8254c3547b87..550df87b6a06 100644
--- a/sound/soc/fsl/fsl_sai.h
+++ b/sound/soc/fsl/fsl_sai.h
@@ -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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
2023-07-12 12:49 [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter Matus Gajdos
@ 2023-07-17 10:45 ` Shengjiu Wang
2023-07-17 12:31 ` Fabio Estevam
2023-07-18 11:47 ` Mark Brown
2 siblings, 0 replies; 6+ messages in thread
From: Shengjiu Wang @ 2023-07-17 10:45 UTC (permalink / raw)
To: Matus Gajdos
Cc: alsa-devel, Xiubo Li, linuxppc-dev, Takashi Iwai, Liam Girdwood,
Jaroslav Kysela, Nicolin Chen, Mark Brown, Fabio Estevam,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
On Wed, Jul 12, 2023 at 8:53 PM Matus Gajdos <matuszpd@gmail.com> wrote:
> 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>
Best regards
Wang Shengjiu
> ---
> sound/soc/fsl/fsl_sai.c | 2 +-
> sound/soc/fsl/fsl_sai.h | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
> index 5e09f634c61b..dcc7fbe7acac 100644
> --- a/sound/soc/fsl/fsl_sai.c
> +++ b/sound/soc/fsl/fsl_sai.c
> @@ -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 {
> diff --git a/sound/soc/fsl/fsl_sai.h b/sound/soc/fsl/fsl_sai.h
> index 8254c3547b87..550df87b6a06 100644
> --- a/sound/soc/fsl/fsl_sai.h
> +++ b/sound/soc/fsl/fsl_sai.h
> @@ -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
>
>
[-- Attachment #2: Type: text/html, Size: 2296 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
2023-07-12 12:49 [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter Matus Gajdos
2023-07-17 10:45 ` Shengjiu Wang
@ 2023-07-17 12:31 ` Fabio Estevam
2023-07-17 12:55 ` Mark Brown
2023-07-18 11:47 ` Mark Brown
2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2023-07-17 12:31 UTC (permalink / raw)
To: Matus Gajdos
Cc: alsa-devel, Xiubo Li, linuxppc-dev, Takashi Iwai, Liam Girdwood,
Jaroslav Kysela, Nicolin Chen, Mark Brown, Shengjiu Wang,
linux-kernel
On Wed, Jul 12, 2023 at 9:53 AM Matus Gajdos <matuszpd@gmail.com> wrote:
>
> Otherwise bit clock remains running writing invalid data to the DAC.
>
> Signed-off-by: Matus Gajdos <matuszpd@gmail.com>
Should this contain a Fixes tag so that it could be backported to
stable kernels?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
2023-07-17 12:31 ` Fabio Estevam
@ 2023-07-17 12:55 ` Mark Brown
2023-07-17 12:57 ` Fabio Estevam
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2023-07-17 12:55 UTC (permalink / raw)
To: Fabio Estevam
Cc: alsa-devel, Xiubo Li, linuxppc-dev, Takashi Iwai, Liam Girdwood,
Jaroslav Kysela, Nicolin Chen, Matus Gajdos, Shengjiu Wang,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
On Mon, Jul 17, 2023 at 09:31:38AM -0300, Fabio Estevam wrote:
> On Wed, Jul 12, 2023 at 9:53 AM Matus Gajdos <matuszpd@gmail.com> wrote:
> >
> > Otherwise bit clock remains running writing invalid data to the DAC.
> >
> > Signed-off-by: Matus Gajdos <matuszpd@gmail.com>
>
> 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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
2023-07-17 12:55 ` Mark Brown
@ 2023-07-17 12:57 ` Fabio Estevam
0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2023-07-17 12:57 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Xiubo Li, linuxppc-dev, Takashi Iwai, Liam Girdwood,
Jaroslav Kysela, Nicolin Chen, Matus Gajdos, Shengjiu Wang,
linux-kernel
On Mon, Jul 17, 2023 at 9:55 AM Mark Brown <broonie@kernel.org> wrote:
> I'll just put a non-specific Cc stable tag on it, that should be enough
> to get it backported.
Sounds good. Thanks, Mark.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter
2023-07-12 12:49 [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter Matus Gajdos
2023-07-17 10:45 ` Shengjiu Wang
2023-07-17 12:31 ` Fabio Estevam
@ 2023-07-18 11:47 ` Mark Brown
2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-07-18 11:47 UTC (permalink / raw)
To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Matus Gajdos
Cc: alsa-devel, linuxppc-dev, linux-kernel
On Wed, 12 Jul 2023 14:49:33 +0200, Matus Gajdos wrote:
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-18 11:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 12:49 [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter Matus Gajdos
2023-07-17 10:45 ` Shengjiu Wang
2023-07-17 12:31 ` Fabio Estevam
2023-07-17 12:55 ` Mark Brown
2023-07-17 12:57 ` Fabio Estevam
2023-07-18 11:47 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).