Lines Matching defs:note
60 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
115 struct snd_dm_fm_note note;
116 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note)))
118 return snd_opl3_play_note(opl3, ¬e);
390 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note)
400 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
405 if (note->voice < MAX_OPL2_VOICES) {
408 voice_offset = note->voice;
412 voice_offset = note->voice - MAX_OPL2_VOICES;
415 /* Set lower 8 bits of note frequency */
416 reg_val = (unsigned char) note->fnum;
422 if (note->key_on)
425 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK;
426 /* Set higher 2 bits of note frequency */
427 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK;