/sound/soc/codecs/ |
D | wm8900.c | 688 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 717 fll_div->fllclk_div = div >> 2; in fll_factors() 720 fll_div->fll_slow_lock_ref = 1; in fll_factors() 722 fll_div->fll_slow_lock_ref = 0; in fll_factors() 727 fll_div->fll_ratio = 8; in fll_factors() 729 fll_div->fll_ratio = 1; in fll_factors() 731 fll_div->n = Ndiv / fll_div->fll_ratio; in fll_factors() 732 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors() 745 fll_div->k = K / 10; in fll_factors() 747 if (WARN_ON(target != Fout * (fll_div->fllclk_div << 2)) || in fll_factors() [all …]
|
D | wm9081.c | 466 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 485 fll_div->fll_clk_ref_div = div / 2; in fll_factors() 504 fll_div->fll_outdiv = div; in fll_factors() 511 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 524 fll_div->n = Ndiv; in fll_factors() 539 fll_div->k = K / 10; in fll_factors() 542 fll_div->n, fll_div->k, in fll_factors() 543 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 544 fll_div->fll_clk_ref_div); in fll_factors() 554 struct _fll_div fll_div; in wm9081_set_fll() local [all …]
|
D | wm8350.c | 975 static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, in fll_factors() argument 982 fll_div->div = 0x4; in fll_factors() 984 fll_div->div = 0x3; in fll_factors() 986 fll_div->div = 0x2; in fll_factors() 988 fll_div->div = 0x1; in fll_factors() 995 fll_div->ratio = 1; in fll_factors() 997 fll_div->ratio = 8; in fll_factors() 999 t1 = output * (1 << (fll_div->div + 1)); in fll_factors() 1000 t2 = input * fll_div->ratio; in fll_factors() 1002 fll_div->n = t1 / t2; in fll_factors() [all …]
|
D | wm8993.c | 385 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 395 fll_div->fll_clk_ref_div = 0; in fll_factors() 398 fll_div->fll_clk_ref_div++; in fll_factors() 424 fll_div->fll_outdiv = div; in fll_factors() 431 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 444 fll_div->n = Ndiv; in fll_factors() 459 fll_div->k = K / 10; in fll_factors() 462 fll_div->n, fll_div->k, in fll_factors() 463 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 464 fll_div->fll_clk_ref_div); in fll_factors() [all …]
|
D | wm8904.c | 1595 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1605 fll_div->fll_clk_ref_div = 0; in fll_factors() 1608 fll_div->fll_clk_ref_div++; in fll_factors() 1633 fll_div->fll_outdiv = div - 1; in fll_factors() 1640 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1653 fll_div->n = Ndiv; in fll_factors() 1668 fll_div->k = K / 10; in fll_factors() 1671 fll_div->n, fll_div->k, in fll_factors() 1672 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 1673 fll_div->fll_clk_ref_div); in fll_factors() [all …]
|
D | wm8996.c | 1918 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1928 fll_div->fll_refclk_div = 0; in fll_factors() 1931 fll_div->fll_refclk_div++; in fll_factors() 1946 fll_div->fll_loop_gain = 5; in fll_factors() 1948 fll_div->fll_loop_gain = 0; in fll_factors() 1951 fll_div->fll_ref_freq = 0; in fll_factors() 1953 fll_div->fll_ref_freq = 1; in fll_factors() 1966 fll_div->fll_outdiv = div - 1; in fll_factors() 1973 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1983 fll_div->n = target / (fratio * Fref); in fll_factors() [all …]
|
D | wm8962.c | 2735 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2745 fll_div->fll_refclk_div = 0; in fll_factors() 2748 fll_div->fll_refclk_div++; in fll_factors() 2773 fll_div->fll_outdiv = div - 1; in fll_factors() 2780 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 2790 fll_div->n = target / (fratio * Fref); in fll_factors() 2793 fll_div->theta = 0; in fll_factors() 2794 fll_div->lambda = 1; in fll_factors() 2798 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 2800 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm2200.c | 1860 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1870 fll_div->fll_refclk_div = 0; in fll_factors() 1873 fll_div->fll_refclk_div++; in fll_factors() 1898 fll_div->fll_outdiv = div - 1; in fll_factors() 1905 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1915 fll_div->n = target / (fratio * Fref); in fll_factors() 1918 fll_div->theta = 0; in fll_factors() 1919 fll_div->lambda = 0; in fll_factors() 1923 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1925 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm5100.c | 1681 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1691 fll_div->fll_refclk_div = 0; in fll_factors() 1694 fll_div->fll_refclk_div++; in fll_factors() 1719 fll_div->fll_outdiv = div - 1; in fll_factors() 1726 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1736 fll_div->n = target / (fratio * Fref); in fll_factors() 1739 fll_div->theta = 0; in fll_factors() 1740 fll_div->lambda = 0; in fll_factors() 1744 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1746 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm8995.c | 1717 struct fll_div { struct 1725 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument 1803 struct fll_div fll; in wm8995_set_fll()
|
D | wm8994.c | 2040 struct fll_div { struct 2049 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument 2138 struct fll_div fll; in _wm8994_set_fll()
|