diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:13:14 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:04 -0500 |
commit | 5b1646a8eceff0a4ff06f309abb6e7f43f99a498 (patch) | |
tree | ecbb7c1d5ffdf2f3f732a18aae3ed6b2a3752e9e /sound/drivers/opl3/opl3_lib.c | |
parent | e1fad17bb4084dc7c435360185417aed55656ec8 (diff) |
[ALSA] Remove xxx_t typedefs: OPL3
Modules: OPL3,Raw OPL FM
Remove xxx_t typedefs from the OPL3 driver
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl3/opl3_lib.c')
-rw-r--r-- | sound/drivers/opl3/opl3_lib.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c index 06246503083c..cbd37e919601 100644 --- a/sound/drivers/opl3/opl3_lib.c +++ b/sound/drivers/opl3/opl3_lib.c | |||
@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL"); | |||
37 | 37 | ||
38 | extern char snd_opl3_regmap[MAX_OPL2_VOICES][4]; | 38 | extern char snd_opl3_regmap[MAX_OPL2_VOICES][4]; |
39 | 39 | ||
40 | static void snd_opl2_command(opl3_t * opl3, unsigned short cmd, unsigned char val) | 40 | static void snd_opl2_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) |
41 | { | 41 | { |
42 | unsigned long flags; | 42 | unsigned long flags; |
43 | unsigned long port; | 43 | unsigned long port; |
@@ -60,7 +60,7 @@ static void snd_opl2_command(opl3_t * opl3, unsigned short cmd, unsigned char va | |||
60 | spin_unlock_irqrestore(&opl3->reg_lock, flags); | 60 | spin_unlock_irqrestore(&opl3->reg_lock, flags); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void snd_opl3_command(opl3_t * opl3, unsigned short cmd, unsigned char val) | 63 | static void snd_opl3_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) |
64 | { | 64 | { |
65 | unsigned long flags; | 65 | unsigned long flags; |
66 | unsigned long port; | 66 | unsigned long port; |
@@ -85,7 +85,7 @@ static void snd_opl3_command(opl3_t * opl3, unsigned short cmd, unsigned char va | |||
85 | spin_unlock_irqrestore(&opl3->reg_lock, flags); | 85 | spin_unlock_irqrestore(&opl3->reg_lock, flags); |
86 | } | 86 | } |
87 | 87 | ||
88 | static int snd_opl3_detect(opl3_t * opl3) | 88 | static int snd_opl3_detect(struct snd_opl3 * opl3) |
89 | { | 89 | { |
90 | /* | 90 | /* |
91 | * This function returns 1 if the FM chip is present at the given I/O port | 91 | * This function returns 1 if the FM chip is present at the given I/O port |
@@ -153,12 +153,12 @@ static int snd_opl3_detect(opl3_t * opl3) | |||
153 | * Timer 1 - 80us | 153 | * Timer 1 - 80us |
154 | */ | 154 | */ |
155 | 155 | ||
156 | static int snd_opl3_timer1_start(snd_timer_t * timer) | 156 | static int snd_opl3_timer1_start(struct snd_timer * timer) |
157 | { | 157 | { |
158 | unsigned long flags; | 158 | unsigned long flags; |
159 | unsigned char tmp; | 159 | unsigned char tmp; |
160 | unsigned int ticks; | 160 | unsigned int ticks; |
161 | opl3_t *opl3; | 161 | struct snd_opl3 *opl3; |
162 | 162 | ||
163 | opl3 = snd_timer_chip(timer); | 163 | opl3 = snd_timer_chip(timer); |
164 | spin_lock_irqsave(&opl3->timer_lock, flags); | 164 | spin_lock_irqsave(&opl3->timer_lock, flags); |
@@ -171,11 +171,11 @@ static int snd_opl3_timer1_start(snd_timer_t * timer) | |||
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | static int snd_opl3_timer1_stop(snd_timer_t * timer) | 174 | static int snd_opl3_timer1_stop(struct snd_timer * timer) |
175 | { | 175 | { |
176 | unsigned long flags; | 176 | unsigned long flags; |
177 | unsigned char tmp; | 177 | unsigned char tmp; |
178 | opl3_t *opl3; | 178 | struct snd_opl3 *opl3; |
179 | 179 | ||
180 | opl3 = snd_timer_chip(timer); | 180 | opl3 = snd_timer_chip(timer); |
181 | spin_lock_irqsave(&opl3->timer_lock, flags); | 181 | spin_lock_irqsave(&opl3->timer_lock, flags); |
@@ -190,12 +190,12 @@ static int snd_opl3_timer1_stop(snd_timer_t * timer) | |||
190 | * Timer 2 - 320us | 190 | * Timer 2 - 320us |
191 | */ | 191 | */ |
192 | 192 | ||
193 | static int snd_opl3_timer2_start(snd_timer_t * timer) | 193 | static int snd_opl3_timer2_start(struct snd_timer * timer) |
194 | { | 194 | { |
195 | unsigned long flags; | 195 | unsigned long flags; |
196 | unsigned char tmp; | 196 | unsigned char tmp; |
197 | unsigned int ticks; | 197 | unsigned int ticks; |
198 | opl3_t *opl3; | 198 | struct snd_opl3 *opl3; |
199 | 199 | ||
200 | opl3 = snd_timer_chip(timer); | 200 | opl3 = snd_timer_chip(timer); |
201 | spin_lock_irqsave(&opl3->timer_lock, flags); | 201 | spin_lock_irqsave(&opl3->timer_lock, flags); |
@@ -208,11 +208,11 @@ static int snd_opl3_timer2_start(snd_timer_t * timer) | |||
208 | return 0; | 208 | return 0; |
209 | } | 209 | } |
210 | 210 | ||
211 | static int snd_opl3_timer2_stop(snd_timer_t * timer) | 211 | static int snd_opl3_timer2_stop(struct snd_timer * timer) |
212 | { | 212 | { |
213 | unsigned long flags; | 213 | unsigned long flags; |
214 | unsigned char tmp; | 214 | unsigned char tmp; |
215 | opl3_t *opl3; | 215 | struct snd_opl3 *opl3; |
216 | 216 | ||
217 | opl3 = snd_timer_chip(timer); | 217 | opl3 = snd_timer_chip(timer); |
218 | spin_lock_irqsave(&opl3->timer_lock, flags); | 218 | spin_lock_irqsave(&opl3->timer_lock, flags); |
@@ -227,7 +227,7 @@ static int snd_opl3_timer2_stop(snd_timer_t * timer) | |||
227 | 227 | ||
228 | */ | 228 | */ |
229 | 229 | ||
230 | static struct _snd_timer_hardware snd_opl3_timer1 = | 230 | static struct snd_timer_hardware snd_opl3_timer1 = |
231 | { | 231 | { |
232 | .flags = SNDRV_TIMER_HW_STOP, | 232 | .flags = SNDRV_TIMER_HW_STOP, |
233 | .resolution = 80000, | 233 | .resolution = 80000, |
@@ -236,7 +236,7 @@ static struct _snd_timer_hardware snd_opl3_timer1 = | |||
236 | .stop = snd_opl3_timer1_stop, | 236 | .stop = snd_opl3_timer1_stop, |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static struct _snd_timer_hardware snd_opl3_timer2 = | 239 | static struct snd_timer_hardware snd_opl3_timer2 = |
240 | { | 240 | { |
241 | .flags = SNDRV_TIMER_HW_STOP, | 241 | .flags = SNDRV_TIMER_HW_STOP, |
242 | .resolution = 320000, | 242 | .resolution = 320000, |
@@ -245,10 +245,10 @@ static struct _snd_timer_hardware snd_opl3_timer2 = | |||
245 | .stop = snd_opl3_timer2_stop, | 245 | .stop = snd_opl3_timer2_stop, |
246 | }; | 246 | }; |
247 | 247 | ||
248 | static int snd_opl3_timer1_init(opl3_t * opl3, int timer_no) | 248 | static int snd_opl3_timer1_init(struct snd_opl3 * opl3, int timer_no) |
249 | { | 249 | { |
250 | snd_timer_t *timer = NULL; | 250 | struct snd_timer *timer = NULL; |
251 | snd_timer_id_t tid; | 251 | struct snd_timer_id tid; |
252 | int err; | 252 | int err; |
253 | 253 | ||
254 | tid.dev_class = SNDRV_TIMER_CLASS_CARD; | 254 | tid.dev_class = SNDRV_TIMER_CLASS_CARD; |
@@ -265,10 +265,10 @@ static int snd_opl3_timer1_init(opl3_t * opl3, int timer_no) | |||
265 | return err; | 265 | return err; |
266 | } | 266 | } |
267 | 267 | ||
268 | static int snd_opl3_timer2_init(opl3_t * opl3, int timer_no) | 268 | static int snd_opl3_timer2_init(struct snd_opl3 * opl3, int timer_no) |
269 | { | 269 | { |
270 | snd_timer_t *timer = NULL; | 270 | struct snd_timer *timer = NULL; |
271 | snd_timer_id_t tid; | 271 | struct snd_timer_id tid; |
272 | int err; | 272 | int err; |
273 | 273 | ||
274 | tid.dev_class = SNDRV_TIMER_CLASS_CARD; | 274 | tid.dev_class = SNDRV_TIMER_CLASS_CARD; |
@@ -289,11 +289,11 @@ static int snd_opl3_timer2_init(opl3_t * opl3, int timer_no) | |||
289 | 289 | ||
290 | */ | 290 | */ |
291 | 291 | ||
292 | void snd_opl3_interrupt(snd_hwdep_t * hw) | 292 | void snd_opl3_interrupt(struct snd_hwdep * hw) |
293 | { | 293 | { |
294 | unsigned char status; | 294 | unsigned char status; |
295 | opl3_t *opl3; | 295 | struct snd_opl3 *opl3; |
296 | snd_timer_t *timer; | 296 | struct snd_timer *timer; |
297 | 297 | ||
298 | if (hw == NULL) | 298 | if (hw == NULL) |
299 | return; | 299 | return; |
@@ -320,7 +320,7 @@ void snd_opl3_interrupt(snd_hwdep_t * hw) | |||
320 | 320 | ||
321 | */ | 321 | */ |
322 | 322 | ||
323 | static int snd_opl3_free(opl3_t *opl3) | 323 | static int snd_opl3_free(struct snd_opl3 *opl3) |
324 | { | 324 | { |
325 | snd_assert(opl3 != NULL, return -ENXIO); | 325 | snd_assert(opl3 != NULL, return -ENXIO); |
326 | if (opl3->private_free) | 326 | if (opl3->private_free) |
@@ -331,20 +331,20 @@ static int snd_opl3_free(opl3_t *opl3) | |||
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |
333 | 333 | ||
334 | static int snd_opl3_dev_free(snd_device_t *device) | 334 | static int snd_opl3_dev_free(struct snd_device *device) |
335 | { | 335 | { |
336 | opl3_t *opl3 = device->device_data; | 336 | struct snd_opl3 *opl3 = device->device_data; |
337 | return snd_opl3_free(opl3); | 337 | return snd_opl3_free(opl3); |
338 | } | 338 | } |
339 | 339 | ||
340 | int snd_opl3_new(snd_card_t *card, | 340 | int snd_opl3_new(struct snd_card *card, |
341 | unsigned short hardware, | 341 | unsigned short hardware, |
342 | opl3_t **ropl3) | 342 | struct snd_opl3 **ropl3) |
343 | { | 343 | { |
344 | static snd_device_ops_t ops = { | 344 | static struct snd_device_ops ops = { |
345 | .dev_free = snd_opl3_dev_free, | 345 | .dev_free = snd_opl3_dev_free, |
346 | }; | 346 | }; |
347 | opl3_t *opl3; | 347 | struct snd_opl3 *opl3; |
348 | int err; | 348 | int err; |
349 | 349 | ||
350 | *ropl3 = NULL; | 350 | *ropl3 = NULL; |
@@ -367,7 +367,7 @@ int snd_opl3_new(snd_card_t *card, | |||
367 | return 0; | 367 | return 0; |
368 | } | 368 | } |
369 | 369 | ||
370 | int snd_opl3_init(opl3_t *opl3) | 370 | int snd_opl3_init(struct snd_opl3 *opl3) |
371 | { | 371 | { |
372 | if (! opl3->command) { | 372 | if (! opl3->command) { |
373 | printk(KERN_ERR "snd_opl3_init: command not defined!\n"); | 373 | printk(KERN_ERR "snd_opl3_init: command not defined!\n"); |
@@ -391,14 +391,14 @@ int snd_opl3_init(opl3_t *opl3) | |||
391 | return 0; | 391 | return 0; |
392 | } | 392 | } |
393 | 393 | ||
394 | int snd_opl3_create(snd_card_t * card, | 394 | int snd_opl3_create(struct snd_card *card, |
395 | unsigned long l_port, | 395 | unsigned long l_port, |
396 | unsigned long r_port, | 396 | unsigned long r_port, |
397 | unsigned short hardware, | 397 | unsigned short hardware, |
398 | int integrated, | 398 | int integrated, |
399 | opl3_t ** ropl3) | 399 | struct snd_opl3 ** ropl3) |
400 | { | 400 | { |
401 | opl3_t *opl3; | 401 | struct snd_opl3 *opl3; |
402 | int err; | 402 | int err; |
403 | 403 | ||
404 | *ropl3 = NULL; | 404 | *ropl3 = NULL; |
@@ -449,7 +449,7 @@ int snd_opl3_create(snd_card_t * card, | |||
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | 451 | ||
452 | int snd_opl3_timer_new(opl3_t * opl3, int timer1_dev, int timer2_dev) | 452 | int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev) |
453 | { | 453 | { |
454 | int err; | 454 | int err; |
455 | 455 | ||
@@ -466,12 +466,12 @@ int snd_opl3_timer_new(opl3_t * opl3, int timer1_dev, int timer2_dev) | |||
466 | return 0; | 466 | return 0; |
467 | } | 467 | } |
468 | 468 | ||
469 | int snd_opl3_hwdep_new(opl3_t * opl3, | 469 | int snd_opl3_hwdep_new(struct snd_opl3 * opl3, |
470 | int device, int seq_device, | 470 | int device, int seq_device, |
471 | snd_hwdep_t ** rhwdep) | 471 | struct snd_hwdep ** rhwdep) |
472 | { | 472 | { |
473 | snd_hwdep_t *hw; | 473 | struct snd_hwdep *hw; |
474 | snd_card_t *card = opl3->card; | 474 | struct snd_card *card = opl3->card; |
475 | int err; | 475 | int err; |
476 | 476 | ||
477 | if (rhwdep) | 477 | if (rhwdep) |
@@ -514,9 +514,9 @@ int snd_opl3_hwdep_new(opl3_t * opl3, | |||
514 | opl3->seq_dev_num = seq_device; | 514 | opl3->seq_dev_num = seq_device; |
515 | #if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) | 515 | #if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) |
516 | if (snd_seq_device_new(card, seq_device, SNDRV_SEQ_DEV_ID_OPL3, | 516 | if (snd_seq_device_new(card, seq_device, SNDRV_SEQ_DEV_ID_OPL3, |
517 | sizeof(opl3_t*), &opl3->seq_dev) >= 0) { | 517 | sizeof(struct snd_opl3 *), &opl3->seq_dev) >= 0) { |
518 | strcpy(opl3->seq_dev->name, hw->name); | 518 | strcpy(opl3->seq_dev->name, hw->name); |
519 | *(opl3_t**)SNDRV_SEQ_DEVICE_ARGPTR(opl3->seq_dev) = opl3; | 519 | *(struct snd_opl3 **)SNDRV_SEQ_DEVICE_ARGPTR(opl3->seq_dev) = opl3; |
520 | } | 520 | } |
521 | #endif | 521 | #endif |
522 | if (rhwdep) | 522 | if (rhwdep) |