Home
last modified time | relevance | path

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

/sound/soc/cirrus/
Dedb93xx.c38 unsigned int mclk_rate; in edb93xx_hw_params() local
46 mclk_rate = rate * 64 * 4; in edb93xx_hw_params()
48 mclk_rate = rate * 64 * 2; in edb93xx_hw_params()
50 err = snd_soc_dai_set_sysclk(codec_dai, 0, mclk_rate, in edb93xx_hw_params()
55 return snd_soc_dai_set_sysclk(cpu_dai, 0, mclk_rate, in edb93xx_hw_params()
/sound/soc/codecs/
Dmax9860.c609 unsigned long mclk_rate; in max9860_probe() local
659 mclk_rate = clk_get_rate(mclk); in max9860_probe()
662 if (mclk_rate > 60000000 || mclk_rate < 10000000) { in max9860_probe()
664 mclk_rate); in max9860_probe()
668 if (mclk_rate >= 40000000) in max9860_probe()
670 else if (mclk_rate >= 20000000) in max9860_probe()
674 max9860->pclk_rate = mclk_rate >> (max9860->psclk - 1); in max9860_probe()
676 dev_dbg(dev, "mclk %lu pclk %lu\n", mclk_rate, max9860->pclk_rate); in max9860_probe()
Dcs53l30.c41 u32 mclk_rate; member
462 u32 mclk_rate; member
536 static int cs53l30_get_mclk_coeff(int mclk_rate, int srate) in cs53l30_get_mclk_coeff() argument
541 if (cs53l30_mclk_coeffs[i].mclk_rate == mclk_rate && in cs53l30_get_mclk_coeff()
554 u32 mclk_rate; in cs53l30_set_sysclk() local
561 mclk_rate = cs53l30_mclkx_coeffs[mclkx_coeff].mclkx / in cs53l30_set_sysclk()
568 priv->mclk_rate = mclk_rate; in cs53l30_set_sysclk()
634 mclk_coeff = cs53l30_get_mclk_coeff(priv->mclk_rate, srate); in cs53l30_pcm_hw_params()
968 cs53l30->mclk_rate = 0; in cs53l30_i2c_probe()
Dda7213.c1304 if ((da7213->clk_src == clk_id) && (da7213->mclk_rate == freq)) in da7213_set_dai_sysclk()
1340 da7213->mclk_rate = freq; in da7213_set_dai_sysclk()
1358 if (da7213->mclk_rate == 32768) { in da7213_set_dai_pll()
1372 if (da7213->mclk_rate < 5000000) { in da7213_set_dai_pll()
1375 da7213->mclk_rate); in da7213_set_dai_pll()
1377 } else if (da7213->mclk_rate <= 9000000) { in da7213_set_dai_pll()
1380 } else if (da7213->mclk_rate <= 18000000) { in da7213_set_dai_pll()
1383 } else if (da7213->mclk_rate <= 36000000) { in da7213_set_dai_pll()
1386 } else if (da7213->mclk_rate <= 54000000) { in da7213_set_dai_pll()
1392 da7213->mclk_rate); in da7213_set_dai_pll()
[all …]
Dwm9081.c152 int mclk_rate; member
651 if (wm9081->mclk_rate > 12225000) { in configure_clock()
653 wm9081->sysclk_rate = wm9081->mclk_rate / 2; in configure_clock()
655 wm9081->sysclk_rate = wm9081->mclk_rate; in configure_clock()
699 wm9081->mclk_rate, new_sysclk); in configure_clock()
706 wm9081->sysclk_rate = wm9081->mclk_rate; in configure_clock()
742 dev_dbg(codec->dev, "Using %dHz MCLK\n", wm9081->mclk_rate); in clk_sys_event()
746 wm9081->mclk_rate); in clk_sys_event()
1179 wm9081->mclk_rate = freq; in wm9081_set_sysclk()
Dwm8955.c44 unsigned int mclk_rate; member
264 if (wm8955->mclk_rate == clock_cfgs[i].mclk) in wm8955_configure_clocking()
285 ret = wm8995_pll_factors(codec->dev, wm8955->mclk_rate, in wm8955_configure_clocking()
290 wm8955->fs, wm8955->mclk_rate); in wm8955_configure_clocking()
651 priv->mclk_rate = freq /= 2; in wm8955_set_sysclk()
654 priv->mclk_rate = freq; in wm8955_set_sysclk()
Dda7219.c1028 if ((da7219->clk_src == clk_id) && (da7219->mclk_rate == freq)) in da7219_set_dai_sysclk()
1064 da7219->mclk_rate = freq; in da7219_set_dai_sysclk()
1081 if (da7219->mclk_rate < 2000000) { in da7219_set_dai_pll()
1083 da7219->mclk_rate); in da7219_set_dai_pll()
1085 } else if (da7219->mclk_rate <= 4500000) { in da7219_set_dai_pll()
1088 } else if (da7219->mclk_rate <= 9000000) { in da7219_set_dai_pll()
1091 } else if (da7219->mclk_rate <= 18000000) { in da7219_set_dai_pll()
1094 } else if (da7219->mclk_rate <= 36000000) { in da7219_set_dai_pll()
1097 } else if (da7219->mclk_rate <= 54000000) { in da7219_set_dai_pll()
1102 da7219->mclk_rate); in da7219_set_dai_pll()
[all …]
Dda7210.c675 unsigned int mclk_rate; member
846 if (da7210->mclk_rate && (da7210->mclk_rate != sysclk)) { in da7210_hw_params()
963 da7210->mclk_rate = freq; in da7210_set_dai_sysclk()
1073 da7210->mclk_rate = 0; /* This will be set from set_sysclk() */ in da7210_probe()
Dda9055.c943 unsigned int mclk_rate; member
1126 if (da9055->mclk_rate) { in da9055_hw_params()
1140 if (da9055->mclk_rate && (da9055->mclk_rate != sysclk)) { in da9055_hw_params()
1258 da9055->mclk_rate = freq; in da9055_set_dai_sysclk()
Dwm8993.c217 unsigned int mclk_rate; member
587 dev_dbg(codec->dev, "Using %dHz MCLK\n", wm8993->mclk_rate); in configure_clock()
591 if (wm8993->mclk_rate > 13500000) { in configure_clock()
593 wm8993->sysclk_rate = wm8993->mclk_rate / 2; in configure_clock()
596 wm8993->sysclk_rate = wm8993->mclk_rate; in configure_clock()
1078 wm8993->mclk_rate = freq; in wm8993_set_sysclk()
Dda7218.c1819 if (da7218->mclk_rate == freq) in da7218_set_dai_sysclk()
1853 da7218->mclk_rate = freq; in da7218_set_dai_sysclk()
1870 if (da7218->mclk_rate < 2000000) { in da7218_set_dai_pll()
1872 da7218->mclk_rate); in da7218_set_dai_pll()
1874 } else if (da7218->mclk_rate <= 4500000) { in da7218_set_dai_pll()
1877 } else if (da7218->mclk_rate <= 9000000) { in da7218_set_dai_pll()
1880 } else if (da7218->mclk_rate <= 18000000) { in da7218_set_dai_pll()
1883 } else if (da7218->mclk_rate <= 36000000) { in da7218_set_dai_pll()
1886 } else if (da7218->mclk_rate <= 54000000) { in da7218_set_dai_pll()
1891 da7218->mclk_rate); in da7218_set_dai_pll()
[all …]
Dda7213.h528 unsigned int mclk_rate; member
Dwm8904.c80 unsigned int mclk_rate; member
332 dev_dbg(codec->dev, "Using %dHz MCLK\n", wm8904->mclk_rate); in wm8904_configure_clocking()
335 rate = wm8904->mclk_rate; in wm8904_configure_clocking()
1414 priv->mclk_rate = freq; in wm8904_set_sysclk()
Dda7219.h812 unsigned int mclk_rate; member
Dda7218.h1400 unsigned int mclk_rate; member
/sound/soc/mediatek/mt2701/
Dmt2701-cs42448.c142 unsigned int mclk_rate; in mt2701_cs42448_be_ops_hw_params() local
147 mclk_rate = rate * div_bck_over_lrck * div_mclk_over_bck; in mt2701_cs42448_be_ops_hw_params()
150 snd_soc_dai_set_sysclk(cpu_dai, 0, mclk_rate, SND_SOC_CLOCK_OUT); in mt2701_cs42448_be_ops_hw_params()
153 snd_soc_dai_set_sysclk(codec_dai, 0, mclk_rate, SND_SOC_CLOCK_IN); in mt2701_cs42448_be_ops_hw_params()
Dmt2701-afe-pcm.c279 int mclk_rate; in mt2701_afe_i2s_prepare() local
285 mclk_rate = i2s_path->mclk_rate; in mt2701_afe_i2s_prepare()
291 if (MT2701_PLL_DOMAIN_0_RATE % mclk_rate == 0) { in mt2701_afe_i2s_prepare()
293 } else if (MT2701_PLL_DOMAIN_1_RATE % mclk_rate == 0) { in mt2701_afe_i2s_prepare()
297 __func__, mclk_rate); in mt2701_afe_i2s_prepare()
300 mt2701_mclk_configuration(afe, i2s_num, clk_domain, mclk_rate); in mt2701_afe_i2s_prepare()
332 afe_priv->i2s_path[i2s_num].mclk_rate = freq; in mt2701_afe_i2s_set_sysclk()
Dmt2701-afe-common.h160 int mclk_rate; member
/sound/soc/rockchip/
Drockchip_i2s.c251 unsigned int mclk_rate, bclk_rate, div_bclk, div_lrck; in rockchip_i2s_hw_params() local
254 mclk_rate = clk_get_rate(i2s->mclk); in rockchip_i2s_hw_params()
256 if (bclk_rate && mclk_rate % bclk_rate) in rockchip_i2s_hw_params()
259 div_bclk = mclk_rate / bclk_rate; in rockchip_i2s_hw_params()
/sound/soc/bcm/
Dcygnus-ssp.c259 u32 mclk_rate; member
734 value |= (p_entry->mclk_rate << I2S_OUT_MCLKRATE_SHIFT); in cygnus_ssp_set_clocks()