• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/drivers/opl3/

Lines Matching refs:opl3

59 	struct snd_opl3 *opl3 = private_data;
62 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset);
70 struct snd_opl3 *opl3 = private_data;
72 snd_midi_channel_free_set(opl3->oss_chset);
75 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3)
81 voices = (opl3->hardware < OPL3_HW_OPL3) ?
83 opl3->oss_chset = snd_midi_channel_alloc_set(voices);
84 if (opl3->oss_chset == NULL)
86 opl3->oss_chset->private_data = opl3;
92 callbacks.private_data = opl3;
94 opl_ver = (opl3->hardware & OPL3_HW_MASK) >> 8;
97 opl3->oss_chset->client = opl3->seq_client;
98 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks,
106 if (opl3->oss_chset->port < 0) {
108 port = opl3->oss_chset->port;
109 snd_midi_channel_free_set(opl3->oss_chset);
118 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name)
123 if (snd_seq_device_new(opl3->card, 0, SNDRV_SEQ_DEV_ID_OSS,
127 opl3->oss_seq_dev = dev;
131 if (opl3->hardware < OPL3_HW_OPL3) {
139 arg->private_data = opl3;
141 if (snd_opl3_oss_create_port(opl3)) {
143 snd_device_register(opl3->card, dev);
148 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3)
150 if (opl3->oss_seq_dev) {
152 opl3->oss_seq_dev = NULL;
161 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;
189 opl3 = arg->private_data;
191 snd_opl3_synth_cleanup(opl3);
193 snd_opl3_synth_use_dec(opl3);
205 struct snd_opl3 *opl3;
212 opl3 = arg->private_data;
237 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL,
249 struct snd_opl3 *opl3;
253 opl3 = arg->private_data;
277 struct snd_opl3 *opl3;
281 opl3 = arg->private_data;