Lines Matching refs:note
72 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
125 struct snd_dm_fm_note note; in snd_opl3_ioctl() local
126 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) in snd_opl3_ioctl()
128 return snd_opl3_play_note(opl3, ¬e); in snd_opl3_ioctl()
400 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note) in snd_opl3_play_note() argument
410 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_play_note()
415 if (note->voice < MAX_OPL2_VOICES) { in snd_opl3_play_note()
418 voice_offset = note->voice; in snd_opl3_play_note()
422 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note()
426 reg_val = (unsigned char) note->fnum; in snd_opl3_play_note()
432 if (note->key_on) in snd_opl3_play_note()
435 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note()
437 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK; in snd_opl3_play_note()