Home
last modified time | relevance | path

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

12

/sound/pci/emu10k1/
Demu10k1_callback.c40 struct best_voice *best, int active_only);
96 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()
222 struct best_voice *best, int active_only) in lookup_voices() argument
229 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
230 best[i].voice = -1; in lookup_voices()
246 bp = best + V_FREE; in lookup_voices()
248 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.c1000 int ret, i, best, best_val, cur_val; in wm9081_hw_params() local
1057 best = 0; in wm9081_hw_params()
1064 best = i; in wm9081_hw_params()
1069 clk_sys_rates[best].ratio); in wm9081_hw_params()
1070 clk_ctrl2 |= (clk_sys_rates[best].clk_sys_rate in wm9081_hw_params()
1074 best = 0; in wm9081_hw_params()
1080 best = i; in wm9081_hw_params()
1085 sample_rates[best].rate); in wm9081_hw_params()
1086 clk_ctrl2 |= (sample_rates[best].sample_rate in wm9081_hw_params()
1090 best = 0; in wm9081_hw_params()
[all …]
Dwm8904.c426 int best, best_val, save, i, cfg; in wm8904_set_retune_mobile() local
434 best = 0; in wm8904_set_retune_mobile()
441 best = i; in wm8904_set_retune_mobile()
448 pdata->retune_mobile_cfgs[best].name, in wm8904_set_retune_mobile()
449 pdata->retune_mobile_cfgs[best].rate, in wm8904_set_retune_mobile()
459 pdata->retune_mobile_cfgs[best].regs[i]); in wm8904_set_retune_mobile()
498 int val, i, best; in wm8904_set_deemph() local
504 best = 1; in wm8904_set_deemph()
507 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph()
508 best = i; in wm8904_set_deemph()
[all …]
Dwm8993.c1191 int ret, i, best, best_val, cur_val; in wm8993_hw_params() local
1242 best = 0; in wm8993_hw_params()
1249 best = i; in wm8993_hw_params()
1254 clk_sys_rates[best].ratio); in wm8993_hw_params()
1255 clocking3 |= (clk_sys_rates[best].clk_sys_rate in wm8993_hw_params()
1259 best = 0; in wm8993_hw_params()
1265 best = i; in wm8993_hw_params()
1270 sample_rates[best].rate); in wm8993_hw_params()
1271 clocking3 |= (sample_rates[best].sample_rate in wm8993_hw_params()
1275 best = 0; in wm8993_hw_params()
[all …]
Dwm8731.c94 int val, i, best; in wm8731_set_deemph() local
100 best = 1; in wm8731_set_deemph()
103 abs(wm8731_deemph[best] - wm8731->playback_fs)) in wm8731_set_deemph()
104 best = i; in wm8731_set_deemph()
107 val = best << 1; in wm8731_set_deemph()
109 best = 0; in wm8731_set_deemph()
114 best, wm8731_deemph[best]); in wm8731_set_deemph()
Dak4641.c56 int i, best = 0; in ak4641_set_deemph() local
62 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph()
63 best = i; in ak4641_set_deemph()
66 best = i; in ak4641_set_deemph()
69 dev_dbg(codec->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph()
71 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_width(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.c1401 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1413 best = 0; in max98088_setup_eq1()
1418 best = i; in max98088_setup_eq1()
1424 pdata->eq_cfg[best].name, in max98088_setup_eq1()
1425 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1448 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1460 best = 0; in max98088_setup_eq2()
1465 best = i; in max98088_setup_eq2()
1471 pdata->eq_cfg[best].name, in max98088_setup_eq2()
1472 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
Des8328.c101 int val, i, best; in es8328_set_deemph() local
108 best = 0; in es8328_set_deemph()
111 abs(deemph_settings[best].rate - es8328->playback_fs)) in es8328_set_deemph()
112 best = i; in es8328_set_deemph()
115 val = deemph_settings[best].val; in es8328_set_deemph()
Dmax98095.c1504 int fs, best, best_val, i; in max98095_put_eq_enum() local
1521 best = 0; in max98095_put_eq_enum()
1526 best = i; in max98095_put_eq_enum()
1532 pdata->eq_cfg[best].name, in max98095_put_eq_enum()
1533 pdata->eq_cfg[best].rate, fs); in max98095_put_eq_enum()
1535 coef_set = &pdata->eq_cfg[best]; in max98095_put_eq_enum()
1658 int fs, best, best_val, i; in max98095_put_bq_enum() local
1675 best = 0; in max98095_put_bq_enum()
1680 best = i; in max98095_put_bq_enum()
1686 pdata->bq_cfg[best].name, in max98095_put_bq_enum()
[all …]
Dwm8961.c510 int i, best, target, fs; in wm8961_hw_params() local
521 best = 0; in wm8961_hw_params()
524 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
525 best = i; in wm8961_hw_params()
529 reg |= wm8961_srate[best].val; in wm8961_hw_params()
532 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 …]
Dwm8994.c113 int best, i, sysclk, val; in wm8958_micd_set_rate() local
137 best = 0; in wm8958_micd_set_rate()
142 abs(rates[best].sysclk - sysclk)) in wm8958_micd_set_rate()
143 best = i; in wm8958_micd_set_rate()
144 else if (rates[best].idle != idle) in wm8958_micd_set_rate()
145 best = i; in wm8958_micd_set_rate()
148 val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT in wm8958_micd_set_rate()
149 | rates[best].rate << WM8958_MICD_RATE_SHIFT; in wm8958_micd_set_rate()
152 rates[best].start, rates[best].rate, sysclk, in wm8958_micd_set_rate()
400 int iface, best, best_val, save, i, cfg; in wm8994_set_retune_mobile() local
[all …]
Dwm8995.c1558 int i, rate_val, best, best_val, cur_val; in wm8995_hw_params() local
1631 best = 1; in wm8995_hw_params()
1639 best = i; in wm8995_hw_params()
1642 rate_val |= best; in wm8995_hw_params()
1645 dai->id + 1, fs_ratios[best]); in wm8995_hw_params()
1653 best = 0; in wm8995_hw_params()
1659 best = i; in wm8995_hw_params()
1661 bclk |= best << WM8995_AIF1_BCLK_DIV_SHIFT; in wm8995_hw_params()
1663 bclk_rate = wm8995->aifclk[dai->id] * 10 / bclk_divs[best]; in wm8995_hw_params()
1665 bclk_divs[best], bclk_rate); in wm8995_hw_params()
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.c413 int val, i, best; in wm8903_set_deemph() local
419 best = 1; in wm8903_set_deemph()
422 abs(wm8903_deemph[best] - wm8903->fs)) in wm8903_set_deemph()
423 best = i; in wm8903_set_deemph()
426 val = best << WM8903_DEEMPH_SHIFT; in wm8903_set_deemph()
428 best = 0; in wm8903_set_deemph()
433 best, wm8903_deemph[best]); in wm8903_set_deemph()
Dwm8960.c165 int val, i, best; in wm8960_set_deemph() local
171 best = 1; in wm8960_set_deemph()
174 abs(deemph_settings[best] - wm8960->lrclk)) in wm8960_set_deemph()
175 best = i; in wm8960_set_deemph()
178 val = best << 1; in wm8960_set_deemph()
Dcs42l52.c909 int best = 0; in cs42l52_beep_work() local
914 abs(cs42l52->beep_rate - beep_rates[best])) in cs42l52_beep_work()
915 best = i; in cs42l52_beep_work()
919 beep_rates[best], cs42l52->beep_rate); in cs42l52_beep_work()
921 val = (best << CS42L52_BEEP_RATE_SHIFT); in cs42l52_beep_work()
Dcs42l56.c983 int best = 0; in cs42l56_beep_work() local
988 abs(cs42l56->beep_rate - beep_freq[best])) in cs42l56_beep_work()
989 best = i; in cs42l56_beep_work()
993 beep_freq[best], cs42l56->beep_rate); in cs42l56_beep_work()
995 val = (best << CS42L56_BEEP_RATE_SHIFT); in cs42l56_beep_work()
/sound/soc/atmel/
Datmel-classd.c381 int i, best, best_val, cur_val, ret; in atmel_classd_codec_dai_hw_params() local
386 best = 0; in atmel_classd_codec_dai_hw_params()
392 best = i; in atmel_classd_codec_dai_hw_params()
399 sample_rates[best].rate, sample_rates[best].aclk_rate); in atmel_classd_codec_dai_hw_params()
404 ret = clk_set_rate(dd->aclk, sample_rates[best].aclk_rate); in atmel_classd_codec_dai_hw_params()
409 val = (sample_rates[best].dsp_clk << CLASSD_INTPMR_DSP_CLK_FREQ_SHIFT) in atmel_classd_codec_dai_hw_params()
410 | (sample_rates[best].sample_rate << CLASSD_INTPMR_FRAME_SHIFT); in atmel_classd_codec_dai_hw_params()
/sound/drivers/opl3/
Dopl3_midi.c161 struct best { in opl3_get_voice() struct
164 } best[END]; in opl3_get_voice() local
165 struct best *bp; in opl3_get_voice()
168 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in opl3_get_voice()
169 best[i].voice = -1; in opl3_get_voice()
182 bp = best; in opl3_get_voice()
223 if (best[i].voice >= 0) { in opl3_get_voice()
227 best[i].voice); in opl3_get_voice()
229 return best[i].voice; in opl3_get_voice()
/sound/oss/
Dopl3.c1000 int i, p, best, first, avail, best_time = 0x7fffffff; in opl3_alloc_voice() local
1036 best = first; in opl3_alloc_voice()
1047 best = p; in opl3_alloc_voice()
1056 if (best < 0) in opl3_alloc_voice()
1057 best = 0; in opl3_alloc_voice()
1058 if (best > devc->nr_voice) in opl3_alloc_voice()
1059 best -= devc->nr_voice; in opl3_alloc_voice()
1061 return best; /* All devc->voc in use. Select the first one. */ in opl3_alloc_voice()
Dsequencer.c994 int i, best; in sequencer_open() local
996 best = -1; in sequencer_open()
998 if (sound_timer_devs[i] && sound_timer_devs[i]->priority > best) in sequencer_open()
1001 best = sound_timer_devs[i]->priority; in sequencer_open()
/sound/core/oss/
Dpcm_plugin.c352 unsigned int badness, best = -1; in snd_pcm_plug_slave_format() local
366 if (badness < best) { in snd_pcm_plug_slave_format()
368 best = badness; in snd_pcm_plug_slave_format()

12