aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-12-12 03:30:43 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:30:47 -0500
commit83e8ad6984dccd6d848ac91ba0df379ff968180b (patch)
tree5ae1f379de542b8ede18ab1cc65537b01b21d212 /sound/synth
parent255bd169ab645970f77d3fd7ac800781f96ddccb (diff)
[ALSA] seq: remove struct snd_seq_client_callback
The fields of struct snd_seq_client_callback either aren't used or are always set to the same value, so we can get rid of it altogether. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/synth')
-rw-r--r--sound/synth/emux/emux_seq.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c
index f5a832ff362c..b7129c5aee06 100644
--- a/sound/synth/emux/emux_seq.c
+++ b/sound/synth/emux/emux_seq.c
@@ -347,17 +347,11 @@ snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *info)
347static int 347static int
348get_client(struct snd_card *card, int index, char *name) 348get_client(struct snd_card *card, int index, char *name)
349{ 349{
350 struct snd_seq_client_callback callbacks;
351 struct snd_seq_client_info cinfo; 350 struct snd_seq_client_info cinfo;
352 int client; 351 int client;
353 352
354 memset(&callbacks, 0, sizeof(callbacks));
355 callbacks.private_data = NULL;
356 callbacks.allow_input = 1;
357 callbacks.allow_output = 1;
358
359 /* Find a free client, start from 1 as the MPU expects to use 0 */ 353 /* Find a free client, start from 1 as the MPU expects to use 0 */
360 client = snd_seq_create_kernel_client(card, index, &callbacks); 354 client = snd_seq_create_kernel_client(card, index);
361 if (client < 0) 355 if (client < 0)
362 return client; 356 return client;
363 357