aboutsummaryrefslogtreecommitdiffstats
path: root/sound/synth/emux/emux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/synth/emux/emux.c')
-rw-r--r--sound/synth/emux/emux.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c
index 2aacd8a884e5..7c8e328fae62 100644
--- a/sound/synth/emux/emux.c
+++ b/sound/synth/emux/emux.c
@@ -35,9 +35,9 @@ MODULE_LICENSE("GPL");
35/* 35/*
36 * create a new hardware dependent device for Emu8000/Emu10k1 36 * create a new hardware dependent device for Emu8000/Emu10k1
37 */ 37 */
38int snd_emux_new(snd_emux_t **remu) 38int snd_emux_new(struct snd_emux **remu)
39{ 39{
40 snd_emux_t *emu; 40 struct snd_emux *emu;
41 41
42 *remu = NULL; 42 *remu = NULL;
43 emu = kzalloc(sizeof(*emu), GFP_KERNEL); 43 emu = kzalloc(sizeof(*emu), GFP_KERNEL);
@@ -66,33 +66,33 @@ int snd_emux_new(snd_emux_t **remu)
66 66
67/* 67/*
68 */ 68 */
69static int sf_sample_new(void *private_data, snd_sf_sample_t *sp, 69static int sf_sample_new(void *private_data, struct snd_sf_sample *sp,
70 snd_util_memhdr_t *hdr, 70 struct snd_util_memhdr *hdr,
71 const void __user *buf, long count) 71 const void __user *buf, long count)
72{ 72{
73 snd_emux_t *emu = private_data; 73 struct snd_emux *emu = private_data;
74 return emu->ops.sample_new(emu, sp, hdr, buf, count); 74 return emu->ops.sample_new(emu, sp, hdr, buf, count);
75 75
76} 76}
77 77
78static int sf_sample_free(void *private_data, snd_sf_sample_t *sp, 78static int sf_sample_free(void *private_data, struct snd_sf_sample *sp,
79 snd_util_memhdr_t *hdr) 79 struct snd_util_memhdr *hdr)
80{ 80{
81 snd_emux_t *emu = private_data; 81 struct snd_emux *emu = private_data;
82 return emu->ops.sample_free(emu, sp, hdr); 82 return emu->ops.sample_free(emu, sp, hdr);
83 83
84} 84}
85 85
86static void sf_sample_reset(void *private_data) 86static void sf_sample_reset(void *private_data)
87{ 87{
88 snd_emux_t *emu = private_data; 88 struct snd_emux *emu = private_data;
89 emu->ops.sample_reset(emu); 89 emu->ops.sample_reset(emu);
90} 90}
91 91
92int snd_emux_register(snd_emux_t *emu, snd_card_t *card, int index, char *name) 92int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, char *name)
93{ 93{
94 int err; 94 int err;
95 snd_sf_callback_t sf_cb; 95 struct snd_sf_callback sf_cb;
96 96
97 snd_assert(emu->hw != NULL, return -EINVAL); 97 snd_assert(emu->hw != NULL, return -EINVAL);
98 snd_assert(emu->max_voices > 0, return -EINVAL); 98 snd_assert(emu->max_voices > 0, return -EINVAL);
@@ -101,7 +101,8 @@ int snd_emux_register(snd_emux_t *emu, snd_card_t *card, int index, char *name)
101 101
102 emu->card = card; 102 emu->card = card;
103 emu->name = kstrdup(name, GFP_KERNEL); 103 emu->name = kstrdup(name, GFP_KERNEL);
104 emu->voices = kcalloc(emu->max_voices, sizeof(snd_emux_voice_t), GFP_KERNEL); 104 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice),
105 GFP_KERNEL);
105 if (emu->voices == NULL) 106 if (emu->voices == NULL)
106 return -ENOMEM; 107 return -ENOMEM;
107 108
@@ -138,7 +139,7 @@ int snd_emux_register(snd_emux_t *emu, snd_card_t *card, int index, char *name)
138 139
139/* 140/*
140 */ 141 */
141int snd_emux_free(snd_emux_t *emu) 142int snd_emux_free(struct snd_emux *emu)
142{ 143{
143 unsigned long flags; 144 unsigned long flags;
144 145