/linux/sound/soc/codecs/ |
A D | adau-utils.c | 15 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()
|
A D | rl6231.c | 141 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()
|
A D | wm8960.c | 689 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local 711 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll() 722 return freq_out; in wm8960_configure_pll() 729 best_freq_out = freq_out; in wm8960_configure_pll() 740 int freq_out, freq_in; in wm8960_configure_clocking() local 773 freq_out = freq_in; in wm8960_configure_clocking() 775 freq_out = wm8960->sysclk; in wm8960_configure_clocking() 792 if (freq_out < 0) { in wm8960_configure_clocking() 794 return freq_out; in wm8960_configure_clocking() 1194 if (freq_in && freq_out) { in wm8960_set_pll() [all …]
|
A D | wm8995.c | 1724 int freq_in, int freq_out) in wm8995_get_fll_config() argument 1744 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config() 1749 freq_out *= fll->outdiv + 1; 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() 1850 if (freq_out) in wm8995_set_fll() 1851 ret = wm8995_get_fll_config(&fll, freq_in, freq_out); in wm8995_set_fll() 1886 if (freq_out) in wm8995_set_fll() [all …]
|
A D | rt1019.c | 326 unsigned int freq_in, unsigned int freq_out) in rt1019_set_dai_pll() argument 333 if (!freq_in || !freq_out) { in rt1019_set_dai_pll() 341 freq_out == rt1019->pll_out) in rt1019_set_dai_pll() 360 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1019_set_dai_pll() 384 rt1019->pll_out = freq_out; in rt1019_set_dai_pll()
|
A D | wm8900.c | 746 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()
|
A D | rt1016.c | 456 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() 511 rt1016->pll_out = freq_out; in rt1016_set_component_pll()
|
A D | rt1308.c | 619 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()
|
A D | alc5632.c | 678 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()
|
A 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() 656 if (freq_out > 12288000) { in adav80x_set_pll() 658 freq_out /= 2; in adav80x_set_pll() 662 switch (freq_out) { in adav80x_set_pll()
|
A D | wm8400.c | 922 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()
|
A D | wm8580.c | 461 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()
|
A D | rt1015.c | 830 unsigned int freq_out) in rt1015_set_component_pll() argument 836 if (!freq_in || !freq_out) { in rt1015_set_component_pll() 846 freq_out == rt1015->pll_out) in rt1015_set_component_pll() 865 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1015_set_component_pll() 883 rt1015->pll_out = freq_out; in rt1015_set_component_pll()
|
A D | adau-utils.h | 5 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out,
|
A D | wm8994.c | 2123 int freq_in, int freq_out) in wm8994_get_fll_config() argument 2148 freq_out *= fll->outdiv + 1; 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() 2238 if (freq_out) in _wm8994_set_fll() 2249 freq_out = 12000000; in _wm8994_set_fll() 2264 if (freq_out) in _wm8994_set_fll() 2313 freq_in == freq_out && freq_out) { in _wm8994_set_fll() 2368 if (freq_out) { in _wm8994_set_fll() [all …]
|
A D | rt5682s.c | 2209 if (plla_table[i].freq_in == f_in && plla_table[i].freq_out == f_out) { in find_pll_inter_combination() 2228 pllb_table[j].freq_out == f_out) { in find_pll_inter_combination() 2242 unsigned int freq_out) in rt5682s_set_component_pll() argument 2248 freq_out == rt5682s->pll_out[pll_id]) in rt5682s_set_component_pll() 2251 if (!freq_in || !freq_out) { in rt5682s_set_component_pll() 2274 rt5682s->pll_comb = find_pll_inter_combination(freq_in, freq_out, in rt5682s_set_component_pll() 2282 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll() 2286 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll() 2293 a_map.freq_in, a_map.freq_out, a_map.m_bp, a_map.k_bp, in rt5682s_set_component_pll() 2309 b_map.freq_in, b_map.freq_out, b_map.m_bp, b_map.k_bp, in rt5682s_set_component_pll() [all …]
|
A D | rl6231.h | 29 const unsigned int freq_out, struct rl6231_pll_code *pll_code);
|
A D | alc5623.c | 521 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()
|
A D | wm8510.c | 314 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()
|
A D | rt5660.c | 1010 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()
|
A D | rt1305.c | 794 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()
|
A D | wm8974.c | 313 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()
|
/linux/sound/soc/pxa/ |
A D | brownstone.c | 49 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()
|
A D | mmp-sspa.c | 135 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/drivers/mfd/ |
A D | twl6040.c | 372 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()
|