/Linux-v4.19/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 | 1596 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1606 fll_div->fll_clk_ref_div = 0; in fll_factors() 1609 fll_div->fll_clk_ref_div++; in fll_factors() 1634 fll_div->fll_outdiv = div - 1; in fll_factors() 1641 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1654 fll_div->n = Ndiv; in fll_factors() 1669 fll_div->k = K / 10; in fll_factors() 1672 fll_div->n, fll_div->k, in fll_factors() 1673 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 1674 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 | 2736 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2746 fll_div->fll_refclk_div = 0; in fll_factors() 2749 fll_div->fll_refclk_div++; in fll_factors() 2774 fll_div->fll_outdiv = div - 1; in fll_factors() 2781 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 2791 fll_div->n = target / (fratio * Fref); in fll_factors() 2794 fll_div->theta = 0; in fll_factors() 2795 fll_div->lambda = 0; in fll_factors() 2799 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 2801 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 | 1680 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1690 fll_div->fll_refclk_div = 0; in fll_factors() 1693 fll_div->fll_refclk_div++; in fll_factors() 1718 fll_div->fll_outdiv = div - 1; in fll_factors() 1725 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1735 fll_div->n = target / (fratio * Fref); in fll_factors() 1738 fll_div->theta = 0; in fll_factors() 1739 fll_div->lambda = 0; in fll_factors() 1743 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1745 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm8995.c | 1718 struct fll_div { struct 1726 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument 1804 struct fll_div fll; in wm8995_set_fll()
|
D | wm8994.c | 2041 struct fll_div { struct 2050 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument 2139 struct fll_div fll; in _wm8994_set_fll()
|