Home
last modified time | relevance | path

Searched refs:cur_val (Results 1 – 12 of 12) 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.c1299 int ret, i, best, best_val, cur_val; in wm8904_hw_params() local
1346 cur_val = abs((wm8904->sysclk_rate / in wm8904_hw_params()
1348 if (cur_val < best_val) { in wm8904_hw_params()
1350 best_val = cur_val; in wm8904_hw_params()
1363 cur_val = abs(wm8904->fs - sample_rates[i].rate); in wm8904_hw_params()
1364 if (cur_val < best_val) { in wm8904_hw_params()
1366 best_val = cur_val; in wm8904_hw_params()
1382 cur_val = ((wm8904->sysclk_rate * 10) / bclk_divs[i].div) in wm8904_hw_params()
1384 if (cur_val < 0) /* Table is sorted */ in wm8904_hw_params()
1386 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()
1554 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1555 if (cur_val < 0) /* BCLK table is sorted */ 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.c2929 int i, cur_val, best_val, bclk_rate, best; in wm8994_hw_params() local
3027 cur_val = abs((fs_ratios[i] * params_rate(params)) in wm8994_hw_params()
3029 if (cur_val >= best_val) in wm8994_hw_params()
3032 best_val = cur_val; in wm8994_hw_params()
3045 cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate; in wm8994_hw_params()
3046 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.c345 int i, best, best_val, cur_val, ret; in atmel_classd_cpu_dai_hw_params() local
354 cur_val = abs(fs - sample_rates[i].rate); in atmel_classd_cpu_dai_hw_params()
355 if (cur_val < best_val) { in atmel_classd_cpu_dai_hw_params()
357 best_val = cur_val; in atmel_classd_cpu_dai_hw_params()
/sound/usb/
Dmixer_quirks.c733 bool cur_val, new_val; in snd_mbox1_clk_switch_put() local
735 cur_val = kctl->private_value; in snd_mbox1_clk_switch_put()
737 if (cur_val == new_val) in snd_mbox1_clk_switch_put()
803 bool cur_val, new_val; in snd_mbox1_src_switch_put() local
805 cur_val = kctl->private_value; in snd_mbox1_src_switch_put()
807 if (cur_val == new_val) in snd_mbox1_src_switch_put()
1090 int cur_val, err, new_val; in snd_ftu_eff_switch_put() local
1092 cur_val = pval >> 24; in snd_ftu_eff_switch_put()
1094 if (cur_val == new_val) in snd_ftu_eff_switch_put()
/sound/pci/hda/
Dhda_local.h191 unsigned int *cur_val);
Dhda_codec.c3498 unsigned int *cur_val) in snd_hda_input_mux_put() argument
3507 if (*cur_val == idx) in snd_hda_input_mux_put()
3511 *cur_val = idx; in snd_hda_input_mux_put()
Dpatch_ca0132.c5725 long *cur_val; in ca0132_alt_xbass_xover_slider_put() local
5729 cur_val = &spec->bass_redirect_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5731 cur_val = &spec->xbass_xover_freq; in ca0132_alt_xbass_xover_slider_put()
5734 if (*cur_val == *valp) in ca0132_alt_xbass_xover_slider_put()
5737 *cur_val = *valp; in ca0132_alt_xbass_xover_slider_put()
5741 ca0132_alt_bass_redirection_xover_set(codec, *cur_val); in ca0132_alt_xbass_xover_slider_put()