• Home
  • Raw
  • Download

Lines Matching refs:chan

312 static void snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan,  in snd_opl4_do_for_note()  argument
322 if (voice->chan == chan && voice->note == note) { in snd_opl4_do_for_note()
333 struct snd_midi_channel *chan, in snd_opl4_do_for_channel() argument
343 if (voice->chan == chan) { in snd_opl4_do_for_channel()
363 if (voice->chan) in snd_opl4_do_for_all()
375 att += snd_opl4_volume_table[voice->chan->gm_volume & 0x7f]; in snd_opl4_update_volume()
376 att += snd_opl4_volume_table[voice->chan->gm_expression & 0x7f]; in snd_opl4_update_volume()
392 if (!voice->chan->drum_channel) in snd_opl4_update_pan()
393 pan += (voice->chan->control[MIDI_CTL_MSB_PAN] - 0x40) >> 3; in snd_opl4_update_pan()
408 if (voice->chan->drum_channel) in snd_opl4_update_vibrato_depth()
411 * (voice->chan->control[MIDI_CTL_VIBRATO_DEPTH] & 0x7f); in snd_opl4_update_vibrato_depth()
422 struct snd_midi_channel *chan = voice->chan; in snd_opl4_update_pitch() local
425 note = chan->drum_channel ? 60 : voice->note; in snd_opl4_update_pitch()
432 if (!chan->drum_channel) in snd_opl4_update_pitch()
433 pitch += chan->gm_rpn_coarse_tuning; in snd_opl4_update_pitch()
434 pitch += chan->gm_rpn_fine_tuning >> 7; in snd_opl4_update_pitch()
435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; in snd_opl4_update_pitch()
482 void snd_opl4_note_on(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_on() argument
492 i = chan->drum_channel ? 0x80 : (chan->midi_program & 0x7f); in snd_opl4_note_on()
508 voice[i]->chan = chan; in snd_opl4_note_on()
563 void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_off() argument
567 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_voice_off); in snd_opl4_note_off()
578 void snd_opl4_terminate_note(void *private_data, int note, struct snd_midi_channel *chan) in snd_opl4_terminate_note() argument
582 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_terminate_voice); in snd_opl4_terminate_note()
585 void snd_opl4_control(void *private_data, int type, struct snd_midi_channel *chan) in snd_opl4_control() argument
591 chan->control[MIDI_CTL_VIBRATO_DEPTH] = chan->control[MIDI_CTL_MSB_MODWHEEL]; in snd_opl4_control()
592 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_vibrato_depth); in snd_opl4_control()
595 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_volume); in snd_opl4_control()
598 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_pan); in snd_opl4_control()
601 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_volume); in snd_opl4_control()
607 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_vibrato_depth); in snd_opl4_control()
619 snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_pitch); in snd_opl4_control()