{
int idx;
- mutex_lock(&opl3->access_mutex);
+ down(&opl3->access_mutex);
if (opl3->used) {
- mutex_unlock(&opl3->access_mutex);
+ up(&opl3->access_mutex);
return -EBUSY;
}
opl3->used++;
- mutex_unlock(&opl3->access_mutex);
+ up(&opl3->access_mutex);
snd_opl3_reset(opl3);
spin_unlock_irqrestore(&opl3->sys_timer_lock, flags);
snd_opl3_reset(opl3);
- mutex_lock(&opl3->access_mutex);
+ down(&opl3->access_mutex);
opl3->used--;
- mutex_unlock(&opl3->access_mutex);
+ up(&opl3->access_mutex);
}
static int snd_opl3_synth_use(void *private_data, struct snd_seq_port_subscribe * info)
SNDRV_SEQ_PORT_CAP_SUBS_WRITE,
SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC |
SNDRV_SEQ_PORT_TYPE_MIDI_GM |
- SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE |
- SNDRV_SEQ_PORT_TYPE_HARDWARE |
- SNDRV_SEQ_PORT_TYPE_SYNTHESIZER,
+ SNDRV_SEQ_PORT_TYPE_SYNTH,
16, voices,
name);
if (opl3->chset->port < 0) {