Home
last modified time | relevance | path

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

12

/sound/pci/emu10k1/
Demu10k1_callback.c27 struct best_voice *best, int active_only);
83 struct best_voice best[V_END]; in snd_emu10k1_synth_get_voice() local
88 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice()
90 if (best[i].voice >= 0) { in snd_emu10k1_synth_get_voice()
92 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
210 struct best_voice *best, int active_only) in lookup_voices() argument
217 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
218 best[i].voice = -1; in lookup_voices()
234 bp = best + V_FREE; in lookup_voices()
236 bp = best + V_OFF; in lookup_voices()
[all …]
/sound/isa/sb/
Demu8000_callback.c156 struct best { in get_voice() struct
159 } best[END]; in get_voice() local
160 struct best *bp; in get_voice()
165 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in get_voice()
166 best[i].voice = -1; in get_voice()
179 bp = best + OFF; in get_voice()
182 bp = best + RELEASED; in get_voice()
185 bp = best + OFF; in get_voice()
188 bp = best + PLAYING; in get_voice()
197 bp = best + OFF; in get_voice()
[all …]
/sound/soc/codecs/
Dwm9081.c997 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1054 best = 0; in wm9081_hw_params()
1061 best = i; in wm9081_hw_params()
1066 clk_sys_rates[best].ratio); in wm9081_hw_params()
1067 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params()
1071 best = 0; in wm9081_hw_params()
1077 best = i; in wm9081_hw_params()
1082 sample_rates[best].rate); in wm9081_hw_params()
1083 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params()
1087 best = 0; in wm9081_hw_params()
[all …]
Dwm8731.c71 int val, i, best; in wm8731_set_deemph() local
77 best = 1; in wm8731_set_deemph()
80 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
81 best = i; in wm8731_set_deemph()
84 val = best << 1; in wm8731_set_deemph()
86 best = 0; in wm8731_set_deemph()
91 best, wm8731_deemph[best]); in wm8731_set_deemph()
Dwm8904.c421 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()
[all …]
Dwm8993.c1190 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1241 best = 0; in wm8993_hw_params()
1248 best = i; in wm8993_hw_params()
1253 clk_sys_rates[best].ratio); in wm8993_hw_params()
1254 clocking3 |= (clk_sys_rates[best].clk_sys_rate in wm8993_hw_params()
1258 best = 0; in wm8993_hw_params()
1264 best = i; in wm8993_hw_params()
1269 sample_rates[best].rate); in wm8993_hw_params()
1270 clocking3 |= (sample_rates[best].sample_rate in wm8993_hw_params()
1274 best = 0; in wm8993_hw_params()
[all …]
Dak4641.c73 int i, best = 0; in ak4641_set_deemph() local
79 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph()
80 best = i; in ak4641_set_deemph()
83 best = i; in ak4641_set_deemph()
86 dev_dbg(component->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph()
88 return snd_soc_component_update_bits(component, AK4641_DAC, 0x3, best); in ak4641_set_deemph()
Dwm8978.c730 int i, best = 0; in wm8978_hw_params() local
799 best = i; in wm8978_hw_params()
807 best = wm8978->mclk_idx; in wm8978_hw_params()
813 f_sel * mclk_denominator[best] / mclk_numerator[best] / 256, in wm8978_hw_params()
818 params_width(params), params_rate(params), best); in wm8978_hw_params()
821 snd_soc_component_update_bits(component, WM8978_CLOCKING, 0xe0, best << 5); in wm8978_hw_params()
Dmax98088.c1428 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1440 best = 0; in max98088_setup_eq1()
1445 best = i; in max98088_setup_eq1()
1451 pdata->eq_cfg[best].name, in max98088_setup_eq1()
1452 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1475 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1487 best = 0; in max98088_setup_eq2()
1492 best = i; in max98088_setup_eq2()
1498 pdata->eq_cfg[best].name, in max98088_setup_eq2()
1499 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
Dmax98095.c1495 int fs, best, best_val, i; in max98095_put_eq_enum() local
1512 best = 0; in max98095_put_eq_enum()
1517 best = i; in max98095_put_eq_enum()
1523 pdata->eq_cfg[best].name, in max98095_put_eq_enum()
1524 pdata->eq_cfg[best].rate, fs); in max98095_put_eq_enum()
1526 coef_set = &pdata->eq_cfg[best]; in max98095_put_eq_enum()
1646 int fs, best, best_val, i; in max98095_put_bq_enum() local
1663 best = 0; in max98095_put_bq_enum()
1668 best = i; in max98095_put_bq_enum()
1674 pdata->bq_cfg[best].name, in max98095_put_bq_enum()
[all …]
Dwm8961.c507 int i, best, target, fs; in wm8961_hw_params() local
518 best = 0; in wm8961_hw_params()
521 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
522 best = i; in wm8961_hw_params()
526 reg |= wm8961_srate[best].val; in wm8961_hw_params()
529 wm8961_srate[best].rate, fs); in wm8961_hw_params()
Dwm8996.c338 int base, best, best_val, save, i, cfg, iface; in wm8996_set_retune_mobile() local
367 best = 0; in wm8996_set_retune_mobile()
374 best = i; in wm8996_set_retune_mobile()
382 pdata->retune_mobile_cfgs[best].name, in wm8996_set_retune_mobile()
383 pdata->retune_mobile_cfgs[best].rate, in wm8996_set_retune_mobile()
392 for (i = 0; i < ARRAY_SIZE(pdata->retune_mobile_cfgs[best].regs); i++) in wm8996_set_retune_mobile()
394 pdata->retune_mobile_cfgs[best].regs[i]); in wm8996_set_retune_mobile()
1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local
1555 best = 0; in wm8996_update_bclk()
1560 best = i; in wm8996_update_bclk()
[all …]
Des8328.c118 int val, i, best; in es8328_set_deemph() local
125 best = 0; in es8328_set_deemph()
128 abs(deemph_settings[best].rate - es8328->playback_fs)) in es8328_set_deemph()
129 best = i; in es8328_set_deemph()
132 val = deemph_settings[best].val; in es8328_set_deemph()
Dwm8994.c115 int best, i, sysclk, val; in wm8958_micd_set_rate() local
139 best = 0; in wm8958_micd_set_rate()
144 abs(rates[best].sysclk - sysclk)) in wm8958_micd_set_rate()
145 best = i; in wm8958_micd_set_rate()
146 else if (rates[best].idle != idle) in wm8958_micd_set_rate()
147 best = i; in wm8958_micd_set_rate()
150 val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT in wm8958_micd_set_rate()
151 | rates[best].rate << WM8958_MICD_RATE_SHIFT; in wm8958_micd_set_rate()
154 rates[best].start, rates[best].rate, sysclk, in wm8958_micd_set_rate()
401 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local
[all …]
Dwm8995.c1556 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1629 best = 1; in wm8995_hw_params()
1637 best = i; in wm8995_hw_params()
1640 rate_val |= best; in wm8995_hw_params()
1643 dai->id + 1, fs_ratios[best]); in wm8995_hw_params()
1651 best = 0; in wm8995_hw_params()
1657 best = i; in wm8995_hw_params()
1659 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params()
1661 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1663 bclk_divs[best], bclk_rate); in wm8995_hw_params()
Dwm8955.c363 int val, i, best; in wm8955_set_deemph() local
369 best = 1; in wm8955_set_deemph()
372 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
373 best = i; in wm8955_set_deemph()
376 val = best << WM8955_DEEMPH_SHIFT; in wm8955_set_deemph()
Dwm8903.c419 int val, i, best; in wm8903_set_deemph() local
425 best = 1; in wm8903_set_deemph()
428 abs(wm8903_deemph[best] - wm8903->fs)) in wm8903_set_deemph()
429 best = i; in wm8903_set_deemph()
432 val = best << WM8903_DEEMPH_SHIFT; in wm8903_set_deemph()
434 best = 0; in wm8903_set_deemph()
439 best, wm8903_deemph[best]); in wm8903_set_deemph()
Dcs42l52.c908 int best = 0; in cs42l52_beep_work() local
913 abs(cs42l52->beep_rate - beep_rates[best])) in cs42l52_beep_work()
914 best = i; in cs42l52_beep_work()
918 beep_rates[best], cs42l52->beep_rate); in cs42l52_beep_work()
920 val = (best << CS42L52_BEEP_RATE_SHIFT); in cs42l52_beep_work()
Dcs42l56.c970 int best = 0; in cs42l56_beep_work() local
975 abs(cs42l56->beep_rate - beep_freq[best])) in cs42l56_beep_work()
976 best = i; in cs42l56_beep_work()
980 beep_freq[best], cs42l56->beep_rate); in cs42l56_beep_work()
982 val = (best << CS42L56_BEEP_RATE_SHIFT); in cs42l56_beep_work()
Dwm8962.c2464 int best, min_diff, diff; in wm8962_configure_bclk() local
2544 best = 0; in wm8962_configure_bclk()
2554 best = i; in wm8962_configure_bclk()
2558 wm8962->bclk = dspclk / bclk_divs[best]; in wm8962_configure_bclk()
2559 clocking2 |= best; in wm8962_configure_bclk()
2561 bclk_divs[best], wm8962->bclk); in wm8962_configure_bclk()
3232 int best = 0; in wm8962_beep_work() local
3237 abs(wm8962->beep_rate - beep_rates[best])) in wm8962_beep_work()
3238 best = i; in wm8962_beep_work()
3242 beep_rates[best], wm8962->beep_rate); in wm8962_beep_work()
[all …]
Dwm8960.c175 int val, i, best; in wm8960_set_deemph() local
181 best = 1; in wm8960_set_deemph()
184 abs(deemph_settings[best] - wm8960->lrclk)) in wm8960_set_deemph()
185 best = i; in wm8960_set_deemph()
188 val = best << 1; in wm8960_set_deemph()
/sound/soc/atmel/
Datmel-classd.c345 int i, best, best_val, cur_val, ret; in atmel_classd_cpu_dai_hw_params() local
350 best = 0; in atmel_classd_cpu_dai_hw_params()
356 best = i; in atmel_classd_cpu_dai_hw_params()
363 sample_rates[best].rate, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params()
367 ret = clk_set_rate(dd->gclk, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params()
372 val = (sample_rates[best].dsp_clk << CLASSD_INTPMR_DSP_CLK_FREQ_SHIFT) in atmel_classd_cpu_dai_hw_params()
373 | (sample_rates[best].sample_rate << CLASSD_INTPMR_FRAME_SHIFT); in atmel_classd_cpu_dai_hw_params()
Datmel-i2s.c296 int i, best; in atmel_i2s_get_gck_param() local
308 best = INT_MAX; in atmel_i2s_get_gck_param()
313 if (val < best) { in atmel_i2s_get_gck_param()
314 best = val; in atmel_i2s_get_gck_param()
/sound/drivers/opl3/
Dopl3_midi.c143 struct best { in opl3_get_voice() struct
146 } best[END]; in opl3_get_voice() local
147 struct best *bp; in opl3_get_voice()
150 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in opl3_get_voice()
151 best[i].voice = -1; in opl3_get_voice()
164 bp = best; in opl3_get_voice()
204 if (best[i].voice >= 0) { in opl3_get_voice()
208 best[i].voice); in opl3_get_voice()
210 return best[i].voice; in opl3_get_voice()
/sound/core/oss/
Dpcm_plugin.c333 unsigned int badness, best = -1; in snd_pcm_plug_slave_format() local
347 if (badness < best) { in snd_pcm_plug_slave_format()
349 best = badness; in snd_pcm_plug_slave_format()

12