diff mbox series

ASoC: rt1015: modify pre-divider for sysclk

Message ID 20200303025913.24499-1-jack.yu@realtek.com (mailing list archive)
State Accepted
Commit 4b01618b624736fc7d74f150f623d11b17b7b288
Headers show
Series ASoC: rt1015: modify pre-divider for sysclk | expand

Commit Message

Jack Yu March 3, 2020, 2:59 a.m. UTC
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(-)

Comments

Mark Brown March 3, 2020, 12:29 p.m. UTC | #1
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?
diff mbox series

Patch

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;
 }