Lines Matching refs:best
421 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local
429 best = 0; in wm8904_set_retune_mobile()
436 best = i; in wm8904_set_retune_mobile()
443 pdata->retune_mobile_cfgs[best].name, in wm8904_set_retune_mobile()
444 pdata->retune_mobile_cfgs[best].rate, in wm8904_set_retune_mobile()
454 pdata->retune_mobile_cfgs[best].regs[i]); in wm8904_set_retune_mobile()
493 int val, i, best; in wm8904_set_deemph() local
499 best = 1; in wm8904_set_deemph()
502 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph()
503 best = i; in wm8904_set_deemph()
506 val = best << WM8904_DEEMPH_SHIFT; in wm8904_set_deemph()
1299 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1342 best = 0; in wm8904_hw_params()
1349 best = i; in wm8904_hw_params()
1354 clk_sys_rates[best].ratio); in wm8904_hw_params()
1355 clock1 |= (clk_sys_rates[best].clk_sys_rate in wm8904_hw_params()
1359 best = 0; in wm8904_hw_params()
1365 best = i; in wm8904_hw_params()
1370 sample_rates[best].rate); in wm8904_hw_params()
1371 clock1 |= (sample_rates[best].sample_rate in wm8904_hw_params()
1379 best = 0; in wm8904_hw_params()
1387 best = i; in wm8904_hw_params()
1391 wm8904->bclk = (wm8904->sysclk_rate * 10) / bclk_divs[best].div; in wm8904_hw_params()
1393 bclk_divs[best].div, wm8904->bclk); in wm8904_hw_params()
1394 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()