Lines Matching full:best
27 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()
204 * look up voice table - get the best voice in order of preference
209 struct best_voice *best, int active_only) in lookup_voices() argument
216 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices()
217 best[i].voice = -1; in lookup_voices()
221 * Go through them all and get a best one to use. in lookup_voices()
233 bp = best + V_FREE; in lookup_voices()
235 bp = best + V_OFF; in lookup_voices()
239 bp = best + V_RELEASED; in lookup_voices()
243 bp = best + V_OFF; in lookup_voices()
249 bp = best + V_PLAYING; in lookup_voices()
254 if (bp != best + V_OFF && bp != best + V_FREE && in lookup_voices()
258 bp = best + V_OFF; in lookup_voices()
278 struct best_voice best[V_END]; in get_voice() local
283 lookup_voices(emu, hw, best, 0); in get_voice()
285 if (best[i].voice >= 0) { in get_voice()
286 vp = &emu->voices[best[i].voice]; in get_voice()