/linux-6.1.9/sound/soc/codecs/ |
D | wm8900.c | 679 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 708 fll_div->fllclk_div = div >> 2; in fll_factors() 711 fll_div->fll_slow_lock_ref = 1; in fll_factors() 713 fll_div->fll_slow_lock_ref = 0; in fll_factors() 718 fll_div->fll_ratio = 8; in fll_factors() 720 fll_div->fll_ratio = 1; in fll_factors() 722 fll_div->n = Ndiv / fll_div->fll_ratio; in fll_factors() 723 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors() 736 fll_div->k = K / 10; in fll_factors() 738 if (WARN_ON(target != Fout * (fll_div->fllclk_div << 2)) || in fll_factors() [all …]
|
D | wm9081.c | 462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 481 fll_div->fll_clk_ref_div = div / 2; in fll_factors() 500 fll_div->fll_outdiv = div; in fll_factors() 507 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 520 fll_div->n = Ndiv; in fll_factors() 535 fll_div->k = K / 10; in fll_factors() 538 fll_div->n, fll_div->k, in fll_factors() 539 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 540 fll_div->fll_clk_ref_div); in fll_factors() 550 struct _fll_div fll_div; in wm9081_set_fll() local [all …]
|
D | wm8350.c | 973 static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, in fll_factors() argument 980 fll_div->div = 0x4; in fll_factors() 982 fll_div->div = 0x3; in fll_factors() 984 fll_div->div = 0x2; in fll_factors() 986 fll_div->div = 0x1; in fll_factors() 993 fll_div->ratio = 1; in fll_factors() 995 fll_div->ratio = 8; in fll_factors() 997 t1 = output * (1 << (fll_div->div + 1)); in fll_factors() 998 t2 = input * fll_div->ratio; in fll_factors() 1000 fll_div->n = t1 / t2; in fll_factors() [all …]
|
D | wm8993.c | 382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 392 fll_div->fll_clk_ref_div = 0; in fll_factors() 395 fll_div->fll_clk_ref_div++; in fll_factors() 421 fll_div->fll_outdiv = div; in fll_factors() 428 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 441 fll_div->n = Ndiv; in fll_factors() 456 fll_div->k = K / 10; in fll_factors() 459 fll_div->n, fll_div->k, in fll_factors() 460 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 461 fll_div->fll_clk_ref_div); in fll_factors() [all …]
|
D | wm8996.c | 1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1924 fll_div->fll_refclk_div = 0; in fll_factors() 1927 fll_div->fll_refclk_div++; in fll_factors() 1942 fll_div->fll_loop_gain = 5; in fll_factors() 1944 fll_div->fll_loop_gain = 0; in fll_factors() 1947 fll_div->fll_ref_freq = 0; in fll_factors() 1949 fll_div->fll_ref_freq = 1; in fll_factors() 1962 fll_div->fll_outdiv = div - 1; in fll_factors() 1969 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1979 fll_div->n = target / (fratio * Fref); in fll_factors() [all …]
|
D | wm8904.c | 1584 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1594 fll_div->fll_clk_ref_div = 0; in fll_factors() 1597 fll_div->fll_clk_ref_div++; in fll_factors() 1622 fll_div->fll_outdiv = div - 1; in fll_factors() 1629 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1642 fll_div->n = Ndiv; in fll_factors() 1657 fll_div->k = K / 10; in fll_factors() 1660 fll_div->n, fll_div->k, in fll_factors() 1661 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors() 1662 fll_div->fll_clk_ref_div); in fll_factors() [all …]
|
D | wm2200.c | 1849 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1859 fll_div->fll_refclk_div = 0; in fll_factors() 1862 fll_div->fll_refclk_div++; in fll_factors() 1887 fll_div->fll_outdiv = div - 1; in fll_factors() 1894 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1904 fll_div->n = target / (fratio * Fref); in fll_factors() 1907 fll_div->theta = 0; in fll_factors() 1908 fll_div->lambda = 0; in fll_factors() 1912 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1914 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm8962.c | 2802 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 2812 fll_div->fll_refclk_div = 0; in fll_factors() 2815 fll_div->fll_refclk_div++; in fll_factors() 2840 fll_div->fll_outdiv = div - 1; in fll_factors() 2847 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 2857 fll_div->n = target / (fratio * Fref); in fll_factors() 2860 fll_div->theta = 0; in fll_factors() 2861 fll_div->lambda = 1; in fll_factors() 2865 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 2867 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm5100.c | 1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument 1687 fll_div->fll_refclk_div = 0; in fll_factors() 1690 fll_div->fll_refclk_div++; in fll_factors() 1715 fll_div->fll_outdiv = div - 1; in fll_factors() 1722 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors() 1732 fll_div->n = target / (fratio * Fref); in fll_factors() 1735 fll_div->theta = 0; in fll_factors() 1736 fll_div->lambda = 0; in fll_factors() 1740 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1742 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors() [all …]
|
D | wm8995.c | 1715 struct fll_div { struct 1723 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument 1801 struct fll_div fll; in wm8995_set_fll()
|
D | wm8994.c | 2113 struct fll_div { struct 2122 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument 2211 struct fll_div fll; in _wm8994_set_fll()
|