Lines Matching refs:opl3
67 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3, in snd_opl3_drum_voice_set() argument
76 opl3->command(opl3, opl3_reg, data->am_vib); in snd_opl3_drum_voice_set()
80 opl3->command(opl3, opl3_reg, data->ksl_level); in snd_opl3_drum_voice_set()
84 opl3->command(opl3, opl3_reg, data->attack_decay); in snd_opl3_drum_voice_set()
88 opl3->command(opl3, opl3_reg, data->sustain_release); in snd_opl3_drum_voice_set()
92 opl3->command(opl3, opl3_reg, data->feedback_connection); in snd_opl3_drum_voice_set()
96 opl3->command(opl3, opl3_reg, data->wave_select); in snd_opl3_drum_voice_set()
102 static void snd_opl3_drum_note_set(struct snd_opl3 *opl3, in snd_opl3_drum_note_set() argument
110 opl3->command(opl3, opl3_reg, data->fnum); in snd_opl3_drum_note_set()
114 opl3->command(opl3, opl3_reg, data->octave_f); in snd_opl3_drum_note_set()
120 static void snd_opl3_drum_vol_set(struct snd_opl3 *opl3, in snd_opl3_drum_vol_set() argument
133 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_drum_vol_set()
143 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_drum_vol_set()
149 void snd_opl3_load_drums(struct snd_opl3 *opl3) in snd_opl3_load_drums() argument
151 snd_opl3_drum_voice_set(opl3, &bass_op0); in snd_opl3_load_drums()
152 snd_opl3_drum_voice_set(opl3, &bass_op1); in snd_opl3_load_drums()
153 snd_opl3_drum_note_set(opl3, &bass_note); in snd_opl3_load_drums()
155 snd_opl3_drum_voice_set(opl3, &hihat); in snd_opl3_load_drums()
157 snd_opl3_drum_voice_set(opl3, &snare); in snd_opl3_load_drums()
158 snd_opl3_drum_note_set(opl3, &snare_note); in snd_opl3_load_drums()
160 snd_opl3_drum_voice_set(opl3, &tomtom); in snd_opl3_load_drums()
161 snd_opl3_drum_note_set(opl3, &tomtom_note); in snd_opl3_load_drums()
163 snd_opl3_drum_voice_set(opl3, &cymbal); in snd_opl3_load_drums()
169 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, in snd_opl3_drum_switch() argument
175 if (!(opl3->drum_reg & OPL3_PERCUSSION_ENABLE)) in snd_opl3_drum_switch()
203 snd_opl3_drum_vol_set(opl3, drum_voice, vel, chan); in snd_opl3_drum_switch()
204 opl3->drum_reg |= drum_mask; in snd_opl3_drum_switch()
206 opl3->drum_reg &= ~drum_mask; in snd_opl3_drum_switch()
208 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, in snd_opl3_drum_switch()
209 opl3->drum_reg); in snd_opl3_drum_switch()