diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 09:01:46 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:20 -0500 |
commit | 02c2de69d0bb0ed39b413188241beb4a29d05378 (patch) | |
tree | 90c3b19b785e9fc27ffd1d9a62ada1c93902813b /sound/pci/ad1889.c | |
parent | 10754f53450a2c2aababe69f20edd7d2077e588d (diff) |
[ALSA] Remove xxx_t typedefs: PCI AD1889
Modules: AD1889 driver
Remove xxx_t typedefs from the PCI AD1889 driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ad1889.c')
-rw-r--r-- | sound/pci/ad1889.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index 999aaeae3fff..61d6d5236338 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -87,20 +87,20 @@ struct ad1889_register_state { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | struct snd_ad1889 { | 89 | struct snd_ad1889 { |
90 | snd_card_t *card; | 90 | struct snd_card *card; |
91 | struct pci_dev *pci; | 91 | struct pci_dev *pci; |
92 | 92 | ||
93 | int irq; | 93 | int irq; |
94 | unsigned long bar; | 94 | unsigned long bar; |
95 | void __iomem *iobase; | 95 | void __iomem *iobase; |
96 | 96 | ||
97 | ac97_t *ac97; | 97 | struct snd_ac97 *ac97; |
98 | ac97_bus_t *ac97_bus; | 98 | struct snd_ac97_bus *ac97_bus; |
99 | snd_pcm_t *pcm; | 99 | struct snd_pcm *pcm; |
100 | snd_info_entry_t *proc; | 100 | struct snd_info_entry *proc; |
101 | 101 | ||
102 | snd_pcm_substream_t *psubs; | 102 | struct snd_pcm_substream *psubs; |
103 | snd_pcm_substream_t *csubs; | 103 | struct snd_pcm_substream *csubs; |
104 | 104 | ||
105 | /* playback register state */ | 105 | /* playback register state */ |
106 | struct ad1889_register_state wave; | 106 | struct ad1889_register_state wave; |
@@ -241,14 +241,14 @@ ad1889_channel_reset(struct snd_ad1889 *chip, unsigned int channel) | |||
241 | } | 241 | } |
242 | 242 | ||
243 | static inline u16 | 243 | static inline u16 |
244 | snd_ad1889_ac97_read(ac97_t *ac97, unsigned short reg) | 244 | snd_ad1889_ac97_read(struct snd_ac97 *ac97, unsigned short reg) |
245 | { | 245 | { |
246 | struct snd_ad1889 *chip = ac97->private_data; | 246 | struct snd_ad1889 *chip = ac97->private_data; |
247 | return ad1889_readw(chip, AD_AC97_BASE + reg); | 247 | return ad1889_readw(chip, AD_AC97_BASE + reg); |
248 | } | 248 | } |
249 | 249 | ||
250 | static inline void | 250 | static inline void |
251 | snd_ad1889_ac97_write(ac97_t *ac97, unsigned short reg, unsigned short val) | 251 | snd_ad1889_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val) |
252 | { | 252 | { |
253 | struct snd_ad1889 *chip = ac97->private_data; | 253 | struct snd_ad1889 *chip = ac97->private_data; |
254 | ad1889_writew(chip, AD_AC97_BASE + reg, val); | 254 | ad1889_writew(chip, AD_AC97_BASE + reg, val); |
@@ -273,20 +273,20 @@ snd_ad1889_ac97_ready(struct snd_ad1889 *chip) | |||
273 | } | 273 | } |
274 | 274 | ||
275 | static int | 275 | static int |
276 | snd_ad1889_hw_params(snd_pcm_substream_t *substream, | 276 | snd_ad1889_hw_params(struct snd_pcm_substream *substream, |
277 | snd_pcm_hw_params_t *hw_params) | 277 | struct snd_pcm_hw_params *hw_params) |
278 | { | 278 | { |
279 | return snd_pcm_lib_malloc_pages(substream, | 279 | return snd_pcm_lib_malloc_pages(substream, |
280 | params_buffer_bytes(hw_params)); | 280 | params_buffer_bytes(hw_params)); |
281 | } | 281 | } |
282 | 282 | ||
283 | static int | 283 | static int |
284 | snd_ad1889_hw_free(snd_pcm_substream_t *substream) | 284 | snd_ad1889_hw_free(struct snd_pcm_substream *substream) |
285 | { | 285 | { |
286 | return snd_pcm_lib_free_pages(substream); | 286 | return snd_pcm_lib_free_pages(substream); |
287 | } | 287 | } |
288 | 288 | ||
289 | static snd_pcm_hardware_t snd_ad1889_playback_hw = { | 289 | static struct snd_pcm_hardware snd_ad1889_playback_hw = { |
290 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 290 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
291 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, | 291 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, |
292 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | 292 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
@@ -303,7 +303,7 @@ static snd_pcm_hardware_t snd_ad1889_playback_hw = { | |||
303 | /*.fifo_size = 0,*/ | 303 | /*.fifo_size = 0,*/ |
304 | }; | 304 | }; |
305 | 305 | ||
306 | static snd_pcm_hardware_t snd_ad1889_capture_hw = { | 306 | static struct snd_pcm_hardware snd_ad1889_capture_hw = { |
307 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 307 | .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
308 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, | 308 | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_BLOCK_TRANSFER, |
309 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | 309 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
@@ -321,10 +321,10 @@ static snd_pcm_hardware_t snd_ad1889_capture_hw = { | |||
321 | }; | 321 | }; |
322 | 322 | ||
323 | static int | 323 | static int |
324 | snd_ad1889_playback_open(snd_pcm_substream_t *ss) | 324 | snd_ad1889_playback_open(struct snd_pcm_substream *ss) |
325 | { | 325 | { |
326 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 326 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
327 | snd_pcm_runtime_t *rt = ss->runtime; | 327 | struct snd_pcm_runtime *rt = ss->runtime; |
328 | 328 | ||
329 | chip->psubs = ss; | 329 | chip->psubs = ss; |
330 | rt->hw = snd_ad1889_playback_hw; | 330 | rt->hw = snd_ad1889_playback_hw; |
@@ -333,10 +333,10 @@ snd_ad1889_playback_open(snd_pcm_substream_t *ss) | |||
333 | } | 333 | } |
334 | 334 | ||
335 | static int | 335 | static int |
336 | snd_ad1889_capture_open(snd_pcm_substream_t *ss) | 336 | snd_ad1889_capture_open(struct snd_pcm_substream *ss) |
337 | { | 337 | { |
338 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 338 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
339 | snd_pcm_runtime_t *rt = ss->runtime; | 339 | struct snd_pcm_runtime *rt = ss->runtime; |
340 | 340 | ||
341 | chip->csubs = ss; | 341 | chip->csubs = ss; |
342 | rt->hw = snd_ad1889_capture_hw; | 342 | rt->hw = snd_ad1889_capture_hw; |
@@ -345,7 +345,7 @@ snd_ad1889_capture_open(snd_pcm_substream_t *ss) | |||
345 | } | 345 | } |
346 | 346 | ||
347 | static int | 347 | static int |
348 | snd_ad1889_playback_close(snd_pcm_substream_t *ss) | 348 | snd_ad1889_playback_close(struct snd_pcm_substream *ss) |
349 | { | 349 | { |
350 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 350 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
351 | chip->psubs = NULL; | 351 | chip->psubs = NULL; |
@@ -353,7 +353,7 @@ snd_ad1889_playback_close(snd_pcm_substream_t *ss) | |||
353 | } | 353 | } |
354 | 354 | ||
355 | static int | 355 | static int |
356 | snd_ad1889_capture_close(snd_pcm_substream_t *ss) | 356 | snd_ad1889_capture_close(struct snd_pcm_substream *ss) |
357 | { | 357 | { |
358 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 358 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
359 | chip->csubs = NULL; | 359 | chip->csubs = NULL; |
@@ -361,10 +361,10 @@ snd_ad1889_capture_close(snd_pcm_substream_t *ss) | |||
361 | } | 361 | } |
362 | 362 | ||
363 | static int | 363 | static int |
364 | snd_ad1889_playback_prepare(snd_pcm_substream_t *ss) | 364 | snd_ad1889_playback_prepare(struct snd_pcm_substream *ss) |
365 | { | 365 | { |
366 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 366 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
367 | snd_pcm_runtime_t *rt = ss->runtime; | 367 | struct snd_pcm_runtime *rt = ss->runtime; |
368 | unsigned int size = snd_pcm_lib_buffer_bytes(ss); | 368 | unsigned int size = snd_pcm_lib_buffer_bytes(ss); |
369 | unsigned int count = snd_pcm_lib_period_bytes(ss); | 369 | unsigned int count = snd_pcm_lib_period_bytes(ss); |
370 | u16 reg; | 370 | u16 reg; |
@@ -411,10 +411,10 @@ snd_ad1889_playback_prepare(snd_pcm_substream_t *ss) | |||
411 | } | 411 | } |
412 | 412 | ||
413 | static int | 413 | static int |
414 | snd_ad1889_capture_prepare(snd_pcm_substream_t *ss) | 414 | snd_ad1889_capture_prepare(struct snd_pcm_substream *ss) |
415 | { | 415 | { |
416 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 416 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
417 | snd_pcm_runtime_t *rt = ss->runtime; | 417 | struct snd_pcm_runtime *rt = ss->runtime; |
418 | unsigned int size = snd_pcm_lib_buffer_bytes(ss); | 418 | unsigned int size = snd_pcm_lib_buffer_bytes(ss); |
419 | unsigned int count = snd_pcm_lib_period_bytes(ss); | 419 | unsigned int count = snd_pcm_lib_period_bytes(ss); |
420 | u16 reg; | 420 | u16 reg; |
@@ -462,7 +462,7 @@ snd_ad1889_capture_prepare(snd_pcm_substream_t *ss) | |||
462 | DMA should be *triggered* by this call. | 462 | DMA should be *triggered* by this call. |
463 | The WSMC "WAEN" bit triggers DMA Wave On/Off */ | 463 | The WSMC "WAEN" bit triggers DMA Wave On/Off */ |
464 | static int | 464 | static int |
465 | snd_ad1889_playback_trigger(snd_pcm_substream_t *ss, int cmd) | 465 | snd_ad1889_playback_trigger(struct snd_pcm_substream *ss, int cmd) |
466 | { | 466 | { |
467 | u16 wsmc; | 467 | u16 wsmc; |
468 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 468 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
@@ -503,7 +503,7 @@ snd_ad1889_playback_trigger(snd_pcm_substream_t *ss, int cmd) | |||
503 | DMA should be *triggered* by this call. | 503 | DMA should be *triggered* by this call. |
504 | The RAMC "ADEN" bit triggers DMA ADC On/Off */ | 504 | The RAMC "ADEN" bit triggers DMA ADC On/Off */ |
505 | static int | 505 | static int |
506 | snd_ad1889_capture_trigger(snd_pcm_substream_t *ss, int cmd) | 506 | snd_ad1889_capture_trigger(struct snd_pcm_substream *ss, int cmd) |
507 | { | 507 | { |
508 | u16 ramc; | 508 | u16 ramc; |
509 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 509 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
@@ -538,7 +538,7 @@ snd_ad1889_capture_trigger(snd_pcm_substream_t *ss, int cmd) | |||
538 | 538 | ||
539 | /* Called in atomic context with IRQ disabled */ | 539 | /* Called in atomic context with IRQ disabled */ |
540 | static snd_pcm_uframes_t | 540 | static snd_pcm_uframes_t |
541 | snd_ad1889_playback_pointer(snd_pcm_substream_t *ss) | 541 | snd_ad1889_playback_pointer(struct snd_pcm_substream *ss) |
542 | { | 542 | { |
543 | size_t ptr = 0; | 543 | size_t ptr = 0; |
544 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 544 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
@@ -556,7 +556,7 @@ snd_ad1889_playback_pointer(snd_pcm_substream_t *ss) | |||
556 | 556 | ||
557 | /* Called in atomic context with IRQ disabled */ | 557 | /* Called in atomic context with IRQ disabled */ |
558 | static snd_pcm_uframes_t | 558 | static snd_pcm_uframes_t |
559 | snd_ad1889_capture_pointer(snd_pcm_substream_t *ss) | 559 | snd_ad1889_capture_pointer(struct snd_pcm_substream *ss) |
560 | { | 560 | { |
561 | size_t ptr = 0; | 561 | size_t ptr = 0; |
562 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); | 562 | struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); |
@@ -572,7 +572,7 @@ snd_ad1889_capture_pointer(snd_pcm_substream_t *ss) | |||
572 | return bytes_to_frames(ss->runtime, ptr); | 572 | return bytes_to_frames(ss->runtime, ptr); |
573 | } | 573 | } |
574 | 574 | ||
575 | static snd_pcm_ops_t snd_ad1889_playback_ops = { | 575 | static struct snd_pcm_ops snd_ad1889_playback_ops = { |
576 | .open = snd_ad1889_playback_open, | 576 | .open = snd_ad1889_playback_open, |
577 | .close = snd_ad1889_playback_close, | 577 | .close = snd_ad1889_playback_close, |
578 | .ioctl = snd_pcm_lib_ioctl, | 578 | .ioctl = snd_pcm_lib_ioctl, |
@@ -583,7 +583,7 @@ static snd_pcm_ops_t snd_ad1889_playback_ops = { | |||
583 | .pointer = snd_ad1889_playback_pointer, | 583 | .pointer = snd_ad1889_playback_pointer, |
584 | }; | 584 | }; |
585 | 585 | ||
586 | static snd_pcm_ops_t snd_ad1889_capture_ops = { | 586 | static struct snd_pcm_ops snd_ad1889_capture_ops = { |
587 | .open = snd_ad1889_capture_open, | 587 | .open = snd_ad1889_capture_open, |
588 | .close = snd_ad1889_capture_close, | 588 | .close = snd_ad1889_capture_close, |
589 | .ioctl = snd_pcm_lib_ioctl, | 589 | .ioctl = snd_pcm_lib_ioctl, |
@@ -624,10 +624,10 @@ snd_ad1889_interrupt(int irq, | |||
624 | } | 624 | } |
625 | 625 | ||
626 | static int __devinit | 626 | static int __devinit |
627 | snd_ad1889_pcm_init(struct snd_ad1889 *chip, int device, snd_pcm_t **rpcm) | 627 | snd_ad1889_pcm_init(struct snd_ad1889 *chip, int device, struct snd_pcm **rpcm) |
628 | { | 628 | { |
629 | int err; | 629 | int err; |
630 | snd_pcm_t *pcm; | 630 | struct snd_pcm *pcm; |
631 | 631 | ||
632 | if (rpcm) | 632 | if (rpcm) |
633 | *rpcm = NULL; | 633 | *rpcm = NULL; |
@@ -666,7 +666,7 @@ snd_ad1889_pcm_init(struct snd_ad1889 *chip, int device, snd_pcm_t **rpcm) | |||
666 | } | 666 | } |
667 | 667 | ||
668 | static void | 668 | static void |
669 | snd_ad1889_proc_read(snd_info_entry_t *entry, snd_info_buffer_t *buffer) | 669 | snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) |
670 | { | 670 | { |
671 | struct snd_ad1889 *chip = entry->private_data; | 671 | struct snd_ad1889 *chip = entry->private_data; |
672 | u16 reg; | 672 | u16 reg; |
@@ -749,7 +749,7 @@ snd_ad1889_proc_read(snd_info_entry_t *entry, snd_info_buffer_t *buffer) | |||
749 | static void __devinit | 749 | static void __devinit |
750 | snd_ad1889_proc_init(struct snd_ad1889 *chip) | 750 | snd_ad1889_proc_init(struct snd_ad1889 *chip) |
751 | { | 751 | { |
752 | snd_info_entry_t *entry; | 752 | struct snd_info_entry *entry; |
753 | 753 | ||
754 | if (!snd_card_proc_new(chip->card, chip->card->driver, &entry)) | 754 | if (!snd_card_proc_new(chip->card, chip->card->driver, &entry)) |
755 | snd_info_set_text_ops(entry, chip, 1024, snd_ad1889_proc_read); | 755 | snd_info_set_text_ops(entry, chip, 1024, snd_ad1889_proc_read); |
@@ -791,14 +791,14 @@ snd_ad1889_ac97_xinit(struct snd_ad1889 *chip) | |||
791 | } | 791 | } |
792 | 792 | ||
793 | static void | 793 | static void |
794 | snd_ad1889_ac97_bus_free(ac97_bus_t *bus) | 794 | snd_ad1889_ac97_bus_free(struct snd_ac97_bus *bus) |
795 | { | 795 | { |
796 | struct snd_ad1889 *chip = bus->private_data; | 796 | struct snd_ad1889 *chip = bus->private_data; |
797 | chip->ac97_bus = NULL; | 797 | chip->ac97_bus = NULL; |
798 | } | 798 | } |
799 | 799 | ||
800 | static void | 800 | static void |
801 | snd_ad1889_ac97_free(ac97_t *ac97) | 801 | snd_ad1889_ac97_free(struct snd_ac97 *ac97) |
802 | { | 802 | { |
803 | struct snd_ad1889 *chip = ac97->private_data; | 803 | struct snd_ad1889 *chip = ac97->private_data; |
804 | chip->ac97 = NULL; | 804 | chip->ac97 = NULL; |
@@ -808,8 +808,8 @@ static int __devinit | |||
808 | snd_ad1889_ac97_init(struct snd_ad1889 *chip, const char *quirk_override) | 808 | snd_ad1889_ac97_init(struct snd_ad1889 *chip, const char *quirk_override) |
809 | { | 809 | { |
810 | int err; | 810 | int err; |
811 | ac97_template_t ac97; | 811 | struct snd_ac97_template ac97; |
812 | static ac97_bus_ops_t ops = { | 812 | static struct snd_ac97_bus_ops ops = { |
813 | .write = snd_ad1889_ac97_write, | 813 | .write = snd_ad1889_ac97_write, |
814 | .read = snd_ad1889_ac97_read, | 814 | .read = snd_ad1889_ac97_read, |
815 | }; | 815 | }; |
@@ -873,7 +873,7 @@ skip_hw: | |||
873 | } | 873 | } |
874 | 874 | ||
875 | static inline int | 875 | static inline int |
876 | snd_ad1889_dev_free(snd_device_t *device) | 876 | snd_ad1889_dev_free(struct snd_device *device) |
877 | { | 877 | { |
878 | struct snd_ad1889 *chip = device->device_data; | 878 | struct snd_ad1889 *chip = device->device_data; |
879 | return snd_ad1889_free(chip); | 879 | return snd_ad1889_free(chip); |
@@ -894,14 +894,14 @@ snd_ad1889_init(struct snd_ad1889 *chip) | |||
894 | } | 894 | } |
895 | 895 | ||
896 | static int __devinit | 896 | static int __devinit |
897 | snd_ad1889_create(snd_card_t *card, | 897 | snd_ad1889_create(struct snd_card *card, |
898 | struct pci_dev *pci, | 898 | struct pci_dev *pci, |
899 | struct snd_ad1889 **rchip) | 899 | struct snd_ad1889 **rchip) |
900 | { | 900 | { |
901 | int err; | 901 | int err; |
902 | 902 | ||
903 | struct snd_ad1889 *chip; | 903 | struct snd_ad1889 *chip; |
904 | static snd_device_ops_t ops = { | 904 | static struct snd_device_ops ops = { |
905 | .dev_free = snd_ad1889_dev_free, | 905 | .dev_free = snd_ad1889_dev_free, |
906 | }; | 906 | }; |
907 | 907 | ||
@@ -985,7 +985,7 @@ snd_ad1889_probe(struct pci_dev *pci, | |||
985 | { | 985 | { |
986 | int err; | 986 | int err; |
987 | static int devno; | 987 | static int devno; |
988 | snd_card_t *card; | 988 | struct snd_card *card; |
989 | struct snd_ad1889 *chip; | 989 | struct snd_ad1889 *chip; |
990 | 990 | ||
991 | /* (1) */ | 991 | /* (1) */ |