Lines Matching refs:note
71 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
124 struct snd_dm_fm_note note;
125 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note)))
127 return snd_opl3_play_note(opl3, ¬e);
399 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note)
409 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
414 if (note->voice < MAX_OPL2_VOICES) {
417 voice_offset = note->voice;
421 voice_offset = note->voice - MAX_OPL2_VOICES;
424 /* Set lower 8 bits of note frequency */
425 reg_val = (unsigned char) note->fnum;
431 if (note->key_on)
434 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK;
435 /* Set higher 2 bits of note frequency */
436 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK;