summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorJack Yu <jack.yu@realtek.com>2020-03-03 03:59:13 +0100
committerMark Brown <broonie@kernel.org>2020-03-03 15:00:01 +0100
commit4b01618b624736fc7d74f150f623d11b17b7b288 (patch)
treefb965454fbee71003889e2441c7148fa934cc341 /sound/soc
parentASoC: rt1015: add operation callback function for rt1015_dai[] (diff)
downloadlinux-4b01618b624736fc7d74f150f623d11b17b7b288.tar.xz
linux-4b01618b624736fc7d74f150f623d11b17b7b288.zip
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>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/rt1015.c2
1 files changed, 1 insertions, 1 deletions
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;
}