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