/sound/soc/pxa/ |
D | brownstone.c | 54 int freq_out, sspa_mclk, sysclk; in brownstone_wm8994_hw_params() local 58 freq_out = params_rate(params) * 512; in brownstone_wm8994_hw_params() 62 freq_out = params_rate(params) * 1024; in brownstone_wm8994_hw_params() 66 sspa_div = freq_out; in brownstone_wm8994_hw_params() 69 snd_soc_dai_set_sysclk(cpu_dai, MMP_SSPA_CLK_AUDIO, freq_out, 0); in brownstone_wm8994_hw_params() 70 snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); in brownstone_wm8994_hw_params() 71 snd_soc_dai_set_pll(cpu_dai, MMP_SSPA_CLK, 0, freq_out, sspa_mclk); in brownstone_wm8994_hw_params()
|
D | mmp-sspa.c | 153 unsigned int freq_out) in mmp_sspa_set_dai_pll() argument 160 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll() 165 ret = clk_set_rate(priv->sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
|
D | pxa-ssp.c | 319 int source, unsigned int freq_in, unsigned int freq_out) in pxa_ssp_set_dai_pll() argument 328 switch (freq_out) { in pxa_ssp_set_dai_pll() 358 do_div(tmp, freq_out); in pxa_ssp_set_dai_pll() 368 val, freq_out); in pxa_ssp_set_dai_pll()
|
/sound/soc/codecs/ |
D | rl6231.c | 119 const unsigned int freq_out, struct rl6231_pll_code *pll_code) in rl6231_pll_calc() argument 124 int red_t = abs(freq_out - freq_in); in rl6231_pll_calc() 132 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc() 142 k = 100000000 / freq_out - 2; in rl6231_pll_calc() 147 pll_out = freq_out / (n_t + 2); in rl6231_pll_calc()
|
D | wm8960.c | 53 unsigned int freq_in, unsigned int freq_out); 599 int sysclk, bclk, lrclk, freq_out, freq_in; in wm8960_configure_clocking() local 626 freq_out = freq_in; in wm8960_configure_clocking() 628 freq_out = wm8960->sysclk; in wm8960_configure_clocking() 639 sysclk = freq_out / sysclk_divs[i]; in wm8960_configure_clocking() 666 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_clocking() 670 is_pll_freq_available(freq_in, freq_out)) { in wm8960_configure_clocking() 672 freq_in, freq_out); in wm8960_configure_clocking() 1080 unsigned int freq_in, unsigned int freq_out) in wm8960_set_pll() argument 1086 if (freq_in && freq_out) { in wm8960_set_pll() [all …]
|
D | wm8995.c | 1726 int freq_in, int freq_out) in wm8995_get_fll_config() argument 1731 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8995_get_fll_config() 1746 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config() 1751 freq_out *= fll->outdiv + 1; in wm8995_get_fll_config() 1752 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8995_get_fll_config() 1772 Ndiv = freq_out / freq_in; in wm8995_get_fll_config() 1775 Nmod = freq_out % freq_in; in wm8995_get_fll_config() 1798 unsigned int freq_out) in wm8995_set_fll() argument 1831 if (freq_out) in wm8995_set_fll() 1845 wm8995->fll[id].in == freq_in && wm8995->fll[id].out == freq_out) in wm8995_set_fll() [all …]
|
D | adau17x1.c | 412 int source, unsigned int freq_in, unsigned int freq_out) in adau17x1_set_dai_pll() argument 423 if (!freq_out) { in adau17x1_set_dai_pll() 429 if (freq_out % freq_in != 0) { in adau17x1_set_dai_pll() 432 r = freq_out / freq_in; in adau17x1_set_dai_pll() 433 i = freq_out % freq_in; in adau17x1_set_dai_pll() 439 r = freq_out / freq_in; in adau17x1_set_dai_pll() 462 adau->pll_freq = freq_out; in adau17x1_set_dai_pll()
|
D | wm8900.c | 755 int fll_id, unsigned int freq_in, unsigned int freq_out) in wm8900_set_fll() argument 760 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll() 768 if (!freq_in || !freq_out) { in wm8900_set_fll() 774 wm8900->fll_out = freq_out; in wm8900_set_fll() 779 if (fll_factors(&fll_div, freq_in, freq_out) != 0) in wm8900_set_fll() 783 wm8900->fll_out = freq_out; in wm8900_set_fll() 819 int source, unsigned int freq_in, unsigned int freq_out) in wm8900_set_dai_pll() argument 821 return wm8900_set_fll(codec_dai->codec, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
|
D | wm8580.c | 430 int source, unsigned int freq_in, unsigned int freq_out) in wm8580_set_dai_pll() argument 461 if (freq_in && freq_out) { in wm8580_set_dai_pll() 462 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8580_set_dai_pll() 468 state->out = freq_out; in wm8580_set_dai_pll() 475 if (!freq_in || !freq_out) in wm8580_set_dai_pll()
|
D | alc5632.c | 681 int source, unsigned int freq_in, unsigned int freq_out) in alc5632_set_dai_pll() argument 704 if (!freq_in || !freq_out) in alc5632_set_dai_pll() 711 && codec_master_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll() 721 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll() 732 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
|
D | adav80x.c | 623 int source, unsigned int freq_in, unsigned int freq_out) in adav80x_set_pll() argument 640 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()
|
D | rl6231.h | 31 const unsigned int freq_out, struct rl6231_pll_code *pll_code);
|
D | adau1373.c | 1253 int source, unsigned int freq_in, unsigned int freq_out) in adau1373_set_pll() argument 1288 if (freq_out < 45158000 || freq_out > 49152000) in adau1373_set_pll() 1298 if (freq_out % freq_in != 0) { in adau1373_set_pll() 1302 r = freq_out / freq_in; in adau1373_set_pll() 1303 i = freq_out % freq_in; in adau1373_set_pll() 1311 r = freq_out / freq_in; in adau1373_set_pll()
|
D | wm8400.c | 939 unsigned int freq_out) in wm8400_set_dai_pll() argument 947 if (freq_in == wm8400->fll_in && freq_out == wm8400->fll_out) in wm8400_set_dai_pll() 950 if (freq_out) { in wm8400_set_dai_pll() 951 ret = fll_factors(wm8400, &factors, freq_in, freq_out); in wm8400_set_dai_pll() 961 wm8400->fll_out = freq_out; in wm8400_set_dai_pll() 973 if (!freq_out) in wm8400_set_dai_pll()
|
D | wm8994.c | 2050 int freq_in, int freq_out) in wm8994_get_fll_config() argument 2055 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8994_get_fll_config() 2070 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8994_get_fll_config() 2075 freq_out *= fll->outdiv + 1; in wm8994_get_fll_config() 2076 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8994_get_fll_config() 2096 Ndiv = freq_out / freq_in; in wm8994_get_fll_config() 2099 Nmod = freq_out % freq_in; in wm8994_get_fll_config() 2122 gcd_fll = gcd(freq_out, freq_in); in wm8994_get_fll_config() 2124 fll->k = (freq_out - (freq_in * fll->n)) / gcd_fll; in wm8994_get_fll_config() 2133 unsigned int freq_in, unsigned int freq_out) in _wm8994_set_fll() argument [all …]
|
D | alc5623.c | 526 int source, unsigned int freq_in, unsigned int freq_out) in alc5623_set_dai_pll() argument 546 if (!freq_in || !freq_out) in alc5623_set_dai_pll() 553 && codec_master_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll() 563 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll()
|
D | wm8974.c | 320 int source, unsigned int freq_in, unsigned int freq_out) in wm8974_set_dai_pll() argument 326 if (freq_in == 0 || freq_out == 0) { in wm8974_set_dai_pll() 337 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll()
|
D | wm8510.c | 317 int source, unsigned int freq_in, unsigned int freq_out) in wm8510_set_dai_pll() argument 322 if (freq_in == 0 || freq_out == 0) { in wm8510_set_dai_pll() 333 pll_factors(freq_out*4, freq_in); in wm8510_set_dai_pll()
|
D | wm8804.c | 406 unsigned int freq_out) in wm8804_set_pll() argument 412 if (!freq_in || !freq_out) { in wm8804_set_pll() 422 ret = pll_factors(&pll_div, freq_out, freq_in, in wm8804_set_pll()
|
D | wm8940.c | 577 int source, unsigned int freq_in, unsigned int freq_out) in wm8940_set_dai_pll() argument 586 if (freq_in == 0 || freq_out == 0) { in wm8940_set_dai_pll() 596 pll_factors(freq_out*4, freq_in); in wm8940_set_dai_pll()
|
D | wm8350.c | 1025 unsigned int freq_out) in wm8350_set_fll() argument 1034 if (freq_in == priv->fll_freq_in && freq_out == priv->fll_freq_out) in wm8350_set_fll() 1041 if (freq_out == 0 || freq_in == 0) in wm8350_set_fll() 1044 ret = fll_factors(&fll_div, freq_in, freq_out); in wm8350_set_fll() 1049 freq_in, freq_out, fll_div.n, fll_div.k, fll_div.div, in wm8350_set_fll() 1071 priv->fll_freq_out = freq_out; in wm8350_set_fll()
|
D | rt5651.c | 1507 unsigned int freq_in, unsigned int freq_out) in rt5651_set_dai_pll() argument 1515 freq_out == rt5651->pll_out) in rt5651_set_dai_pll() 1518 if (!freq_in || !freq_out) { in rt5651_set_dai_pll() 1546 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5651_set_dai_pll() 1563 rt5651->pll_out = freq_out; in rt5651_set_dai_pll()
|
D | rt5631.c | 1473 int source, unsigned int freq_in, unsigned int freq_out) in rt5631_codec_set_dai_pll() argument 1481 if (!freq_in || !freq_out) { in rt5631_codec_set_dai_pll() 1494 freq_out == codec_master_pll_div[i].pll_out) { in rt5631_codec_set_dai_pll() 1513 freq_out == codec_slave_pll_div[i].pll_out) { in rt5631_codec_set_dai_pll()
|
D | wm8990.c | 935 int source, unsigned int freq_in, unsigned int freq_out) in wm8990_set_dai_pll() argument 940 if (freq_in && freq_out) { in wm8990_set_dai_pll() 941 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8990_set_dai_pll()
|
D | wm8983.c | 789 unsigned int freq_out) in wm8983_set_pll() argument 796 if (!freq_in || !freq_out) { in wm8983_set_pll() 802 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8983_set_pll()
|