Home
last modified time | relevance | path

Searched refs:Fref (Results 1 – 17 of 17) sorted by relevance

/sound/soc/codecs/
Darizona.c2106 unsigned int Fref, in arizona_validate_fll() argument
2117 if (Fref / ARIZONA_FLL_MAX_REFDIV > ARIZONA_FLL_MAX_FREF) { in arizona_validate_fll()
2120 Fref); in arizona_validate_fll()
2134 static int arizona_find_fratio(unsigned int Fref, int *fratio) in arizona_find_fratio() argument
2140 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in arizona_find_fratio()
2153 unsigned int Fref, bool sync) in arizona_calc_fratio() argument
2161 while (Fref > ARIZONA_FLL_MAX_FREF) { in arizona_calc_fratio()
2163 Fref /= 2; in arizona_calc_fratio()
2171 init_ratio = arizona_find_fratio(Fref, &cfg->fratio); in arizona_calc_fratio()
2174 Fref); in arizona_calc_fratio()
[all …]
Dwm9081.c462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
472 while ((Fref / div) > 13500000) { in fll_factors()
477 Fref); in fll_factors()
483 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
486 Fref /= div; in fll_factors()
506 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
513 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
518 Ndiv = target / Fref; in fll_factors()
521 Nmod = target % Fref; in fll_factors()
527 do_div(Kpart, Fref); in fll_factors()
[all …]
Dwm8993.c382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
393 while ((Fref / div) > 13500000) { in fll_factors()
399 Fref); in fll_factors()
404 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
407 Fref /= div; in fll_factors()
427 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
434 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
439 Ndiv = target / Fref; in fll_factors()
442 Nmod = target % Fref; in fll_factors()
448 do_div(Kpart, Fref); in fll_factors()
[all …]
Dwm2200.c1849 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1860 while ((Fref / div) > 13500000) { in fll_factors()
1866 Fref); in fll_factors()
1871 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
1874 Fref /= div; in fll_factors()
1893 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
1900 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
1904 fll_div->n = target / (fratio * Fref); in fll_factors()
1906 if (target % Fref == 0) { in fll_factors()
1910 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
[all …]
Dwm8904.c1584 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1595 while ((Fref / div) > 13500000) { in fll_factors()
1601 Fref); in fll_factors()
1606 pr_debug("Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
1609 Fref /= div; in fll_factors()
1628 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
1635 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
1640 Ndiv = target / Fref; in fll_factors()
1643 Nmod = target % Fref; in fll_factors()
1649 do_div(Kpart, Fref); in fll_factors()
[all …]
Dwm8900.c679 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
700 " Fout=%u\n", target, Fref, Fout); in fll_factors()
704 div, Fref, Fout, target); in fll_factors()
710 if (Fref < 48000) in fll_factors()
715 Ndiv = target / Fref; in fll_factors()
717 if (Fref < 1000000) in fll_factors()
723 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors()
728 do_div(Kpart, Fref); in fll_factors()
739 WARN_ON(!K && target != Fref * fll_div->fll_ratio * fll_div->n)) in fll_factors()
Dwm8996.c1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1925 while ((Fref / div) > 13500000) { in fll_factors()
1931 Fref); in fll_factors()
1936 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
1939 Fref /= div; in fll_factors()
1941 if (Fref >= 3000000) in fll_factors()
1946 if (Fref >= 48000) in fll_factors()
1968 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
1975 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
1979 fll_div->n = target / (fratio * Fref); in fll_factors()
[all …]
Dwm8400.c853 unsigned int Fref, unsigned int Fout) in fll_factors() argument
872 if (Fref < 48000) in fll_factors()
877 if (Fref < 1000000) in fll_factors()
884 if (Fref < 1000000) in fll_factors()
895 factors->n = target / (Fref * factors->fratio); in fll_factors()
896 Nmod = target % (Fref * factors->fratio); in fll_factors()
902 do_div(Kpart, (Fref * factors->fratio)); in fll_factors()
914 Fref, Fout, in fll_factors()
Dwm5100.c1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1688 while ((Fref / div) > 13500000) { in fll_factors()
1694 Fref); in fll_factors()
1699 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
1702 Fref /= div; in fll_factors()
1721 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
1728 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
1732 fll_div->n = target / (fratio * Fref); in fll_factors()
1734 if (target % Fref == 0) { in fll_factors()
1738 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
[all …]
Dwm8962.c2789 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
2800 while ((Fref / div) > 13500000) { in fll_factors()
2806 Fref); in fll_factors()
2811 pr_debug("FLL Fref=%u Fout=%u\n", Fref, Fout); in fll_factors()
2814 Fref /= div; in fll_factors()
2833 if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) { in fll_factors()
2840 pr_err("Unable to find FLL_FRATIO for Fref=%uHz\n", Fref); in fll_factors()
2844 fll_div->n = target / (fratio * Fref); in fll_factors()
2846 if (target % Fref == 0) { in fll_factors()
2850 gcd_fll = gcd(target, fratio * Fref); in fll_factors()
[all …]
Dwm8955.c144 int Fref, int Fout, struct pll_factors *pll) in wm8955_pll_factors() argument
149 dev_dbg(dev, "Fref=%u Fout=%u\n", Fref, Fout); in wm8955_pll_factors()
168 Ndiv = target / Fref; in wm8955_pll_factors()
171 Nmod = target % Fref; in wm8955_pll_factors()
177 do_div(Kpart, Fref); in wm8955_pll_factors()
Dwm8997.c927 int source, unsigned int Fref, unsigned int Fout) in wm8997_set_fll() argument
933 return arizona_set_fll(&wm8997->fll[0], source, Fref, Fout); in wm8997_set_fll()
935 return arizona_set_fll(&wm8997->fll[1], source, Fref, Fout); in wm8997_set_fll()
937 return arizona_set_fll_refclk(&wm8997->fll[0], source, Fref, in wm8997_set_fll()
940 return arizona_set_fll_refclk(&wm8997->fll[1], source, Fref, in wm8997_set_fll()
Darizona.h344 unsigned int Fref, unsigned int Fout);
346 unsigned int Fref, unsigned int Fout);
Dwm8998.c1252 int source, unsigned int Fref, unsigned int Fout) in wm8998_set_fll() argument
1258 return arizona_set_fll(&wm8998->fll[0], source, Fref, Fout); in wm8998_set_fll()
1260 return arizona_set_fll(&wm8998->fll[1], source, Fref, Fout); in wm8998_set_fll()
1262 return arizona_set_fll_refclk(&wm8998->fll[0], source, Fref, in wm8998_set_fll()
1265 return arizona_set_fll_refclk(&wm8998->fll[1], source, Fref, in wm8998_set_fll()
Dcs47l24.c935 int source, unsigned int Fref, unsigned int Fout) in cs47l24_set_fll() argument
941 return arizona_set_fll(&cs47l24->fll[0], source, Fref, Fout); in cs47l24_set_fll()
943 return arizona_set_fll(&cs47l24->fll[1], source, Fref, Fout); in cs47l24_set_fll()
945 return arizona_set_fll_refclk(&cs47l24->fll[0], source, Fref, in cs47l24_set_fll()
948 return arizona_set_fll_refclk(&cs47l24->fll[1], source, Fref, in cs47l24_set_fll()
Dwm5102.c1738 int source, unsigned int Fref, unsigned int Fout) in wm5102_set_fll() argument
1744 return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); in wm5102_set_fll()
1746 return arizona_set_fll(&wm5102->fll[1], source, Fref, Fout); in wm5102_set_fll()
1748 return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, in wm5102_set_fll()
1751 return arizona_set_fll_refclk(&wm5102->fll[1], source, Fref, in wm5102_set_fll()
Dwm5110.c2051 int source, unsigned int Fref, unsigned int Fout) in wm5110_set_fll() argument
2057 return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout); in wm5110_set_fll()
2059 return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout); in wm5110_set_fll()
2061 return arizona_set_fll_refclk(&wm5110->fll[0], source, Fref, in wm5110_set_fll()
2064 return arizona_set_fll_refclk(&wm5110->fll[1], source, Fref, in wm5110_set_fll()