Home
last modified time | relevance | path

Searched refs:bclk_divs (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/sound/soc/codecs/
Dwm9081.c121 } bclk_divs[] = { variable
1089 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm9081_hw_params()
1090 cur_val = ((wm9081->sysclk_rate * 10) / bclk_divs[i].div) in wm9081_hw_params()
1099 wm9081->bclk = (wm9081->sysclk_rate * 10) / bclk_divs[best].div; in wm9081_hw_params()
1101 bclk_divs[best].div, wm9081->bclk); in wm9081_hw_params()
1102 aif3 |= bclk_divs[best].bclk_div; in wm9081_hw_params()
Dwm8960.c599 static const int bclk_divs[] = { variable
648 for (k = 0; k < ARRAY_SIZE(bclk_divs); ++k) { in wm8960_configure_sysclk()
649 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
663 if (k != ARRAY_SIZE(bclk_divs)) in wm8960_configure_sysclk()
717 for (k = 0; k < ARRAY_SIZE(bclk_divs); ++k) { in wm8960_configure_pll()
721 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
Dwm8903.c1399 } bclk_divs[] = { variable
1552 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params()
1554 while (i < ARRAY_SIZE(bclk_divs)) { in wm8903_hw_params()
1555 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1567 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params()
1568 (clk_sys * 10) / bclk_divs[bclk_div].ratio); in wm8903_hw_params()
1570 aif2 |= bclk_divs[bclk_div].div; in wm8903_hw_params()
Dwm8983.c120 static const int bclk_divs[] = { variable
726 for (i = 0; i < ARRAY_SIZE(bclk_divs); ++i) { in wm8983_hw_params()
727 if (wm8983->bclk == tmp / bclk_divs[i]) in wm8983_hw_params()
731 if (i == ARRAY_SIZE(bclk_divs)) { in wm8983_hw_params()
Dwm8993.c184 } bclk_divs[] = { variable
1276 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8993_hw_params()
1277 cur_val = ((wm8993->sysclk_rate * 10) / bclk_divs[i].div) in wm8993_hw_params()
1286 wm8993->bclk = (wm8993->sysclk_rate * 10) / bclk_divs[best].div; in wm8993_hw_params()
1288 bclk_divs[best].div, wm8993->bclk); in wm8993_hw_params()
1289 clocking1 |= bclk_divs[best].bclk_div << WM8993_BCLK_DIV_SHIFT; in wm8993_hw_params()
Dwm8985.c210 static const int bclk_divs[] = { variable
824 for (i = 0; i < ARRAY_SIZE(bclk_divs); ++i) { in wm8985_hw_params()
825 if (wm8985->bclk == tmp / bclk_divs[i]) in wm8985_hw_params()
829 if (i == ARRAY_SIZE(bclk_divs)) { in wm8985_hw_params()
Dwm8995.c1539 static const int bclk_divs[] = { variable
1653 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8995_hw_params()
1654 cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; in wm8995_hw_params()
1661 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1663 bclk_divs[best], bclk_rate); in wm8995_hw_params()
Dwm8904.c1262 } bclk_divs[] = { variable
1374 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8904_hw_params()
1375 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1384 wm8904->bclk = (wm8904->sysclk_rate * 10) / bclk_divs[best].div; in wm8904_hw_params()
1386 bclk_divs[best].div, wm8904->bclk); in wm8904_hw_params()
1387 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()
Dwm8962.c2395 static const int bclk_divs[] = { variable
2477 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8962_configure_bclk()
2478 if (bclk_divs[i] < 0) in wm8962_configure_bclk()
2481 if (dspclk / bclk_divs[i] == wm8962->bclk) { in wm8962_configure_bclk()
2483 bclk_divs[i], wm8962->bclk); in wm8962_configure_bclk()
2488 if (i == ARRAY_SIZE(bclk_divs)) { in wm8962_configure_bclk()
Dwm8996.c1527 static const int bclk_divs[] = { variable
1556 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8996_update_bclk()
1557 cur_val = (wm8996->sysclk / bclk_divs[i]) - bclk_rate; in wm8996_update_bclk()
1562 bclk_rate = wm8996->sysclk / bclk_divs[best]; in wm8996_update_bclk()
1564 bclk_divs[best], bclk_rate); in wm8996_update_bclk()
Dwm8994.c2904 static int bclk_divs[] = { variable
3044 for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) { in wm8994_hw_params()
3045 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
3050 bclk_rate = wm8994->aifclk[id] * 10 / bclk_divs[best]; in wm8994_hw_params()
3052 bclk_divs[best], bclk_rate); in wm8994_hw_params()