git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
sound
/
synth
/
emux
/
emux_seq.c
diff --git
a/sound/synth/emux/emux_seq.c
b/sound/synth/emux/emux_seq.c
index
1a973d7
..
d176cc0
100644
(file)
--- a/
sound/synth/emux/emux_seq.c
+++ b/
sound/synth/emux/emux_seq.c
@@
-55,7
+55,8
@@
static struct snd_midi_op emux_ops = {
SNDRV_SEQ_PORT_TYPE_MIDI_GM |\
SNDRV_SEQ_PORT_TYPE_MIDI_GS |\
SNDRV_SEQ_PORT_TYPE_MIDI_XG |\
SNDRV_SEQ_PORT_TYPE_MIDI_GM |\
SNDRV_SEQ_PORT_TYPE_MIDI_GS |\
SNDRV_SEQ_PORT_TYPE_MIDI_XG |\
- SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE)
+ SNDRV_SEQ_PORT_TYPE_HARDWARE |\
+ SNDRV_SEQ_PORT_TYPE_SYNTHESIZER)
/*
* Initialise the EMUX Synth by creating a client and registering
/*
* Initialise the EMUX Synth by creating a client and registering
@@
-123,12
+124,12
@@
snd_emux_detach_seq(struct snd_emux *emu)
if (emu->voices)
snd_emux_terminate_all(emu);
if (emu->voices)
snd_emux_terminate_all(emu);
-
down
(&emu->register_mutex);
+
mutex_lock
(&emu->register_mutex);
if (emu->client >= 0) {
snd_seq_delete_kernel_client(emu->client);
emu->client = -1;
}
if (emu->client >= 0) {
snd_seq_delete_kernel_client(emu->client);
emu->client = -1;
}
-
up
(&emu->register_mutex);
+
mutex_unlock
(&emu->register_mutex);
}
}
@@
-311,10
+312,10
@@
snd_emux_use(void *private_data, struct snd_seq_port_subscribe *info)
emu = p->emu;
snd_assert(emu != NULL, return -EINVAL);
emu = p->emu;
snd_assert(emu != NULL, return -EINVAL);
-
down
(&emu->register_mutex);
+
mutex_lock
(&emu->register_mutex);
snd_emux_init_port(p);
snd_emux_inc_count(emu);
snd_emux_init_port(p);
snd_emux_inc_count(emu);
-
up
(&emu->register_mutex);
+
mutex_unlock
(&emu->register_mutex);
return 0;
}
return 0;
}
@@
-332,10
+333,10
@@
snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *info)
emu = p->emu;
snd_assert(emu != NULL, return -EINVAL);
emu = p->emu;
snd_assert(emu != NULL, return -EINVAL);
-
down
(&emu->register_mutex);
+
mutex_lock
(&emu->register_mutex);
snd_emux_sounds_off_all(p);
snd_emux_dec_count(emu);
snd_emux_sounds_off_all(p);
snd_emux_dec_count(emu);
-
up
(&emu->register_mutex);
+
mutex_unlock
(&emu->register_mutex);
return 0;
}
return 0;
}