Home
last modified time | relevance | path

Searched refs:best (Results 1 – 24 of 24) sorted by relevance

/sound/pci/emu10k1/
Demu10k1_callback.c40 struct best_voice *best, int active_only);
94 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local
101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
103 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice()
105 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
224 struct best_voice *best, int active_only) in lookup_voices() argument
231 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
232 best[i].voice = -1; in lookup_voices()
248 bp = best + V_FREE; in lookup_voices()
250 bp = best + V_OFF; in lookup_voices()
[all …]
/sound/isa/sb/
Demu8000_callback.c169 struct best { in get_voice() struct
172 } best[END]; in get_voice() local
173 struct best *bp; in get_voice()
178 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in get_voice()
179 best[i].voice = -1; in get_voice()
192 bp = best + OFF; in get_voice()
195 bp = best + RELEASED; in get_voice()
198 bp = best + OFF; in get_voice()
201 bp = best + PLAYING; in get_voice()
210 bp = best + OFF; in get_voice()
[all …]
/sound/soc/codecs/
Dwm9081.c1008 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1065 best = 0; in wm9081_hw_params()
1072 best = i; in wm9081_hw_params()
1077 clk_sys_rates[best].ratio); in wm9081_hw_params()
1078 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params()
1082 best = 0; in wm9081_hw_params()
1088 best = i; in wm9081_hw_params()
1093 sample_rates[best].rate); in wm9081_hw_params()
1094 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params()
1098 best = 0; in wm9081_hw_params()
[all …]
Dwm8904.c424 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()
[all …]
Dwm8993.c1194 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1245 best = 0; in wm8993_hw_params()
1252 best = i; in wm8993_hw_params()
1257 clk_sys_rates[best].ratio); in wm8993_hw_params()
1258 clocking3 |= (clk_sys_rates[best].clk_sys_rate in wm8993_hw_params()
1262 best = 0; in wm8993_hw_params()
1268 best = i; in wm8993_hw_params()
1273 sample_rates[best].rate); in wm8993_hw_params()
1274 clocking3 |= (sample_rates[best].sample_rate in wm8993_hw_params()
1278 best = 0; in wm8993_hw_params()
[all …]
Dwm8731.c93 int val, i, best; in wm8731_set_deemph() local
99 best = 1; in wm8731_set_deemph()
102 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
103 best = i; in wm8731_set_deemph()
106 val = best << 1; in wm8731_set_deemph()
108 best = 0; in wm8731_set_deemph()
113 best, wm8731_deemph[best]); in wm8731_set_deemph()
Dak4641.c54 int i, best = 0; in ak4641_set_deemph() local
60 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph()
61 best = i; in ak4641_set_deemph()
64 best = i; in ak4641_set_deemph()
67 dev_dbg(codec->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph()
69 return snd_soc_update_bits(codec, AK4641_DAC, 0x3, best); in ak4641_set_deemph()
Dwm8978.c733 int i, best = 0; in wm8978_hw_params() local
802 best = i; in wm8978_hw_params()
810 best = wm8978->mclk_idx; in wm8978_hw_params()
816 f_sel * mclk_denominator[best] / mclk_numerator[best] / 256, in wm8978_hw_params()
821 params_format(params), params_rate(params), best); in wm8978_hw_params()
824 snd_soc_update_bits(codec, WM8978_CLOCKING, 0xe0, best << 5); in wm8978_hw_params()
Dmax98088.c1736 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1748 best = 0; in max98088_setup_eq1()
1753 best = i; in max98088_setup_eq1()
1759 pdata->eq_cfg[best].name, in max98088_setup_eq1()
1760 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1783 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1795 best = 0; in max98088_setup_eq2()
1800 best = i; in max98088_setup_eq2()
1806 pdata->eq_cfg[best].name, in max98088_setup_eq2()
1807 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
Dwm8994.c112 int best, i, sysclk, val; in wm8958_micd_set_rate() local
136 best = 0; in wm8958_micd_set_rate()
141 abs(rates[best].sysclk - sysclk)) in wm8958_micd_set_rate()
142 best = i; in wm8958_micd_set_rate()
143 else if (rates[best].idle != idle) in wm8958_micd_set_rate()
144 best = i; in wm8958_micd_set_rate()
147 val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT in wm8958_micd_set_rate()
148 | rates[best].rate << WM8958_MICD_RATE_SHIFT; in wm8958_micd_set_rate()
151 rates[best].start, rates[best].rate, sysclk, in wm8958_micd_set_rate()
399 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local
[all …]
Dmax98095.c1868 int fs, best, best_val, i; in max98095_put_eq_enum() local
1884 best = 0; in max98095_put_eq_enum()
1889 best = i; in max98095_put_eq_enum()
1895 pdata->eq_cfg[best].name, in max98095_put_eq_enum()
1896 pdata->eq_cfg[best].rate, fs); in max98095_put_eq_enum()
1898 coef_set = &pdata->eq_cfg[best]; in max98095_put_eq_enum()
2021 int fs, best, best_val, i; in max98095_put_bq_enum() local
2038 best = 0; in max98095_put_bq_enum()
2043 best = i; in max98095_put_bq_enum()
2049 pdata->bq_cfg[best].name, in max98095_put_bq_enum()
[all …]
Dwm8961.c511 int i, best, target, fs; in wm8961_hw_params() local
522 best = 0; in wm8961_hw_params()
525 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
526 best = i; in wm8961_hw_params()
530 reg |= wm8961_srate[best].val; in wm8961_hw_params()
533 wm8961_srate[best].rate, fs); in wm8961_hw_params()
Dwm8996.c341 int base, best, best_val, save, i, cfg, iface; in wm8996_set_retune_mobile() local
370 best = 0; in wm8996_set_retune_mobile()
377 best = i; in wm8996_set_retune_mobile()
385 pdata->retune_mobile_cfgs[best].name, in wm8996_set_retune_mobile()
386 pdata->retune_mobile_cfgs[best].rate, in wm8996_set_retune_mobile()
395 for (i = 0; i < ARRAY_SIZE(pdata->retune_mobile_cfgs[best].regs); i++) in wm8996_set_retune_mobile()
397 pdata->retune_mobile_cfgs[best].regs[i]); in wm8996_set_retune_mobile()
1538 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local
1559 best = 0; in wm8996_update_bclk()
1564 best = i; in wm8996_update_bclk()
[all …]
Dwm8995.c1571 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1644 best = 1; in wm8995_hw_params()
1652 best = i; in wm8995_hw_params()
1655 rate_val |= best; in wm8995_hw_params()
1658 dai->id + 1, fs_ratios[best]); in wm8995_hw_params()
1666 best = 0; in wm8995_hw_params()
1672 best = i; in wm8995_hw_params()
1674 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params()
1676 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1678 bclk_divs[best], bclk_rate); in wm8995_hw_params()
Dwm8960.c154 int val, i, best; in wm8960_set_deemph() local
160 best = 1; in wm8960_set_deemph()
163 abs(deemph_settings[best] - wm8960->playback_fs)) in wm8960_set_deemph()
164 best = i; in wm8960_set_deemph()
167 val = best << 1; in wm8960_set_deemph()
Dwm8955.c366 int val, i, best; in wm8955_set_deemph() local
372 best = 1; in wm8955_set_deemph()
375 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
376 best = i; in wm8955_set_deemph()
379 val = best << WM8955_DEEMPH_SHIFT; in wm8955_set_deemph()
Dwm8903.c417 int val, i, best; in wm8903_set_deemph() local
423 best = 1; in wm8903_set_deemph()
426 abs(wm8903_deemph[best] - wm8903->fs)) in wm8903_set_deemph()
427 best = i; in wm8903_set_deemph()
430 val = best << WM8903_DEEMPH_SHIFT; in wm8903_set_deemph()
432 best = 0; in wm8903_set_deemph()
437 best, wm8903_deemph[best]); in wm8903_set_deemph()
Dcs42l52.c966 int best = 0; in cs42l52_beep_work() local
971 abs(cs42l52->beep_rate - beep_rates[best])) in cs42l52_beep_work()
972 best = i; in cs42l52_beep_work()
976 beep_rates[best], cs42l52->beep_rate); in cs42l52_beep_work()
978 val = (best << CS42L52_BEEP_RATE_SHIFT); in cs42l52_beep_work()
Dwm8962.c3113 int best = 0; in wm8962_beep_work() local
3118 abs(wm8962->beep_rate - beep_rates[best])) in wm8962_beep_work()
3119 best = i; in wm8962_beep_work()
3123 beep_rates[best], wm8962->beep_rate); in wm8962_beep_work()
3125 reg = WM8962_BEEP_ENA | (best << WM8962_BEEP_RATE_SHIFT); in wm8962_beep_work()
/sound/drivers/opl3/
Dopl3_midi.c159 struct best { in opl3_get_voice() struct
162 } best[END]; in opl3_get_voice() local
163 struct best *bp; in opl3_get_voice()
166 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in opl3_get_voice()
167 best[i].voice = -1; in opl3_get_voice()
180 bp = best; in opl3_get_voice()
221 if (best[i].voice >= 0) { in opl3_get_voice()
225 best[i].voice); in opl3_get_voice()
227 return best[i].voice; in opl3_get_voice()
/sound/oss/
Dopl3.c1003 int i, p, best, first, avail, best_time = 0x7fffffff; in opl3_alloc_voice() local
1039 best = first; in opl3_alloc_voice()
1050 best = p; in opl3_alloc_voice()
1059 if (best < 0) in opl3_alloc_voice()
1060 best = 0; in opl3_alloc_voice()
1061 if (best > devc->nr_voice) in opl3_alloc_voice()
1062 best -= devc->nr_voice; in opl3_alloc_voice()
1064 return best; /* All devc->voc in use. Select the first one. */ in opl3_alloc_voice()
Dsequencer.c1003 int i, best; in sequencer_open() local
1005 best = -1; in sequencer_open()
1007 if (sound_timer_devs[i] && sound_timer_devs[i]->priority > best) in sequencer_open()
1010 best = sound_timer_devs[i]->priority; in sequencer_open()
/sound/core/oss/
Dpcm_plugin.c324 unsigned int badness, best = -1; in snd_pcm_plug_slave_format() local
338 if (badness < best) { in snd_pcm_plug_slave_format()
340 best = badness; in snd_pcm_plug_slave_format()
Dpcm_oss.c376 int best, int bestdir, in boundary_nearer() argument
381 boundary_sub(best, bestdir, min, mindir, &dmin, &dmindir); in boundary_nearer()
382 boundary_sub(max, maxdir, best, bestdir, &dmax, &dmaxdir); in boundary_nearer()
402 snd_pcm_hw_param_t var, unsigned int best, in snd_pcm_hw_param_near() argument
413 if (best > INT_MAX) in snd_pcm_hw_param_near()
414 best = INT_MAX; in snd_pcm_hw_param_near()
415 min = max = best; in snd_pcm_hw_param_near()
448 if (boundary_nearer(max, maxdir, best, valdir, min, mindir)) { in snd_pcm_hw_param_near()