diff options
Diffstat (limited to 'sound/drivers/opl3/opl3_seq.c')
-rw-r--r-- | sound/drivers/opl3/opl3_seq.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sound/drivers/opl3/opl3_seq.c b/sound/drivers/opl3/opl3_seq.c index 136964b844de..1886b2958e77 100644 --- a/sound/drivers/opl3/opl3_seq.c +++ b/sound/drivers/opl3/opl3_seq.c | |||
@@ -35,7 +35,7 @@ int use_internal_drums = 0; | |||
35 | module_param(use_internal_drums, bool, 0444); | 35 | module_param(use_internal_drums, bool, 0444); |
36 | MODULE_PARM_DESC(use_internal_drums, "Enable internal OPL2/3 drums."); | 36 | MODULE_PARM_DESC(use_internal_drums, "Enable internal OPL2/3 drums."); |
37 | 37 | ||
38 | int snd_opl3_synth_use_inc(opl3_t * opl3) | 38 | int snd_opl3_synth_use_inc(struct snd_opl3 * opl3) |
39 | { | 39 | { |
40 | if (!try_module_get(opl3->card->module)) | 40 | if (!try_module_get(opl3->card->module)) |
41 | return -EFAULT; | 41 | return -EFAULT; |
@@ -43,12 +43,12 @@ int snd_opl3_synth_use_inc(opl3_t * opl3) | |||
43 | 43 | ||
44 | } | 44 | } |
45 | 45 | ||
46 | void snd_opl3_synth_use_dec(opl3_t * opl3) | 46 | void snd_opl3_synth_use_dec(struct snd_opl3 * opl3) |
47 | { | 47 | { |
48 | module_put(opl3->card->module); | 48 | module_put(opl3->card->module); |
49 | } | 49 | } |
50 | 50 | ||
51 | int snd_opl3_synth_setup(opl3_t * opl3) | 51 | int snd_opl3_synth_setup(struct snd_opl3 * opl3) |
52 | { | 52 | { |
53 | int idx; | 53 | int idx; |
54 | 54 | ||
@@ -78,7 +78,7 @@ int snd_opl3_synth_setup(opl3_t * opl3) | |||
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | void snd_opl3_synth_cleanup(opl3_t * opl3) | 81 | void snd_opl3_synth_cleanup(struct snd_opl3 * opl3) |
82 | { | 82 | { |
83 | unsigned long flags; | 83 | unsigned long flags; |
84 | 84 | ||
@@ -96,9 +96,9 @@ void snd_opl3_synth_cleanup(opl3_t * opl3) | |||
96 | up(&opl3->access_mutex); | 96 | up(&opl3->access_mutex); |
97 | } | 97 | } |
98 | 98 | ||
99 | static int snd_opl3_synth_use(void *private_data, snd_seq_port_subscribe_t * info) | 99 | static int snd_opl3_synth_use(void *private_data, struct snd_seq_port_subscribe * info) |
100 | { | 100 | { |
101 | opl3_t *opl3 = private_data; | 101 | struct snd_opl3 *opl3 = private_data; |
102 | int err; | 102 | int err; |
103 | 103 | ||
104 | if ((err = snd_opl3_synth_setup(opl3)) < 0) | 104 | if ((err = snd_opl3_synth_setup(opl3)) < 0) |
@@ -123,9 +123,9 @@ static int snd_opl3_synth_use(void *private_data, snd_seq_port_subscribe_t * inf | |||
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |
125 | 125 | ||
126 | static int snd_opl3_synth_unuse(void *private_data, snd_seq_port_subscribe_t * info) | 126 | static int snd_opl3_synth_unuse(void *private_data, struct snd_seq_port_subscribe * info) |
127 | { | 127 | { |
128 | opl3_t *opl3 = private_data; | 128 | struct snd_opl3 *opl3 = private_data; |
129 | 129 | ||
130 | snd_opl3_synth_cleanup(opl3); | 130 | snd_opl3_synth_cleanup(opl3); |
131 | 131 | ||
@@ -137,7 +137,7 @@ static int snd_opl3_synth_unuse(void *private_data, snd_seq_port_subscribe_t * i | |||
137 | /* | 137 | /* |
138 | * MIDI emulation operators | 138 | * MIDI emulation operators |
139 | */ | 139 | */ |
140 | snd_midi_op_t opl3_ops = { | 140 | struct snd_midi_op opl3_ops = { |
141 | .note_on = snd_opl3_note_on, | 141 | .note_on = snd_opl3_note_on, |
142 | .note_off = snd_opl3_note_off, | 142 | .note_off = snd_opl3_note_off, |
143 | .key_press = snd_opl3_key_press, | 143 | .key_press = snd_opl3_key_press, |
@@ -147,10 +147,10 @@ snd_midi_op_t opl3_ops = { | |||
147 | .sysex = snd_opl3_sysex, | 147 | .sysex = snd_opl3_sysex, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | static int snd_opl3_synth_event_input(snd_seq_event_t * ev, int direct, | 150 | static int snd_opl3_synth_event_input(struct snd_seq_event * ev, int direct, |
151 | void *private_data, int atomic, int hop) | 151 | void *private_data, int atomic, int hop) |
152 | { | 152 | { |
153 | opl3_t *opl3 = private_data; | 153 | struct snd_opl3 *opl3 = private_data; |
154 | 154 | ||
155 | if (ev->type >= SNDRV_SEQ_EVENT_INSTR_BEGIN && | 155 | if (ev->type >= SNDRV_SEQ_EVENT_INSTR_BEGIN && |
156 | ev->type <= SNDRV_SEQ_EVENT_INSTR_CHANGE) { | 156 | ev->type <= SNDRV_SEQ_EVENT_INSTR_CHANGE) { |
@@ -168,14 +168,14 @@ static int snd_opl3_synth_event_input(snd_seq_event_t * ev, int direct, | |||
168 | 168 | ||
169 | static void snd_opl3_synth_free_port(void *private_data) | 169 | static void snd_opl3_synth_free_port(void *private_data) |
170 | { | 170 | { |
171 | opl3_t *opl3 = private_data; | 171 | struct snd_opl3 *opl3 = private_data; |
172 | 172 | ||
173 | snd_midi_channel_free_set(opl3->chset); | 173 | snd_midi_channel_free_set(opl3->chset); |
174 | } | 174 | } |
175 | 175 | ||
176 | static int snd_opl3_synth_create_port(opl3_t * opl3) | 176 | static int snd_opl3_synth_create_port(struct snd_opl3 * opl3) |
177 | { | 177 | { |
178 | snd_seq_port_callback_t callbacks; | 178 | struct snd_seq_port_callback callbacks; |
179 | char name[32]; | 179 | char name[32]; |
180 | int voices, opl_ver; | 180 | int voices, opl_ver; |
181 | 181 | ||
@@ -215,15 +215,15 @@ static int snd_opl3_synth_create_port(opl3_t * opl3) | |||
215 | 215 | ||
216 | /* ------------------------------ */ | 216 | /* ------------------------------ */ |
217 | 217 | ||
218 | static int snd_opl3_seq_new_device(snd_seq_device_t *dev) | 218 | static int snd_opl3_seq_new_device(struct snd_seq_device *dev) |
219 | { | 219 | { |
220 | opl3_t *opl3; | 220 | struct snd_opl3 *opl3; |
221 | int client; | 221 | int client; |
222 | snd_seq_client_callback_t callbacks; | 222 | struct snd_seq_client_callback callbacks; |
223 | snd_seq_client_info_t cinfo; | 223 | struct snd_seq_client_info cinfo; |
224 | int opl_ver; | 224 | int opl_ver; |
225 | 225 | ||
226 | opl3 = *(opl3_t **)SNDRV_SEQ_DEVICE_ARGPTR(dev); | 226 | opl3 = *(struct snd_opl3 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); |
227 | if (opl3 == NULL) | 227 | if (opl3 == NULL) |
228 | return -EINVAL; | 228 | return -EINVAL; |
229 | 229 | ||
@@ -273,11 +273,11 @@ static int snd_opl3_seq_new_device(snd_seq_device_t *dev) | |||
273 | return 0; | 273 | return 0; |
274 | } | 274 | } |
275 | 275 | ||
276 | static int snd_opl3_seq_delete_device(snd_seq_device_t *dev) | 276 | static int snd_opl3_seq_delete_device(struct snd_seq_device *dev) |
277 | { | 277 | { |
278 | opl3_t *opl3; | 278 | struct snd_opl3 *opl3; |
279 | 279 | ||
280 | opl3 = *(opl3_t **)SNDRV_SEQ_DEVICE_ARGPTR(dev); | 280 | opl3 = *(struct snd_opl3 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); |
281 | if (opl3 == NULL) | 281 | if (opl3 == NULL) |
282 | return -EINVAL; | 282 | return -EINVAL; |
283 | 283 | ||
@@ -295,14 +295,14 @@ static int snd_opl3_seq_delete_device(snd_seq_device_t *dev) | |||
295 | 295 | ||
296 | static int __init alsa_opl3_seq_init(void) | 296 | static int __init alsa_opl3_seq_init(void) |
297 | { | 297 | { |
298 | static snd_seq_dev_ops_t ops = | 298 | static struct snd_seq_dev_ops ops = |
299 | { | 299 | { |
300 | snd_opl3_seq_new_device, | 300 | snd_opl3_seq_new_device, |
301 | snd_opl3_seq_delete_device | 301 | snd_opl3_seq_delete_device |
302 | }; | 302 | }; |
303 | 303 | ||
304 | return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_OPL3, &ops, | 304 | return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_OPL3, &ops, |
305 | sizeof(opl3_t*)); | 305 | sizeof(struct snd_opl3 *)); |
306 | } | 306 | } |
307 | 307 | ||
308 | static void __exit alsa_opl3_seq_exit(void) | 308 | static void __exit alsa_opl3_seq_exit(void) |