Home
last modified time | relevance | path

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

/sound/soc/codecs/
Dwm9081.c997 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1058 cur_val = abs((wm9081->sysclk_rate / in wm9081_hw_params()
1060 if (cur_val < best_val) { in wm9081_hw_params()
1062 best_val = cur_val; in wm9081_hw_params()
1075 cur_val = abs(wm9081->fs - sample_rates[i].rate); in wm9081_hw_params()
1076 if (cur_val < best_val) { in wm9081_hw_params()
1078 best_val = cur_val; in wm9081_hw_params()
1090 cur_val = ((wm9081->sysclk_rate * 10) / bclk_divs[i].div) in wm9081_hw_params()
1092 if (cur_val < 0) /* Table is sorted */ in wm9081_hw_params()
1094 if (cur_val < best_val) { in wm9081_hw_params()
[all …]
Dwm8993.c1190 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1245 cur_val = abs((wm8993->sysclk_rate / in wm8993_hw_params()
1247 if (cur_val < best_val) { in wm8993_hw_params()
1249 best_val = cur_val; in wm8993_hw_params()
1262 cur_val = abs(wm8993->fs - sample_rates[i].rate); in wm8993_hw_params()
1263 if (cur_val < best_val) { in wm8993_hw_params()
1265 best_val = cur_val; in wm8993_hw_params()
1277 cur_val = ((wm8993->sysclk_rate * 10) / bclk_divs[i].div) in wm8993_hw_params()
1279 if (cur_val < 0) /* Table is sorted */ in wm8993_hw_params()
1281 if (cur_val < best_val) { in wm8993_hw_params()
[all …]
Dwm8904.c1292 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1339 cur_val = abs((wm8904->sysclk_rate / in wm8904_hw_params()
1341 if (cur_val < best_val) { in wm8904_hw_params()
1343 best_val = cur_val; in wm8904_hw_params()
1356 cur_val = abs(wm8904->fs - sample_rates[i].rate); in wm8904_hw_params()
1357 if (cur_val < best_val) { in wm8904_hw_params()
1359 best_val = cur_val; in wm8904_hw_params()
1375 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1377 if (cur_val < 0) /* Table is sorted */ in wm8904_hw_params()
1379 if (cur_val < best_val) { in wm8904_hw_params()
[all …]
Dwm8903.c1451 int cur_val; in wm8903_hw_params() local
1471 cur_val = abs(sample_rates[i].rate - fs); in wm8903_hw_params()
1472 if (cur_val <= best_val) { in wm8903_hw_params()
1474 best_val = cur_val; in wm8903_hw_params()
1516 cur_val = abs((wm8903->sysclk / in wm8903_hw_params()
1520 if (cur_val <= best_val) { in wm8903_hw_params()
1522 best_val = cur_val; in wm8903_hw_params()
1555 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1556 if (cur_val < 0) /* BCLK table is sorted */ in wm8903_hw_params()
1559 best_val = cur_val; in wm8903_hw_params()
Dwm8995.c1556 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1633 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8995_hw_params()
1635 if (cur_val >= best_val) in wm8995_hw_params()
1638 best_val = cur_val; in wm8995_hw_params()
1654 cur_val = (wm8995->aifclk[dai->id] * 10 / bclk_divs[i]) - bclk_rate; in wm8995_hw_params()
1655 if (cur_val < 0) /* BCLK table is sorted */ in wm8995_hw_params()
Dwm8994.c2790 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local
2888 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8994_hw_params()
2890 if (cur_val >= best_val) in wm8994_hw_params()
2893 best_val = cur_val; in wm8994_hw_params()
2906 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
2907 if (cur_val < 0) /* BCLK table is sorted */ in wm8994_hw_params()
Dwm8996.c1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local
1557 cur_val = (wm8996->sysclk / bclk_divs[i]) - bclk_rate; in wm8996_update_bclk()
1558 if (cur_val < 0) /* BCLK table is sorted */ in wm8996_update_bclk()
/sound/soc/atmel/
Datmel-classd.c384 int i, best, best_val, cur_val, ret; in atmel_classd_codec_dai_hw_params() local
393 cur_val = abs(fs - sample_rates[i].rate); in atmel_classd_codec_dai_hw_params()
394 if (cur_val < best_val) { in atmel_classd_codec_dai_hw_params()
396 best_val = cur_val; in atmel_classd_codec_dai_hw_params()
/sound/usb/
Dmixer_quirks.c677 bool cur_val, new_val; in snd_mbox1_switch_put() local
679 cur_val = kctl->private_value; in snd_mbox1_switch_put()
681 if (cur_val == new_val) in snd_mbox1_switch_put()
946 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local
948 cur_val = pval >> 24; in snd_ftu_eff_switch_put()
950 if (cur_val == new_val) in snd_ftu_eff_switch_put()
/sound/pci/hda/
Dhda_local.h196 unsigned int *cur_val);
Dhda_codec.c3496 unsigned int *cur_val) in snd_hda_input_mux_put() argument
3505 if (*cur_val == idx) in snd_hda_input_mux_put()
3509 *cur_val = idx; in snd_hda_input_mux_put()