Lines Matching refs:best
424 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local
432 best = 0; in wm8904_set_retune_mobile()
439 best = i; in wm8904_set_retune_mobile()
446 pdata->retune_mobile_cfgs[best].name, in wm8904_set_retune_mobile()
447 pdata->retune_mobile_cfgs[best].rate, in wm8904_set_retune_mobile()
457 pdata->retune_mobile_cfgs[best].regs[i]); in wm8904_set_retune_mobile()
496 int val, i, best; in wm8904_set_deemph() local
502 best = 1; in wm8904_set_deemph()
505 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph()
506 best = i; in wm8904_set_deemph()
509 val = best << WM8904_DEEMPH_SHIFT; in wm8904_set_deemph()
1278 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1321 best = 0; in wm8904_hw_params()
1328 best = i; in wm8904_hw_params()
1333 clk_sys_rates[best].ratio); in wm8904_hw_params()
1334 clock1 |= (clk_sys_rates[best].clk_sys_rate in wm8904_hw_params()
1338 best = 0; in wm8904_hw_params()
1344 best = i; in wm8904_hw_params()
1349 sample_rates[best].rate); in wm8904_hw_params()
1350 clock1 |= (sample_rates[best].sample_rate in wm8904_hw_params()
1358 best = 0; in wm8904_hw_params()
1366 best = i; in wm8904_hw_params()
1370 wm8904->bclk = (wm8904->sysclk_rate * 10) / bclk_divs[best].div; in wm8904_hw_params()
1372 bclk_divs[best].div, wm8904->bclk); in wm8904_hw_params()
1373 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()