/linux-master/sound/drivers/opl3/ |
H A D | opl3_lib.c | 12 #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 D | opl3_seq.c | 25 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 D | Makefile | 7 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 D | opl3_midi.c | 110 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 D | opl3_voice.h | 9 #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 D | opl3_oss.c | 31 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 D | opl3_drums.c | 67 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 D | opl3_synth.c | 11 #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 D | opl4.h | 10 #include <sound/opl3.h> 17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
|
H A D | opl3.h | 290 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 D | adlib.c | 11 #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 D | azt2320.c | 31 #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 D | als100.c | 23 #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 D | cmi8328.c | 19 #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 D | sb8.c | 14 #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 D | jazz16.c | 22 #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 D | ad1816a.c | 18 #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 D | Makefile | 28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
|
/linux-master/sound/isa/gus/ |
H A D | gusextreme.c | 18 #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 D | ymfpci.c | 14 #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 D | es1688.c | 18 #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 D | opl4_lib.c | 185 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 D | galaxy.c | 17 #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 D | opti92x-ad1848.c | 26 #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 D | wavefront.c | 17 #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);
|