• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/drivers/opl3/

Lines Matching refs:note

32 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
88 * Converts the note frequency to block and fnum values for the FM chip
98 int note, struct snd_midi_channel *chan)
100 int block = ((note / 12) & 0x07) - 1;
101 int idx = (note % 12) + 2;
138 * Get a FM voice (channel) to play a note on.
252 snd_opl3_note_off_unsafe(opl3, vp->note, 0,
293 * Start a note.
295 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
315 int key = note;
326 snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n",
327 chan->number, chan->midi_program, note, vel);
336 prg = note;
354 snd_opl3_drum_switch(opl3, note, vel, 1, chan);
536 note = fm->fix_key;
541 note += (fm->trnsps - 64);
543 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan);
561 /* kill note after fixed duration (in centiseconds) */
575 vp->note = key;
583 vp2->note = key;
597 debug_alloc(opl3, "note on ", voice);
659 debug_alloc(opl3, "note off", voice);
665 * Release a note in response to a midi note off.
667 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
678 snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n",
679 chan->number, chan->midi_program, note);
684 snd_opl3_drum_switch(opl3, note, vel, 0, chan);
688 they are grouped by the same channel and note values */
691 if (vp->state > 0 && vp->chan == chan && vp->note == note) {
704 void snd_opl3_note_off(void *p, int note, int vel,
711 snd_opl3_note_off_unsafe(p, note, vel, chan);
718 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
730 * terminate note
732 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan)
738 snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n",
770 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);