Lines Matching refs:opl3
83 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3,
92 opl3->command(opl3, opl3_reg, data->am_vib);
96 opl3->command(opl3, opl3_reg, data->ksl_level);
100 opl3->command(opl3, opl3_reg, data->attack_decay);
104 opl3->command(opl3, opl3_reg, data->sustain_release);
108 opl3->command(opl3, opl3_reg, data->feedback_connection);
112 opl3->command(opl3, opl3_reg, data->wave_select);
118 static void snd_opl3_drum_note_set(struct snd_opl3 *opl3,
126 opl3->command(opl3, opl3_reg, data->fnum);
130 opl3->command(opl3, opl3_reg, data->octave_f);
136 static void snd_opl3_drum_vol_set(struct snd_opl3 *opl3,
149 opl3->command(opl3, opl3_reg, reg_val);
159 opl3->command(opl3, opl3_reg, reg_val);
165 void snd_opl3_load_drums(struct snd_opl3 *opl3)
167 snd_opl3_drum_voice_set(opl3, &bass_op0);
168 snd_opl3_drum_voice_set(opl3, &bass_op1);
169 snd_opl3_drum_note_set(opl3, &bass_note);
171 snd_opl3_drum_voice_set(opl3, &hihat);
173 snd_opl3_drum_voice_set(opl3, &snare);
174 snd_opl3_drum_note_set(opl3, &snare_note);
176 snd_opl3_drum_voice_set(opl3, &tomtom);
177 snd_opl3_drum_note_set(opl3, &tomtom_note);
179 snd_opl3_drum_voice_set(opl3, &cymbal);
185 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off,
191 if (!(opl3->drum_reg & OPL3_PERCUSSION_ENABLE))
219 snd_opl3_drum_vol_set(opl3, drum_voice, vel, chan);
220 opl3->drum_reg |= drum_mask;
222 opl3->drum_reg &= ~drum_mask;
224 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION,
225 opl3->drum_reg);