diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:36:44 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:27 -0500 |
commit | 5e2da20648e39a0e3cb33861499b686a6fe38112 (patch) | |
tree | e5f3117e2f44b262f9b6d45cfbd9e17a0ea913bd /sound/isa/gus/gus_reset.c | |
parent | 029d64b0cfa30abc10f722e2f67d282abe09c9da (diff) |
[ALSA] Remove xxx_t typedefs: ISA GUS
Remove xxx_t typedefs from the ISA GUS drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus/gus_reset.c')
-rw-r--r-- | sound/isa/gus/gus_reset.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sound/isa/gus/gus_reset.c b/sound/isa/gus/gus_reset.c index 90710969ef7f..b263655c4116 100644 --- a/sound/isa/gus/gus_reset.c +++ b/sound/isa/gus/gus_reset.c | |||
@@ -25,52 +25,52 @@ | |||
25 | #include <sound/core.h> | 25 | #include <sound/core.h> |
26 | #include <sound/gus.h> | 26 | #include <sound/gus.h> |
27 | 27 | ||
28 | extern void snd_gf1_timers_init(snd_gus_card_t * gus); | 28 | extern void snd_gf1_timers_init(struct snd_gus_card * gus); |
29 | extern void snd_gf1_timers_done(snd_gus_card_t * gus); | 29 | extern void snd_gf1_timers_done(struct snd_gus_card * gus); |
30 | extern int snd_gf1_synth_init(snd_gus_card_t * gus); | 30 | extern int snd_gf1_synth_init(struct snd_gus_card * gus); |
31 | extern void snd_gf1_synth_done(snd_gus_card_t * gus); | 31 | extern void snd_gf1_synth_done(struct snd_gus_card * gus); |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * ok.. default interrupt handlers... | 34 | * ok.. default interrupt handlers... |
35 | */ | 35 | */ |
36 | 36 | ||
37 | static void snd_gf1_default_interrupt_handler_midi_out(snd_gus_card_t * gus) | 37 | static void snd_gf1_default_interrupt_handler_midi_out(struct snd_gus_card * gus) |
38 | { | 38 | { |
39 | snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x20); | 39 | snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x20); |
40 | } | 40 | } |
41 | 41 | ||
42 | static void snd_gf1_default_interrupt_handler_midi_in(snd_gus_card_t * gus) | 42 | static void snd_gf1_default_interrupt_handler_midi_in(struct snd_gus_card * gus) |
43 | { | 43 | { |
44 | snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x80); | 44 | snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x80); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void snd_gf1_default_interrupt_handler_timer1(snd_gus_card_t * gus) | 47 | static void snd_gf1_default_interrupt_handler_timer1(struct snd_gus_card * gus) |
48 | { | 48 | { |
49 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~4); | 49 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~4); |
50 | } | 50 | } |
51 | 51 | ||
52 | static void snd_gf1_default_interrupt_handler_timer2(snd_gus_card_t * gus) | 52 | static void snd_gf1_default_interrupt_handler_timer2(struct snd_gus_card * gus) |
53 | { | 53 | { |
54 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~8); | 54 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~8); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void snd_gf1_default_interrupt_handler_wave_and_volume(snd_gus_card_t * gus, snd_gus_voice_t * voice) | 57 | static void snd_gf1_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice) |
58 | { | 58 | { |
59 | snd_gf1_i_ctrl_stop(gus, 0x00); | 59 | snd_gf1_i_ctrl_stop(gus, 0x00); |
60 | snd_gf1_i_ctrl_stop(gus, 0x0d); | 60 | snd_gf1_i_ctrl_stop(gus, 0x0d); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void snd_gf1_default_interrupt_handler_dma_write(snd_gus_card_t * gus) | 63 | static void snd_gf1_default_interrupt_handler_dma_write(struct snd_gus_card * gus) |
64 | { | 64 | { |
65 | snd_gf1_i_write8(gus, 0x41, 0x00); | 65 | snd_gf1_i_write8(gus, 0x41, 0x00); |
66 | } | 66 | } |
67 | 67 | ||
68 | static void snd_gf1_default_interrupt_handler_dma_read(snd_gus_card_t * gus) | 68 | static void snd_gf1_default_interrupt_handler_dma_read(struct snd_gus_card * gus) |
69 | { | 69 | { |
70 | snd_gf1_i_write8(gus, 0x49, 0x00); | 70 | snd_gf1_i_write8(gus, 0x49, 0x00); |
71 | } | 71 | } |
72 | 72 | ||
73 | void snd_gf1_set_default_handlers(snd_gus_card_t * gus, unsigned int what) | 73 | void snd_gf1_set_default_handlers(struct snd_gus_card * gus, unsigned int what) |
74 | { | 74 | { |
75 | if (what & SNDRV_GF1_HANDLER_MIDI_OUT) | 75 | if (what & SNDRV_GF1_HANDLER_MIDI_OUT) |
76 | gus->gf1.interrupt_handler_midi_out = snd_gf1_default_interrupt_handler_midi_out; | 76 | gus->gf1.interrupt_handler_midi_out = snd_gf1_default_interrupt_handler_midi_out; |
@@ -81,7 +81,7 @@ void snd_gf1_set_default_handlers(snd_gus_card_t * gus, unsigned int what) | |||
81 | if (what & SNDRV_GF1_HANDLER_TIMER2) | 81 | if (what & SNDRV_GF1_HANDLER_TIMER2) |
82 | gus->gf1.interrupt_handler_timer2 = snd_gf1_default_interrupt_handler_timer2; | 82 | gus->gf1.interrupt_handler_timer2 = snd_gf1_default_interrupt_handler_timer2; |
83 | if (what & SNDRV_GF1_HANDLER_VOICE) { | 83 | if (what & SNDRV_GF1_HANDLER_VOICE) { |
84 | snd_gus_voice_t *voice; | 84 | struct snd_gus_voice *voice; |
85 | 85 | ||
86 | voice = &gus->gf1.voices[what & 0xffff]; | 86 | voice = &gus->gf1.voices[what & 0xffff]; |
87 | voice->handler_wave = | 87 | voice->handler_wave = |
@@ -99,7 +99,7 @@ void snd_gf1_set_default_handlers(snd_gus_card_t * gus, unsigned int what) | |||
99 | 99 | ||
100 | */ | 100 | */ |
101 | 101 | ||
102 | static void snd_gf1_clear_regs(snd_gus_card_t * gus) | 102 | static void snd_gf1_clear_regs(struct snd_gus_card * gus) |
103 | { | 103 | { |
104 | unsigned long flags; | 104 | unsigned long flags; |
105 | 105 | ||
@@ -111,7 +111,7 @@ static void snd_gf1_clear_regs(snd_gus_card_t * gus) | |||
111 | spin_unlock_irqrestore(&gus->reg_lock, flags); | 111 | spin_unlock_irqrestore(&gus->reg_lock, flags); |
112 | } | 112 | } |
113 | 113 | ||
114 | static void snd_gf1_look_regs(snd_gus_card_t * gus) | 114 | static void snd_gf1_look_regs(struct snd_gus_card * gus) |
115 | { | 115 | { |
116 | unsigned long flags; | 116 | unsigned long flags; |
117 | 117 | ||
@@ -127,7 +127,7 @@ static void snd_gf1_look_regs(snd_gus_card_t * gus) | |||
127 | * put selected GF1 voices to initial stage... | 127 | * put selected GF1 voices to initial stage... |
128 | */ | 128 | */ |
129 | 129 | ||
130 | void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice) | 130 | void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice) |
131 | { | 131 | { |
132 | unsigned long flags; | 132 | unsigned long flags; |
133 | 133 | ||
@@ -141,7 +141,7 @@ void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice) | |||
141 | spin_unlock_irqrestore(&gus->reg_lock, flags); | 141 | spin_unlock_irqrestore(&gus->reg_lock, flags); |
142 | } | 142 | } |
143 | 143 | ||
144 | void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice) | 144 | void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice) |
145 | { | 145 | { |
146 | unsigned long flags; | 146 | unsigned long flags; |
147 | 147 | ||
@@ -161,7 +161,7 @@ void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice) | |||
161 | #endif | 161 | #endif |
162 | } | 162 | } |
163 | 163 | ||
164 | static void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, | 164 | static void snd_gf1_clear_voices(struct snd_gus_card * gus, unsigned short v_min, |
165 | unsigned short v_max) | 165 | unsigned short v_max) |
166 | { | 166 | { |
167 | unsigned long flags; | 167 | unsigned long flags; |
@@ -203,7 +203,7 @@ static void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, | |||
203 | } | 203 | } |
204 | } | 204 | } |
205 | 205 | ||
206 | void snd_gf1_stop_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max) | 206 | void snd_gf1_stop_voices(struct snd_gus_card * gus, unsigned short v_min, unsigned short v_max) |
207 | { | 207 | { |
208 | unsigned long flags; | 208 | unsigned long flags; |
209 | short i, ramp_ok; | 209 | short i, ramp_ok; |
@@ -232,8 +232,8 @@ void snd_gf1_stop_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned sh | |||
232 | snd_gf1_clear_voices(gus, v_min, v_max); | 232 | snd_gf1_clear_voices(gus, v_min, v_max); |
233 | } | 233 | } |
234 | 234 | ||
235 | static void snd_gf1_alloc_voice_use(snd_gus_card_t * gus, | 235 | static void snd_gf1_alloc_voice_use(struct snd_gus_card * gus, |
236 | snd_gus_voice_t * pvoice, | 236 | struct snd_gus_voice * pvoice, |
237 | int type, int client, int port) | 237 | int type, int client, int port) |
238 | { | 238 | { |
239 | pvoice->use = 1; | 239 | pvoice->use = 1; |
@@ -255,9 +255,9 @@ static void snd_gf1_alloc_voice_use(snd_gus_card_t * gus, | |||
255 | } | 255 | } |
256 | } | 256 | } |
257 | 257 | ||
258 | snd_gus_voice_t *snd_gf1_alloc_voice(snd_gus_card_t * gus, int type, int client, int port) | 258 | struct snd_gus_voice *snd_gf1_alloc_voice(struct snd_gus_card * gus, int type, int client, int port) |
259 | { | 259 | { |
260 | snd_gus_voice_t *pvoice; | 260 | struct snd_gus_voice *pvoice; |
261 | unsigned long flags; | 261 | unsigned long flags; |
262 | int idx; | 262 | int idx; |
263 | 263 | ||
@@ -289,10 +289,10 @@ snd_gus_voice_t *snd_gf1_alloc_voice(snd_gus_card_t * gus, int type, int client, | |||
289 | return NULL; | 289 | return NULL; |
290 | } | 290 | } |
291 | 291 | ||
292 | void snd_gf1_free_voice(snd_gus_card_t * gus, snd_gus_voice_t *voice) | 292 | void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice) |
293 | { | 293 | { |
294 | unsigned long flags; | 294 | unsigned long flags; |
295 | void (*private_free)(snd_gus_voice_t *voice); | 295 | void (*private_free)(struct snd_gus_voice *voice); |
296 | void *private_data; | 296 | void *private_data; |
297 | 297 | ||
298 | if (voice == NULL || !voice->use) | 298 | if (voice == NULL || !voice->use) |
@@ -317,7 +317,7 @@ void snd_gf1_free_voice(snd_gus_card_t * gus, snd_gus_voice_t *voice) | |||
317 | * call this function only by start of driver | 317 | * call this function only by start of driver |
318 | */ | 318 | */ |
319 | 319 | ||
320 | int snd_gf1_start(snd_gus_card_t * gus) | 320 | int snd_gf1_start(struct snd_gus_card * gus) |
321 | { | 321 | { |
322 | unsigned long flags; | 322 | unsigned long flags; |
323 | unsigned int i; | 323 | unsigned int i; |
@@ -400,7 +400,7 @@ int snd_gf1_start(snd_gus_card_t * gus) | |||
400 | * call this function only by shutdown of driver | 400 | * call this function only by shutdown of driver |
401 | */ | 401 | */ |
402 | 402 | ||
403 | int snd_gf1_stop(snd_gus_card_t * gus) | 403 | int snd_gf1_stop(struct snd_gus_card * gus) |
404 | { | 404 | { |
405 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, 0); /* stop all timers */ | 405 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, 0); /* stop all timers */ |
406 | snd_gf1_stop_voices(gus, 0, 31); /* stop all voices */ | 406 | snd_gf1_stop_voices(gus, 0, 31); /* stop all voices */ |