Home
last modified time | relevance | path

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

12

/sound/soc/pxa/
Dbrownstone.c84 int freq_out, sspa_mclk, sysclk; in brownstone_wm8994_hw_params() local
88 freq_out = params_rate(params) * 512; in brownstone_wm8994_hw_params()
92 freq_out = params_rate(params) * 1024; in brownstone_wm8994_hw_params()
96 sspa_div = freq_out; in brownstone_wm8994_hw_params()
99 snd_soc_dai_set_sysclk(cpu_dai, MMP_SSPA_CLK_AUDIO, freq_out, 0); in brownstone_wm8994_hw_params()
100 snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); in brownstone_wm8994_hw_params()
101 snd_soc_dai_set_pll(cpu_dai, MMP_SSPA_CLK, 0, freq_out, sspa_mclk); in brownstone_wm8994_hw_params()
Dmmp-sspa.c150 unsigned int freq_out) in mmp_sspa_set_dai_pll() argument
157 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll()
162 ret = clk_set_rate(priv->sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
Dpxa-ssp.c329 int source, unsigned int freq_in, unsigned int freq_out) in pxa_ssp_set_dai_pll() argument
338 switch (freq_out) { in pxa_ssp_set_dai_pll()
368 do_div(tmp, freq_out); in pxa_ssp_set_dai_pll()
378 val, freq_out); in pxa_ssp_set_dai_pll()
/sound/soc/codecs/
Dwm8995.c1739 int freq_in, int freq_out) in wm8995_get_fll_config() argument
1744 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8995_get_fll_config()
1759 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config()
1764 freq_out *= fll->outdiv + 1; in wm8995_get_fll_config()
1765 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8995_get_fll_config()
1785 Ndiv = freq_out / freq_in; in wm8995_get_fll_config()
1788 Nmod = freq_out % freq_in; in wm8995_get_fll_config()
1811 unsigned int freq_out) in wm8995_set_fll() argument
1844 if (freq_out) in wm8995_set_fll()
1858 wm8995->fll[id].in == freq_in && wm8995->fll[id].out == freq_out) in wm8995_set_fll()
[all …]
Dwm8900.c752 int fll_id, unsigned int freq_in, unsigned int freq_out) in wm8900_set_fll() argument
757 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll()
765 if (!freq_in || !freq_out) { in wm8900_set_fll()
771 wm8900->fll_out = freq_out; in wm8900_set_fll()
776 if (fll_factors(&fll_div, freq_in, freq_out) != 0) in wm8900_set_fll()
780 wm8900->fll_out = freq_out; in wm8900_set_fll()
816 int source, unsigned int freq_in, unsigned int freq_out) in wm8900_set_dai_pll() argument
818 return wm8900_set_fll(codec_dai->codec, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
Dadau1373.c1121 int source, unsigned int freq_in, unsigned int freq_out) in adau1373_set_pll() argument
1155 if (freq_out < 45158000 || freq_out > 49152000) in adau1373_set_pll()
1165 if (freq_out % freq_in != 0) { in adau1373_set_pll()
1169 r = freq_out / freq_in; in adau1373_set_pll()
1170 i = freq_out % freq_in; in adau1373_set_pll()
1178 r = freq_out / freq_in; in adau1373_set_pll()
Dwm8580.c430 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()
Dadav80x.c602 int source, unsigned int freq_in, unsigned int freq_out) in adav80x_set_pll() argument
618 if (!freq_out) in adav80x_set_pll()
633 if (freq_out > 12288000) { in adav80x_set_pll()
635 freq_out /= 2; in adav80x_set_pll()
639 switch (freq_out) { in adav80x_set_pll()
Dalc5632.c672 int source, unsigned int freq_in, unsigned int freq_out) in alc5632_set_dai_pll() argument
695 if (!freq_in || !freq_out) in alc5632_set_dai_pll()
702 && codec_master_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
712 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
723 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
Dwm8994.c2018 int freq_in, int freq_out) in wm8994_get_fll_config() argument
2023 pr_debug("FLL input=%dHz, output=%dHz\n", freq_in, freq_out); in wm8994_get_fll_config()
2038 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8994_get_fll_config()
2043 freq_out *= fll->outdiv + 1; in wm8994_get_fll_config()
2044 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); in wm8994_get_fll_config()
2064 Ndiv = freq_out / freq_in; in wm8994_get_fll_config()
2067 Nmod = freq_out % freq_in; in wm8994_get_fll_config()
2089 unsigned int freq_in, unsigned int freq_out) in _wm8994_set_fll() argument
2120 if (freq_out) in _wm8994_set_fll()
2131 freq_out = 12000000; in _wm8994_set_fll()
[all …]
Dwm8400.c998 unsigned int freq_out) in wm8400_set_dai_pll() argument
1006 if (freq_in == wm8400->fll_in && freq_out == wm8400->fll_out) in wm8400_set_dai_pll()
1009 if (freq_out) { in wm8400_set_dai_pll()
1010 ret = fll_factors(wm8400, &factors, freq_in, freq_out); in wm8400_set_dai_pll()
1020 wm8400->fll_out = freq_out; in wm8400_set_dai_pll()
1032 if (!freq_out) in wm8400_set_dai_pll()
Dwm8974.c319 int source, unsigned int freq_in, unsigned int freq_out) in wm8974_set_dai_pll() argument
325 if (freq_in == 0 || freq_out == 0) { in wm8974_set_dai_pll()
336 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll()
Dwm8510.c317 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()
Dalc5623.c530 int source, unsigned int freq_in, unsigned int freq_out) in alc5623_set_dai_pll() argument
550 if (!freq_in || !freq_out) in alc5623_set_dai_pll()
557 && codec_master_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll()
567 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5623_set_dai_pll()
Dwm8960.c832 int source, unsigned int freq_in, unsigned int freq_out) in wm8960_set_dai_pll() argument
839 if (freq_in && freq_out) { in wm8960_set_dai_pll()
840 ret = pll_factors(freq_in, freq_out, &pll_div); in wm8960_set_dai_pll()
850 if (!freq_in || !freq_out) in wm8960_set_dai_pll()
Dwm8940.c555 int source, unsigned int freq_in, unsigned int freq_out) in wm8940_set_dai_pll() argument
564 if (freq_in == 0 || freq_out == 0) { in wm8940_set_dai_pll()
574 pll_factors(freq_out*4, freq_in); in wm8940_set_dai_pll()
Dwm8350.c1029 unsigned int freq_out) in wm8350_set_fll() argument
1038 if (freq_in == priv->fll_freq_in && freq_out == priv->fll_freq_out) in wm8350_set_fll()
1045 if (freq_out == 0 || freq_in == 0) in wm8350_set_fll()
1048 ret = fll_factors(&fll_div, freq_in, freq_out); in wm8350_set_fll()
1053 freq_in, freq_out, fll_div.n, fll_div.k, fll_div.div, in wm8350_set_fll()
1075 priv->fll_freq_out = freq_out; in wm8350_set_fll()
Dwm8804.c378 unsigned int freq_out) in wm8804_set_pll() argument
383 if (!freq_in || !freq_out) { in wm8804_set_pll()
391 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8804_set_pll()
Drt5631.c1481 int source, unsigned int freq_in, unsigned int freq_out) in rt5631_codec_set_dai_pll() argument
1489 if (!freq_in || !freq_out) { in rt5631_codec_set_dai_pll()
1502 freq_out == codec_master_pll_div[i].pll_out) { in rt5631_codec_set_dai_pll()
1521 freq_out == codec_slave_pll_div[i].pll_out) { in rt5631_codec_set_dai_pll()
Dwm8983.c847 unsigned int freq_out) in wm8983_set_pll() argument
854 if (!freq_in || !freq_out) { in wm8983_set_pll()
860 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8983_set_pll()
Dwm8985.c826 unsigned int freq_out) in wm8985_set_pll() argument
833 if (!freq_in || !freq_out) { in wm8985_set_pll()
838 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8985_set_pll()
Dwm8991.c964 int pll_id, int src, unsigned int freq_in, unsigned int freq_out) in wm8991_set_dai_pll() argument
970 if (freq_in && freq_out) { in wm8991_set_dai_pll()
971 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8991_set_dai_pll()
Dwm8990.c981 int source, unsigned int freq_in, unsigned int freq_out) in wm8990_set_dai_pll() argument
986 if (freq_in && freq_out) { in wm8990_set_dai_pll()
987 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8990_set_dai_pll()
Dda732x.c1140 unsigned int freq_out) in da732x_set_dai_pll() argument
1148 if (freq_out == 0) { in da732x_set_dai_pll()
1182 div_hi = freq_out / fref; in da732x_set_dai_pll()
1183 frac_div = (u64)(freq_out % fref) * 8192ULL; in da732x_set_dai_pll()
Dwm9713.c754 int pll_id, unsigned int freq_in, unsigned int freq_out) in wm9713_set_pll() argument
819 int source, unsigned int freq_in, unsigned int freq_out) in wm9713_set_dai_pll() argument
822 return wm9713_set_pll(codec, pll_id, freq_in, freq_out); in wm9713_set_dai_pll()

12