Searched refs:opl3 (Results 1 - 25 of 41) sorted by relevance

12

/linux-master/sound/drivers/opl3/
H A Dopl3_lib.c12 #include <sound/opl3.h>
26 static void snd_opl2_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) argument
36 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port;
38 spin_lock_irqsave(&opl3->reg_lock, flags);
46 spin_unlock_irqrestore(&opl3->reg_lock, flags);
49 static void snd_opl3_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) argument
59 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port;
61 spin_lock_irqsave(&opl3
74 snd_opl3_detect(struct snd_opl3 * opl3) argument
148 struct snd_opl3 *opl3; local
165 struct snd_opl3 *opl3; local
185 struct snd_opl3 *opl3; local
202 struct snd_opl3 *opl3; local
235 snd_opl3_timer1_init(struct snd_opl3 * opl3, int timer_no) argument
256 snd_opl3_timer2_init(struct snd_opl3 * opl3, int timer_no) argument
284 struct snd_opl3 *opl3; local
314 snd_opl3_free(struct snd_opl3 *opl3) argument
329 struct snd_opl3 *opl3 = device->device_data; local
340 struct snd_opl3 *opl3; local
365 snd_opl3_init(struct snd_opl3 *opl3) argument
398 struct snd_opl3 *opl3; local
456 snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev) argument
478 snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device, struct snd_hwdep ** rhwdep) argument
[all...]
H A Dopl3_seq.c25 int snd_opl3_synth_use_inc(struct snd_opl3 * opl3) argument
27 if (!try_module_get(opl3->card->module))
33 void snd_opl3_synth_use_dec(struct snd_opl3 * opl3) argument
35 module_put(opl3->card->module);
38 int snd_opl3_synth_setup(struct snd_opl3 * opl3) argument
41 struct snd_hwdep *hwdep = opl3->hwdep;
51 snd_opl3_reset(opl3);
54 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF;
55 opl3->voices[idx].time = 0;
56 opl3
69 snd_opl3_synth_cleanup(struct snd_opl3 * opl3) argument
92 struct snd_opl3 *opl3 = private_data; local
121 struct snd_opl3 *opl3 = private_data; local
146 struct snd_opl3 *opl3 = private_data; local
156 struct snd_opl3 *opl3 = private_data; local
161 snd_opl3_synth_create_port(struct snd_opl3 * opl3) argument
210 struct snd_opl3 *opl3; local
253 struct snd_opl3 *opl3; local
[all...]
H A DMakefile7 snd-opl3-lib-objs := opl3_lib.o opl3_synth.o
8 snd-opl3-synth-y := opl3_seq.o opl3_midi.o opl3_drums.o
10 snd-opl3-synth-y += opl3_oss.o
13 obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o
14 obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o
15 obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-opl3-synth.o
H A Dopl3_midi.c110 static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) { argument
114 printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice);
115 for (i = 0; i < opl3->max_voices; i++)
116 printk(KERN_CONT "%c", *(str + opl3->voices[i].state + 1));
124 static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op, argument
155 for (i = 0; i < opl3->max_voices; i++) {
156 vp = &opl3->voices[i];
179 vp2 = &opl3->voices[i + 3];
225 struct snd_opl3 *opl3 = from_timer(opl3, local
254 snd_opl3_start_timer(struct snd_opl3 *opl3) argument
277 struct snd_opl3 *opl3; local
604 snd_opl3_kill_voice(struct snd_opl3 *opl3, int voice) argument
656 struct snd_opl3 *opl3; local
693 struct snd_opl3 *opl3 = p; local
723 snd_opl3_update_pitch(struct snd_opl3 *opl3, int voice) argument
771 snd_opl3_pitch_ctrl(struct snd_opl3 *opl3, struct snd_midi_channel *chan) argument
803 struct snd_opl3 *opl3; local
[all...]
H A Dopl3_voice.h9 #include <sound/opl3.h>
12 int snd_opl3_synth_use_inc(struct snd_opl3 * opl3);
13 void snd_opl3_synth_use_dec(struct snd_opl3 * opl3);
14 int snd_opl3_synth_setup(struct snd_opl3 * opl3);
15 void snd_opl3_synth_cleanup(struct snd_opl3 * opl3);
30 void snd_opl3_load_drums(struct snd_opl3 *opl3);
31 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
35 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name);
36 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3);
38 #define snd_opl3_init_seq_oss(opl3, nam
[all...]
H A Dopl3_oss.c31 struct snd_opl3 *opl3 = private_data; local
34 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset);
42 struct snd_opl3 *opl3 = private_data; local
44 snd_midi_channel_free_set(opl3->oss_chset);
47 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3) argument
53 voices = (opl3->hardware < OPL3_HW_OPL3) ?
55 opl3->oss_chset = snd_midi_channel_alloc_set(voices);
56 if (opl3->oss_chset == NULL)
58 opl3->oss_chset->private_data = opl3;
90 snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name) argument
120 snd_opl3_free_seq_oss(struct snd_opl3 *opl3) argument
133 struct snd_opl3 *opl3 = closure; local
159 struct snd_opl3 *opl3; local
179 struct snd_opl3 *opl3; local
[all...]
H A Dopl3_drums.c67 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3, argument
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
102 snd_opl3_drum_note_set(struct snd_opl3 *opl3, const struct snd_opl3_drum_note *data) argument
120 snd_opl3_drum_vol_set(struct snd_opl3 *opl3, const struct snd_opl3_drum_voice *data, int vel, struct snd_midi_channel *chan) argument
149 snd_opl3_load_drums(struct snd_opl3 *opl3) argument
169 snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan) argument
[all...]
H A Dopl3_synth.c11 #include <sound/opl3.h>
60 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
61 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice);
62 static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params);
63 static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode);
64 static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection);
82 struct snd_opl3 *opl3 = hw->private_data; local
85 if (snd_BUG_ON(!opl3))
96 info.fm_mode = opl3->fm_mode;
97 info.rhythm = opl3
174 struct snd_opl3 *opl3 = hw->private_data; local
187 struct snd_opl3 *opl3 = hw->private_data; local
241 snd_opl3_load_patch(struct snd_opl3 *opl3, int prog, int bank, int type, const char *name, const unsigned char *ext, const unsigned char *data) argument
304 snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank, int create_patch) argument
332 snd_opl3_clear_patches(struct snd_opl3 *opl3) argument
348 snd_opl3_reset(struct snd_opl3 * opl3) argument
390 snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note) argument
437 snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice) argument
541 snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params) argument
581 snd_opl3_set_mode(struct snd_opl3 * opl3, int mode) argument
593 snd_opl3_set_connection(struct snd_opl3 * opl3, int connection) argument
[all...]
/linux-master/include/sound/
H A Dopl4.h10 #include <sound/opl3.h>
17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
H A Dopl3.h290 void (*command) (struct snd_opl3 * opl3, unsigned short cmd, unsigned char val);
337 /* opl3.c */
341 int snd_opl3_init(struct snd_opl3 *opl3);
346 struct snd_opl3 ** opl3);
347 int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev);
348 int snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device,
357 void snd_opl3_reset(struct snd_opl3 * opl3);
362 int snd_opl3_load_patch(struct snd_opl3 *opl3,
367 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
369 void snd_opl3_clear_patches(struct snd_opl3 *opl3);
372 snd_opl3_clear_patches(struct snd_opl3 *opl3) argument
[all...]
/linux-master/sound/isa/
H A Dadlib.c11 #include <sound/opl3.h>
49 struct snd_opl3 *opl3; local
68 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3);
74 error = snd_opl3_hwdep_new(opl3, 0, 0, NULL);
H A Dazt2320.c31 #include <sound/opl3.h>
170 struct snd_opl3 *opl3; local
219 OPL3_HW_AUTO, 0, &opl3) < 0) {
223 error = snd_opl3_timer_new(opl3, 1, 2);
226 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
H A Dals100.c23 #include <sound/opl3.h>
171 struct snd_opl3 *opl3; local
239 OPL3_HW_AUTO, 0, &opl3) < 0) {
243 error = snd_opl3_timer_new(opl3, 0, 1);
246 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
H A Dcmi8328.c19 #include <sound/opl3.h>
221 struct snd_opl3 *opl3; local
359 if (snd_opl3_create(card, 0x388, 0x38a, OPL3_HW_AUTO, 0, &opl3) < 0)
362 if (snd_opl3_hwdep_new(opl3, 0, 1, NULL) < 0)
/linux-master/sound/isa/sb/
H A Dsb8.c14 #include <sound/opl3.h>
77 struct snd_opl3 *opl3; local
144 OPL3_HW_AUTO, 1, &opl3);
149 OPL3_HW_AUTO, 1, &opl3);
156 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
H A Djazz16.c22 #include <sound/opl3.h>
223 struct snd_opl3 *opl3; local
302 OPL3_HW_AUTO, 1, &opl3);
307 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
/linux-master/sound/isa/ad1816a/
H A Dad1816a.c18 #include <sound/opl3.h>
125 struct snd_opl3 *opl3; local
175 OPL3_HW_AUTO, 0, &opl3) < 0) {
178 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
/linux-master/sound/drivers/
H A DMakefile28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
/linux-master/sound/isa/gus/
H A Dgusextreme.c18 #include <sound/opl3.h>
228 struct snd_opl3 *opl3; local
298 OPL3_HW_OPL3, 0, &opl3) < 0)
299 dev_warn(dev, "opl3 not detected at 0x%lx\n", es1688->port);
301 error = snd_opl3_hwdep_new(opl3, 0, 2, NULL);
/linux-master/sound/pci/ymfpci/
H A Dymfpci.c14 #include <sound/opl3.h>
163 struct snd_opl3 *opl3; local
324 OPL3_HW_OPL3, 1, &opl3);
332 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
334 dev_err(card->dev, "cannot create opl3 hwdep\n");
/linux-master/sound/isa/es1688/
H A Des1688.c18 #include <sound/opl3.h>
120 struct snd_opl3 *opl3; local
142 OPL3_HW_OPL3, 0, &opl3) < 0)
144 "opl3 not detected at 0x%lx\n", fm_port[n]);
146 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
/linux-master/sound/drivers/opl4/
H A Dopl4_lib.c185 struct snd_opl3 *opl3; local
227 err = snd_opl3_create(card, fm_port, fm_port + 2, opl4->hardware, 1, &opl3);
233 /* opl3 initialization disabled opl4, so reenable */
246 *ropl3 = opl3;
/linux-master/sound/isa/galaxy/
H A Dgalaxy.c17 #include <sound/opl3.h>
576 struct snd_opl3 *opl3; local
579 OPL3_HW_AUTO, 0, &opl3);
584 err = snd_opl3_timer_new(opl3, 1, 2);
588 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL);
/linux-master/sound/isa/opti9xx/
H A Dopti92x-ad1848.c26 #include <sound/opl3.h>
884 struct snd_opl3 *opl3 = NULL; local
894 2, &opl3, &opl4) < 0) {
901 if (!opl3 && snd_opl3_create(card, fm_port, fm_port + 2,
902 OPL3_HW_AUTO, 0, &opl3) < 0) {
906 if (opl3) {
907 error = snd_opl3_hwdep_new(opl3, 0, 1, &synth);
/linux-master/sound/isa/wavefront/
H A Dwavefront.c17 #include <sound/opl3.h>
367 struct snd_opl3 *opl3; local
370 OPL3_HW_OPL3_CS, 0, &opl3);
376 err = snd_opl3_hwdep_new(opl3, hw_dev, 1, NULL);

Completed in 174 milliseconds

12