alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: rt1015: modify pre-divider for sysclk
@ 2020-03-03  2:59 jack.yu
  2020-03-03 12:29 ` Mark Brown
  2020-03-03 17:08 ` Applied "ASoC: rt1015: modify pre-divider for sysclk" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: jack.yu @ 2020-03-03  2:59 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, Jack Yu, alsa-devel, lars, kent_chen, kenny_chen,
	derek.fang, shumingf, albertwang, flove

From: Jack Yu <jack.yu@realtek.com>

Modify pre-divider for system clock.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
---
 sound/soc/codecs/rt1015.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c
index 5fa21d8ab620..bb310bc7febd 100644
--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -664,7 +664,7 @@ static int rt1015_hw_params(struct snd_pcm_substream *substream,
 	snd_soc_component_update_bits(component, RT1015_TDM_MASTER,
 		RT1015_I2S_DL_MASK, val_len);
 	snd_soc_component_update_bits(component, RT1015_CLK2,
-		RT1015_FS_PD_MASK, pre_div);
+		RT1015_FS_PD_MASK, pre_div << RT1015_FS_PD_SFT);
 
 	return 0;
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: rt1015: modify pre-divider for sysclk
  2020-03-03  2:59 [PATCH] ASoC: rt1015: modify pre-divider for sysclk jack.yu
@ 2020-03-03 12:29 ` Mark Brown
  2020-03-03 17:08 ` Applied "ASoC: rt1015: modify pre-divider for sysclk" to the asoc tree Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-03-03 12:29 UTC (permalink / raw)
  To: jack.yu
  Cc: oder_chiou, alsa-devel, lars, kent_chen, kenny_chen, lgirdwood,
	derek.fang, shumingf, albertwang, flove

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

On Tue, Mar 03, 2020 at 10:59:13AM +0800, jack.yu@realtek.com wrote:
> From: Jack Yu <jack.yu@realtek.com>
> 
> Modify pre-divider for system clock.

This changelog really doesn't describe what the change does - in what
way is the pre-divider modified and why?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Applied "ASoC: rt1015: modify pre-divider for sysclk" to the asoc tree
  2020-03-03  2:59 [PATCH] ASoC: rt1015: modify pre-divider for sysclk jack.yu
  2020-03-03 12:29 ` Mark Brown
@ 2020-03-03 17:08 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-03-03 17:08 UTC (permalink / raw)
  To: Jack Yu
  Cc: oder_chiou, alsa-devel, lars, kent_chen, kenny_chen, lgirdwood,
	Mark Brown, derek.fang, shumingf, albertwang, flove

The patch

   ASoC: rt1015: modify pre-divider for sysclk

has been applied to the asoc tree at

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

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

From 4b01618b624736fc7d74f150f623d11b17b7b288 Mon Sep 17 00:00:00 2001
From: Jack Yu <jack.yu@realtek.com>
Date: Tue, 3 Mar 2020 10:59:13 +0800
Subject: [PATCH] ASoC: rt1015: modify pre-divider for sysclk

Modify pre-divider for system clock.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/20200303025913.24499-1-jack.yu@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt1015.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c
index 9f151c7c3d2d..66eb55b4ffd4 100644
--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -664,7 +664,7 @@ static int rt1015_hw_params(struct snd_pcm_substream *substream,
 	snd_soc_component_update_bits(component, RT1015_TDM_MASTER,
 		RT1015_I2S_DL_MASK, val_len);
 	snd_soc_component_update_bits(component, RT1015_CLK2,
-		RT1015_FS_PD_MASK, pre_div);
+		RT1015_FS_PD_MASK, pre_div << RT1015_FS_PD_SFT);
 
 	return 0;
 }
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-03 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03  2:59 [PATCH] ASoC: rt1015: modify pre-divider for sysclk jack.yu
2020-03-03 12:29 ` Mark Brown
2020-03-03 17:08 ` Applied "ASoC: rt1015: modify pre-divider for sysclk" to the asoc tree 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).