• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/drivers/opl4/

Lines Matching refs:opl4

48 static int snd_opl4_seq_use_inc(struct snd_opl4 *opl4)
50 if (!try_module_get(opl4->card->module))
55 static void snd_opl4_seq_use_dec(struct snd_opl4 *opl4)
57 module_put(opl4->card->module);
62 struct snd_opl4 *opl4 = private_data;
65 mutex_lock(&opl4->access_mutex);
67 if (opl4->used) {
68 mutex_unlock(&opl4->access_mutex);
71 opl4->used++;
74 err = snd_opl4_seq_use_inc(opl4);
76 mutex_unlock(&opl4->access_mutex);
81 mutex_unlock(&opl4->access_mutex);
83 snd_opl4_synth_reset(opl4);
89 struct snd_opl4 *opl4 = private_data;
91 snd_opl4_synth_shutdown(opl4);
93 mutex_lock(&opl4->access_mutex);
94 opl4->used--;
95 mutex_unlock(&opl4->access_mutex);
98 snd_opl4_seq_use_dec(opl4);
113 struct snd_opl4 *opl4 = private_data;
115 snd_midi_process_event(&opl4_ops, ev, opl4->chset);
121 struct snd_opl4 *opl4 = private_data;
123 snd_midi_channel_free_set(opl4->chset);
128 struct snd_opl4 *opl4;
132 opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev);
133 if (!opl4)
136 if (snd_yrw801_detect(opl4) < 0)
139 opl4->chset = snd_midi_channel_alloc_set(16);
140 if (!opl4->chset)
142 opl4->chset->private_data = opl4;
145 client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num,
148 snd_midi_channel_free_set(opl4->chset);
151 opl4->seq_client = client;
152 opl4->chset->client = client;
161 pcallbacks.private_data = opl4;
163 opl4->chset->port = snd_seq_event_port_attach(client, &pcallbacks,
172 if (opl4->chset->port < 0) {
173 int err = opl4->chset->port;
174 snd_midi_channel_free_set(opl4->chset);
176 opl4->seq_client = -1;
184 struct snd_opl4 *opl4;
186 opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev);
187 if (!opl4)
190 if (opl4->seq_client >= 0) {
191 snd_seq_delete_kernel_client(opl4->seq_client);
192 opl4->seq_client = -1;