Home
last modified time | relevance | path

Searched refs:mclk_root_freq (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/sound/soc/rockchip/
Drockchip_i2s_tdm.c607 unsigned int mclk_root_freq; in rockchip_i2s_tdm_calibrate_mclk() local
629 mclk_root_freq = i2s_tdm->mclk_root0_freq; in rockchip_i2s_tdm_calibrate_mclk()
639 mclk_root_freq = i2s_tdm->mclk_root1_freq; in rockchip_i2s_tdm_calibrate_mclk()
654 mclk_root_freq, 0); in rockchip_i2s_tdm_calibrate_mclk()
658 delta = abs(mclk_root_freq % mclk_parent_freq - mclk_parent_freq); in rockchip_i2s_tdm_calibrate_mclk()
659 ppm = div64_u64((uint64_t)delta * 1000000, (uint64_t)mclk_root_freq); in rockchip_i2s_tdm_calibrate_mclk()
666 mclk_root_freq = mclk_parent_freq * round_up(div, 2); in rockchip_i2s_tdm_calibrate_mclk()
668 ret = clk_set_rate(mclk_root, mclk_root_freq); in rockchip_i2s_tdm_calibrate_mclk()