diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:56:21 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:04 -0500 |
commit | 66f8df6bdd388d209c38197785148c994c8a738d (patch) | |
tree | ce3354130f1e18089066f82325c008ebc3d956af /sound/pci/cs5535audio/cs5535audio.h | |
parent | d1fabd9cbc2f17b525a39adc16331443dddbb15b (diff) |
[ALSA] Remove xxx_t typedefs: PCI CS5535
Modules: CS5535 driver
Remove xxx_t typedefs from the PCI CS5535 driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.h')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h index 774185e026d4..5e55a1a1ed65 100644 --- a/sound/pci/cs5535audio/cs5535audio.h +++ b/sound/pci/cs5535audio/cs5535audio.h | |||
@@ -78,46 +78,46 @@ | |||
78 | #define PRD_EOP 0x4000 | 78 | #define PRD_EOP 0x4000 |
79 | #define PRD_EOT 0x8000 | 79 | #define PRD_EOT 0x8000 |
80 | 80 | ||
81 | typedef struct _snd_cs5535audio cs5535audio_t; | ||
82 | typedef struct snd_cs5535audio_dma cs5535audio_dma_t; | ||
83 | typedef struct snd_cs5535audio_dma_ops cs5535audio_dma_ops_t; | ||
84 | |||
85 | enum { CS5535AUDIO_DMA_PLAYBACK, CS5535AUDIO_DMA_CAPTURE, NUM_CS5535AUDIO_DMAS }; | 81 | enum { CS5535AUDIO_DMA_PLAYBACK, CS5535AUDIO_DMA_CAPTURE, NUM_CS5535AUDIO_DMAS }; |
86 | struct snd_cs5535audio_dma_ops { | 82 | |
83 | struct cs5535audio; | ||
84 | |||
85 | struct cs5535audio_dma_ops { | ||
87 | int type; | 86 | int type; |
88 | void (*enable_dma)(cs5535audio_t *cs5535au); | 87 | void (*enable_dma)(struct cs5535audio *cs5535au); |
89 | void (*disable_dma)(cs5535audio_t *cs5535au); | 88 | void (*disable_dma)(struct cs5535audio *cs5535au); |
90 | void (*pause_dma)(cs5535audio_t *cs5535au); | 89 | void (*pause_dma)(struct cs5535audio *cs5535au); |
91 | void (*setup_prd)(cs5535audio_t *cs5535au, u32 prd_addr); | 90 | void (*setup_prd)(struct cs5535audio *cs5535au, u32 prd_addr); |
92 | u32 (*read_dma_pntr)(cs5535audio_t *cs5535au); | 91 | u32 (*read_dma_pntr)(struct cs5535audio *cs5535au); |
93 | }; | 92 | }; |
94 | 93 | ||
95 | typedef struct cs5535audio_dma_desc { | 94 | struct cs5535audio_dma_desc { |
96 | u32 addr; | 95 | u32 addr; |
97 | u16 size; | 96 | u16 size; |
98 | u16 ctlreserved; | 97 | u16 ctlreserved; |
99 | } cs5535audio_dma_desc_t; | 98 | }; |
100 | 99 | ||
101 | struct snd_cs5535audio_dma { | 100 | struct cs5535audio_dma { |
102 | const cs5535audio_dma_ops_t *ops; | 101 | const struct cs5535audio_dma_ops *ops; |
103 | struct snd_dma_buffer desc_buf; | 102 | struct snd_dma_buffer desc_buf; |
104 | snd_pcm_substream_t *substream; | 103 | struct snd_pcm_substream *substream; |
105 | unsigned int buf_addr, buf_bytes; | 104 | unsigned int buf_addr, buf_bytes; |
106 | unsigned int period_bytes, periods; | 105 | unsigned int period_bytes, periods; |
107 | }; | 106 | }; |
108 | 107 | ||
109 | struct _snd_cs5535audio { | 108 | struct cs5535audio { |
110 | snd_card_t *card; | 109 | struct snd_card *card; |
111 | ac97_t *ac97; | 110 | struct snd_ac97 *ac97; |
112 | int irq; | 111 | int irq; |
113 | struct pci_dev *pci; | 112 | struct pci_dev *pci; |
114 | unsigned long port; | 113 | unsigned long port; |
115 | spinlock_t reg_lock; | 114 | spinlock_t reg_lock; |
116 | snd_pcm_substream_t *playback_substream; | 115 | struct snd_pcm_substream *playback_substream; |
117 | snd_pcm_substream_t *capture_substream; | 116 | struct snd_pcm_substream *capture_substream; |
118 | cs5535audio_dma_t dmas[NUM_CS5535AUDIO_DMAS]; | 117 | struct cs5535audio_dma dmas[NUM_CS5535AUDIO_DMAS]; |
119 | }; | 118 | }; |
120 | 119 | ||
121 | int __devinit snd_cs5535audio_pcm(cs5535audio_t *cs5535audio); | 120 | int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); |
121 | |||
122 | #endif /* __SOUND_CS5535AUDIO_H */ | 122 | #endif /* __SOUND_CS5535AUDIO_H */ |
123 | 123 | ||