• Home
  • Raw
  • Download

Lines Matching refs:i

276 	int i;  in snd_opl4_synth_reset()  local
279 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_reset()
280 snd_opl4_write(opl4, OPL4_REG_MISC + i, OPL4_DAMP_BIT); in snd_opl4_synth_reset()
286 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_synth_reset()
287 opl4->voices[i].number = i; in snd_opl4_synth_reset()
288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset()
300 int i; in snd_opl4_synth_shutdown() local
303 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_shutdown()
304 snd_opl4_write(opl4, OPL4_REG_MISC + i, in snd_opl4_synth_shutdown()
305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); in snd_opl4_synth_shutdown()
315 int i; in snd_opl4_do_for_note() local
320 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_do_for_note()
321 voice = &opl4->voices[i]; in snd_opl4_do_for_note()
336 int i; in snd_opl4_do_for_channel() local
341 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_do_for_channel()
342 voice = &opl4->voices[i]; in snd_opl4_do_for_channel()
356 int i; in snd_opl4_do_for_all() local
361 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_do_for_all()
362 voice = &opl4->voices[i]; in snd_opl4_do_for_all()
488 int voices = 0, i; in snd_opl4_note_on() local
492 i = chan->drum_channel ? 0x80 : (chan->midi_program & 0x7f); in snd_opl4_note_on()
493 regions = &snd_yrw801_regions[i]; in snd_opl4_note_on()
494 for (i = 0; i < regions->count; i++) { in snd_opl4_note_on()
495 if (note >= regions->regions[i].key_min && in snd_opl4_note_on()
496 note <= regions->regions[i].key_max) { in snd_opl4_note_on()
497 sound[voices] = &regions->regions[i].sound; in snd_opl4_note_on()
505 for (i = 0; i < voices; i++) { in snd_opl4_note_on()
506 voice[i] = snd_opl4_get_voice(opl4); in snd_opl4_note_on()
507 list_move_tail(&voice[i]->list, &opl4->on_voices); in snd_opl4_note_on()
508 voice[i]->chan = chan; in snd_opl4_note_on()
509 voice[i]->note = note; in snd_opl4_note_on()
510 voice[i]->velocity = vel & 0x7f; in snd_opl4_note_on()
511 voice[i]->sound = sound[i]; in snd_opl4_note_on()
515 for (i = 0; i < voices; i++) { in snd_opl4_note_on()
516 voice[i]->reg_f_number = in snd_opl4_note_on()
517 (sound[i]->tone >> 8) & OPL4_TONE_NUMBER_BIT8; in snd_opl4_note_on()
518 snd_opl4_write(opl4, OPL4_REG_F_NUMBER + voice[i]->number, in snd_opl4_note_on()
519 voice[i]->reg_f_number); in snd_opl4_note_on()
520 snd_opl4_write(opl4, OPL4_REG_TONE_NUMBER + voice[i]->number, in snd_opl4_note_on()
521 sound[i]->tone & 0xff); in snd_opl4_note_on()
525 for (i = 0; i < voices; i++) { in snd_opl4_note_on()
526 voice[i]->reg_misc = OPL4_LFO_RESET_BIT; in snd_opl4_note_on()
527 snd_opl4_update_pan(opl4, voice[i]); in snd_opl4_note_on()
528 snd_opl4_update_pitch(opl4, voice[i]); in snd_opl4_note_on()
529 voice[i]->level_direct = OPL4_LEVEL_DIRECT_BIT; in snd_opl4_note_on()
530 snd_opl4_update_volume(opl4, voice[i]); in snd_opl4_note_on()
539 for (i = 0; i < voices; i++) { in snd_opl4_note_on()
540 snd_opl4_update_tone_parameters(opl4, voice[i]); in snd_opl4_note_on()
541 voice[i]->reg_lfo_vibrato = voice[i]->sound->reg_lfo_vibrato; in snd_opl4_note_on()
542 snd_opl4_update_vibrato_depth(opl4, voice[i]); in snd_opl4_note_on()
546 for (i = 0; i < voices; i++) { in snd_opl4_note_on()
547 voice[i]->reg_misc = in snd_opl4_note_on()
548 (voice[i]->reg_misc & 0x1f) | OPL4_KEY_ON_BIT; in snd_opl4_note_on()
549 snd_opl4_write(opl4, OPL4_REG_MISC + voice[i]->number, in snd_opl4_note_on()
550 voice[i]->reg_misc); in snd_opl4_note_on()