]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: rt1015: modify pre-divider for sysclk
authorJack Yu <jack.yu@realtek.com>
Tue, 3 Mar 2020 02:59:13 +0000 (10:59 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Mar 2020 14:00:01 +0000 (14:00 +0000)
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

index 9f151c7c3d2dcda72f210d22ff6a64901721b9a0..66eb55b4ffd4c75e979f80a22f05343d4d460cf1 100644 (file)
@@ -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;
 }