Home
last modified time | relevance | path

Searched refs:freq_out (Results 1 – 25 of 68) sorted by relevance

123

/Linux-v5.10/sound/soc/codecs/
Dadau-utils.c15 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out, in adau_calc_pll_cfg() argument
21 if (!freq_out) { in adau_calc_pll_cfg()
27 if (freq_out % freq_in != 0) { in adau_calc_pll_cfg()
30 r = freq_out / freq_in; in adau_calc_pll_cfg()
31 i = freq_out % freq_in; in adau_calc_pll_cfg()
37 r = freq_out / freq_in; in adau_calc_pll_cfg()
Drl6231.c141 const unsigned int freq_out, struct rl6231_pll_code *pll_code) in rl6231_pll_calc() argument
147 unsigned int red_t = abs(freq_out - freq_in); in rl6231_pll_calc()
156 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc()
167 min_k = 80000000 / freq_out - 2; in rl6231_pll_calc()
168 max_k = 150000000 / freq_out - 2; in rl6231_pll_calc()
173 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
177 f_out = freq_out / div; in rl6231_pll_calc()
Dwm8960.c50 unsigned int freq_in, unsigned int freq_out);
699 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
715 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
718 if (!is_pll_freq_available(freq_in, freq_out)) in wm8960_configure_pll()
726 return freq_out; in wm8960_configure_pll()
733 best_freq_out = freq_out; in wm8960_configure_pll()
744 int freq_out, freq_in; in wm8960_configure_clocking() local
770 freq_out = freq_in; in wm8960_configure_clocking()
772 freq_out = wm8960->sysclk; in wm8960_configure_clocking()
779 ret = wm8960_configure_sysclk(wm8960, freq_out, &i, &j, &k); in wm8960_configure_clocking()
[all …]
Dwm8995.c1724 int freq_in, int freq_out) in wm8995_get_fll_config() argument
1729 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8995_get_fll_config()
1744 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config()
1749 freq_out *= fll->outdiv + 1; in wm8995_get_fll_config()
1750 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8995_get_fll_config()
1770 Ndiv = freq_out / freq_in; in wm8995_get_fll_config()
1773 Nmod = freq_out % freq_in; in wm8995_get_fll_config()
1796 unsigned int freq_out) in wm8995_set_fll() argument
1829 if (freq_out) in wm8995_set_fll()
1843 wm8995->fll[id].in == freq_in && wm8995->fll[id].out == freq_out) in wm8995_set_fll()
[all …]
Drt1016.c456 unsigned int freq_out) in rt1016_set_component_pll() argument
462 if (!freq_in || !freq_out) { in rt1016_set_component_pll()
472 freq_out == rt1016->pll_out) in rt1016_set_component_pll()
491 ret = rl6231_pll_calc(freq_in, freq_out * 4, &pll_code); in rt1016_set_component_pll()
510 rt1016->pll_out = freq_out; in rt1016_set_component_pll()
Dwm8900.c746 int fll_id, unsigned int freq_in, unsigned int freq_out) in wm8900_set_fll() argument
751 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll()
759 if (!freq_in || !freq_out) { in wm8900_set_fll()
765 wm8900->fll_out = freq_out; in wm8900_set_fll()
770 if (fll_factors(&fll_div, freq_in, freq_out) != 0) in wm8900_set_fll()
774 wm8900->fll_out = freq_out; in wm8900_set_fll()
810 int source, unsigned int freq_in, unsigned int freq_out) in wm8900_set_dai_pll() argument
812 return wm8900_set_fll(codec_dai->component, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
Dadau-utils.h5 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out,
Drt1308.c619 unsigned int freq_out) in rt1308_set_component_pll() argument
626 freq_out == rt1308->pll_out) in rt1308_set_component_pll()
629 if (!freq_in || !freq_out) { in rt1308_set_component_pll()
665 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1308_set_component_pll()
682 rt1308->pll_out = freq_out; in rt1308_set_component_pll()
Drl6231.h29 const unsigned int freq_out, struct rl6231_pll_code *pll_code);
Dadav80x.c622 int source, unsigned int freq_in, unsigned int freq_out) in adav80x_set_pll() argument
639 if (!freq_out) in adav80x_set_pll()
655 if (freq_out > 12288000) { in adav80x_set_pll()
657 freq_out /= 2; in adav80x_set_pll()
661 switch (freq_out) { in adav80x_set_pll()
Dalc5632.c678 int source, unsigned int freq_in, unsigned int freq_out) in alc5632_set_dai_pll() argument
701 if (!freq_in || !freq_out) in alc5632_set_dai_pll()
708 && codec_master_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
718 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
729 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
Dwm8400.c922 unsigned int freq_out) in wm8400_set_dai_pll() argument
930 if (freq_in == wm8400->fll_in && freq_out == wm8400->fll_out) in wm8400_set_dai_pll()
933 if (freq_out) { in wm8400_set_dai_pll()
934 ret = fll_factors(wm8400, &factors, freq_in, freq_out); in wm8400_set_dai_pll()
944 wm8400->fll_out = freq_out; in wm8400_set_dai_pll()
956 if (!freq_out) in wm8400_set_dai_pll()
Dwm8580.c461 int source, unsigned int freq_in, unsigned int freq_out) in wm8580_set_dai_pll() argument
492 if (freq_in && freq_out) { in wm8580_set_dai_pll()
493 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8580_set_dai_pll()
499 state->out = freq_out; in wm8580_set_dai_pll()
506 if (!freq_in || !freq_out) in wm8580_set_dai_pll()
Drt1015.c870 unsigned int freq_out) in rt1015_set_component_pll() argument
876 if (!freq_in || !freq_out) { in rt1015_set_component_pll()
886 freq_out == rt1015->pll_out) in rt1015_set_component_pll()
913 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1015_set_component_pll()
930 rt1015->pll_out = freq_out; in rt1015_set_component_pll()
Dwm8994.c2123 int freq_in, int freq_out) in wm8994_get_fll_config() argument
2128 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8994_get_fll_config()
2143 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8994_get_fll_config()
2148 freq_out *= fll->outdiv + 1; in wm8994_get_fll_config()
2149 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8994_get_fll_config()
2169 Ndiv = freq_out / freq_in; in wm8994_get_fll_config()
2172 Nmod = freq_out % freq_in; in wm8994_get_fll_config()
2195 gcd_fll = gcd(freq_out, freq_in); in wm8994_get_fll_config()
2197 fll->k = (freq_out - (freq_in * fll->n)) / gcd_fll; in wm8994_get_fll_config()
2206 unsigned int freq_in, unsigned int freq_out) in _wm8994_set_fll() argument
[all …]
Dwm8510.c314 int source, unsigned int freq_in, unsigned int freq_out) in wm8510_set_dai_pll() argument
319 if (freq_in == 0 || freq_out == 0) { in wm8510_set_dai_pll()
330 pll_factors(freq_out*4, freq_in); in wm8510_set_dai_pll()
Dalc5623.c521 int source, unsigned int freq_in, unsigned int freq_out) in alc5623_set_dai_pll() argument
541 if (!freq_in || !freq_out) in alc5623_set_dai_pll()
548 && codec_master_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll()
558 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll()
Drt1305.c794 unsigned int freq_out) in rt1305_set_component_pll() argument
801 freq_out == rt1305->pll_out) in rt1305_set_component_pll()
804 if (!freq_in || !freq_out) { in rt1305_set_component_pll()
842 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1305_set_component_pll()
860 rt1305->pll_out = freq_out; in rt1305_set_component_pll()
Drt5660.c1010 unsigned int freq_in, unsigned int freq_out) in rt5660_set_dai_pll() argument
1018 freq_out == rt5660->pll_out) in rt5660_set_dai_pll()
1021 if (!freq_in || !freq_out) { in rt5660_set_dai_pll()
1047 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5660_set_dai_pll()
1064 rt5660->pll_out = freq_out; in rt5660_set_dai_pll()
Dwm8974.c313 int source, unsigned int freq_in, unsigned int freq_out) in wm8974_set_dai_pll() argument
319 if (freq_in == 0 || freq_out == 0) { in wm8974_set_dai_pll()
330 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll()
Dwm8804.c403 unsigned int freq_out) in wm8804_set_pll() argument
409 if (!freq_in || !freq_out) { in wm8804_set_pll()
419 ret = pll_factors(&pll_div, freq_out, freq_in, in wm8804_set_pll()
Dwm8940.c574 int source, unsigned int freq_in, unsigned int freq_out) in wm8940_set_dai_pll() argument
583 if (freq_in == 0 || freq_out == 0) { in wm8940_set_dai_pll()
593 pll_factors(freq_out*4, freq_in); in wm8940_set_dai_pll()
/Linux-v5.10/sound/soc/pxa/
Dbrownstone.c49 int freq_out, sspa_mclk, sysclk; in brownstone_wm8994_hw_params() local
52 freq_out = params_rate(params) * 512; in brownstone_wm8994_hw_params()
56 freq_out = params_rate(params) * 1024; in brownstone_wm8994_hw_params()
61 snd_soc_dai_set_sysclk(cpu_dai, MMP_SSPA_CLK_AUDIO, freq_out, 0); in brownstone_wm8994_hw_params()
62 snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); in brownstone_wm8994_hw_params()
63 snd_soc_dai_set_pll(cpu_dai, MMP_SSPA_CLK, 0, freq_out, sspa_mclk); in brownstone_wm8994_hw_params()
Dmmp-sspa.c135 unsigned int freq_out) in mmp_sspa_set_dai_pll() argument
146 ret = clk_set_rate(sspa->sysclk, freq_out); in mmp_sspa_set_dai_pll()
151 ret = clk_set_rate(sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
/Linux-v5.10/drivers/mfd/
Dtwl6040.c372 unsigned int freq_in, unsigned int freq_out) in twl6040_set_pll() argument
392 if (twl6040->sysclk_rate != freq_out) { in twl6040_set_pll()
393 switch (freq_out) { in twl6040_set_pll()
403 freq_out); in twl6040_set_pll()
439 if (freq_out != 19200000) { in twl6040_set_pll()
441 "freq_out %d not supported\n", freq_out); in twl6040_set_pll()
505 twl6040->sysclk_rate = freq_out; in twl6040_set_pll()

123