Lines Matching defs:note
66 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
128 struct snd_dm_fm_note note;
129 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note)))
131 return snd_opl3_play_note(opl3, ¬e);
235 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note)
245 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
250 if (note->voice < MAX_OPL2_VOICES) {
253 voice_offset = note->voice;
257 voice_offset = note->voice - MAX_OPL2_VOICES;
260 /* Set lower 8 bits of note frequency */
261 reg_val = (unsigned char) note->fnum;
267 if (note->key_on)
270 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK;
271 /* Set higher 2 bits of note frequency */
272 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK;