Lines Matching refs: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; in snd_opl3_ioctl() local
116 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) in snd_opl3_ioctl()
118 return snd_opl3_play_note(opl3, ¬e); in snd_opl3_ioctl()
388 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note) in snd_opl3_play_note() argument
398 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_play_note()
403 if (note->voice < MAX_OPL2_VOICES) { in snd_opl3_play_note()
406 voice_offset = note->voice; in snd_opl3_play_note()
410 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note()
414 reg_val = (unsigned char) note->fnum; in snd_opl3_play_note()
420 if (note->key_on) in snd_opl3_play_note()
423 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note()
425 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK; in snd_opl3_play_note()