aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106/ca0106.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:55:40 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:19:01 -0500
commite4a3d145455159955d6ac1df976b2ed2a135b858 (patch)
tree71a0a4f0a71d07d153d32d88430f21ac4efcdde7 /sound/pci/ca0106/ca0106.h
parent2fd16874aa6322e8b61879a78f3b485999506833 (diff)
[ALSA] Remove xxx_t typedefs: PCI CA0106
Modules: CA0106 driver Remove xxx_t typedefs from the PCI CA0106 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ca0106/ca0106.h')
-rw-r--r--sound/pci/ca0106/ca0106.h54
1 files changed, 26 insertions, 28 deletions
diff --git a/sound/pci/ca0106/ca0106.h b/sound/pci/ca0106/ca0106.h
index 9a4b6406f7a5..7088317ec4ce 100644
--- a/sound/pci/ca0106/ca0106.h
+++ b/sound/pci/ca0106/ca0106.h
@@ -554,37 +554,35 @@
554 554
555#include "ca_midi.h" 555#include "ca_midi.h"
556 556
557typedef struct snd_ca0106_channel ca0106_channel_t; 557struct snd_ca0106;
558typedef struct snd_ca0106 ca0106_t;
559typedef struct snd_ca0106_pcm ca0106_pcm_t;
560 558
561struct snd_ca0106_channel { 559struct snd_ca0106_channel {
562 ca0106_t *emu; 560 struct snd_ca0106 *emu;
563 int number; 561 int number;
564 int use; 562 int use;
565 void (*interrupt)(ca0106_t *emu, ca0106_channel_t *channel); 563 void (*interrupt)(struct snd_ca0106 *emu, struct snd_ca0106_channel *channel);
566 ca0106_pcm_t *epcm; 564 struct snd_ca0106_pcm *epcm;
567}; 565};
568 566
569struct snd_ca0106_pcm { 567struct snd_ca0106_pcm {
570 ca0106_t *emu; 568 struct snd_ca0106 *emu;
571 snd_pcm_substream_t *substream; 569 struct snd_pcm_substream *substream;
572 int channel_id; 570 int channel_id;
573 unsigned short running; 571 unsigned short running;
574}; 572};
575 573
576typedef struct { 574struct snd_ca0106_details {
577 u32 serial; 575 u32 serial;
578 char * name; 576 char * name;
579 int ac97; 577 int ac97;
580 int gpio_type; 578 int gpio_type;
581 int i2c_adc; 579 int i2c_adc;
582} ca0106_details_t; 580};
583 581
584// definition of the chip-specific record 582// definition of the chip-specific record
585struct snd_ca0106 { 583struct snd_ca0106 {
586 snd_card_t *card; 584 struct snd_card *card;
587 ca0106_details_t *details; 585 struct snd_ca0106_details *details;
588 struct pci_dev *pci; 586 struct pci_dev *pci;
589 587
590 unsigned long port; 588 unsigned long port;
@@ -597,11 +595,11 @@ struct snd_ca0106 {
597 595
598 spinlock_t emu_lock; 596 spinlock_t emu_lock;
599 597
600 ac97_t *ac97; 598 struct snd_ac97 *ac97;
601 snd_pcm_t *pcm; 599 struct snd_pcm *pcm;
602 600
603 ca0106_channel_t playback_channels[4]; 601 struct snd_ca0106_channel playback_channels[4];
604 ca0106_channel_t capture_channels[4]; 602 struct snd_ca0106_channel capture_channels[4];
605 u32 spdif_bits[4]; /* s/pdif out setup */ 603 u32 spdif_bits[4]; /* s/pdif out setup */
606 int spdif_enable; 604 int spdif_enable;
607 int capture_source; 605 int capture_source;
@@ -609,22 +607,22 @@ struct snd_ca0106 {
609 607
610 struct snd_dma_buffer buffer; 608 struct snd_dma_buffer buffer;
611 609
612 ca_midi_t midi; 610 struct snd_ca_midi midi;
613 ca_midi_t midi2; 611 struct snd_ca_midi midi2;
614}; 612};
615 613
616int __devinit snd_ca0106_mixer(ca0106_t *emu); 614int snd_ca0106_mixer(struct snd_ca0106 *emu);
617int __devinit snd_ca0106_proc_init(ca0106_t * emu); 615int snd_ca0106_proc_init(struct snd_ca0106 * emu);
618 616
619unsigned int snd_ca0106_ptr_read(ca0106_t * emu, 617unsigned int snd_ca0106_ptr_read(struct snd_ca0106 * emu,
620 unsigned int reg, 618 unsigned int reg,
621 unsigned int chn); 619 unsigned int chn);
622 620
623void snd_ca0106_ptr_write(ca0106_t *emu, 621void snd_ca0106_ptr_write(struct snd_ca0106 *emu,
624 unsigned int reg, 622 unsigned int reg,
625 unsigned int chn, 623 unsigned int chn,
626 unsigned int data); 624 unsigned int data);
627 625
628int snd_ca0106_i2c_write(ca0106_t *emu, u32 reg, u32 value); 626int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
629 627
630 628