Home
last modified time | relevance | path

Searched refs:fnum (Results 1 – 4 of 4) sorted by relevance

/sound/oss/
Dopl3.c83 static void freq_to_fnum(int freq, int *block, int *fnum);
460 int block, fnum, freq, voice_mode, pan; in opl3_start_note() local
657 freq_to_fnum(freq, &block, &fnum); in opl3_start_note()
663 data = fnum & 0xff; /* in opl3_start_note()
668 data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); in opl3_start_note()
677 static void freq_to_fnum (int freq, int *block, int *fnum) in freq_to_fnum() argument
714 *fnum = freq * (1 << (20 - octave)) / 49716; in freq_to_fnum()
934 int block, fnum, freq; in bend_pitch() local
953 freq_to_fnum(freq, &block, &fnum); in bend_pitch()
955 data = fnum & 0xff; /* in bend_pitch()
[all …]
/sound/drivers/opl3/
Dopl3_midi.c97 static void snd_opl3_calc_pitch(unsigned char *fnum, unsigned char *blocknum, in snd_opl3_calc_pitch() argument
121 *fnum = (unsigned char) freq; in snd_opl3_calc_pitch()
315 unsigned char fnum, blocknum; in snd_opl3_note_on() local
547 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan); in snd_opl3_note_on()
551 opl3->command(opl3, opl3_reg, fnum); in snd_opl3_note_on()
753 unsigned char fnum, blocknum; in snd_opl3_update_pitch() local
774 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()
778 opl3->command(opl3, opl3_reg, fnum); in snd_opl3_update_pitch()
Dopl3_drums.c61 unsigned char fnum; member
126 opl3->command(opl3, opl3_reg, data->fnum); in snd_opl3_drum_note_set()
Dopl3_synth.c427 reg_val = (unsigned char) note->fnum; in snd_opl3_play_note()
438 reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK; in snd_opl3_play_note()