• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/drivers/opl3/

Lines Matching defs:opl3

60 	struct snd_opl3 *opl3 = private_data;
63 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset);
71 struct snd_opl3 *opl3 = private_data;
73 snd_midi_channel_free_set(opl3->oss_chset);
76 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3)
82 voices = (opl3->hardware < OPL3_HW_OPL3) ?
84 opl3->oss_chset = snd_midi_channel_alloc_set(voices);
85 if (opl3->oss_chset == NULL)
87 opl3->oss_chset->private_data = opl3;
93 callbacks.private_data = opl3;
95 opl_ver = (opl3->hardware & OPL3_HW_MASK) >> 8;
98 opl3->oss_chset->client = opl3->seq_client;
99 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks,
107 if (opl3->oss_chset->port < 0) {
109 port = opl3->oss_chset->port;
110 snd_midi_channel_free_set(opl3->oss_chset);
119 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name)
124 if (snd_seq_device_new(opl3->card, 0, SNDRV_SEQ_DEV_ID_OSS,
128 opl3->oss_seq_dev = dev;
132 if (opl3->hardware < OPL3_HW_OPL3) {
140 arg->private_data = opl3;
142 if (snd_opl3_oss_create_port(opl3)) {
144 snd_device_register(opl3->card, dev);
149 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3)
151 if (opl3->oss_seq_dev) {
153 opl3->oss_seq_dev = NULL;
162 struct snd_opl3 *opl3 = closure;
167 if ((err = snd_opl3_synth_setup(opl3)) < 0)
171 arg->private_data = opl3;
172 arg->addr.client = opl3->oss_chset->client;
173 arg->addr.port = opl3->oss_chset->port;
175 if ((err = snd_opl3_synth_use_inc(opl3)) < 0)
178 opl3->synth_mode = SNDRV_OPL3_MODE_SYNTH;
185 struct snd_opl3 *opl3;
188 opl3 = arg->private_data;
190 snd_opl3_synth_cleanup(opl3);
192 snd_opl3_synth_use_dec(opl3);
215 struct snd_opl3 *opl3;
219 opl3 = arg->private_data;
299 err = snd_seq_instr_event(&opl3->fm_ops, opl3->ilist, &ev,
300 opl3->seq_client, 0, 0);
313 snd_seq_instr_event(&opl3->fm_ops, opl3->ilist, &ev,
314 opl3->seq_client, 0, 0);
328 struct snd_opl3 *opl3;
331 opl3 = arg->private_data;
353 struct snd_opl3 *opl3;
356 opl3 = arg->private_data;