diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 09:01:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:16 -0500 |
commit | 67b48b880062ba1775f424c2dd2c68bc30ec180f (patch) | |
tree | 32a39285a55e57cecb773ee92bff82322faaf33a /sound/pci/mixart/mixart.h | |
parent | fcfd3332e3bf5f63116044c168110820996cd1fe (diff) |
[ALSA] Remove xxx_t typedefs: PCI miXart
Modules: MIXART driver
Remove xxx_t typedefs from the PCI miXart driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/mixart/mixart.h')
-rw-r--r-- | sound/pci/mixart/mixart.h | 69 |
1 files changed, 27 insertions, 42 deletions
diff --git a/sound/pci/mixart/mixart.h b/sound/pci/mixart/mixart.h index f87152f94c0e..3e84863ca02c 100644 --- a/sound/pci/mixart/mixart.h +++ b/sound/pci/mixart/mixart.h | |||
@@ -32,21 +32,7 @@ | |||
32 | /* | 32 | /* |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #define mixart_t_magic 0xa17a3e01 | 35 | struct mixart_uid { |
36 | #define mixart_mgr_t_magic 0xa17a3e02 | ||
37 | |||
38 | typedef struct snd_mixart mixart_t; | ||
39 | typedef struct snd_mixart_mgr mixart_mgr_t; | ||
40 | |||
41 | typedef struct snd_mixart_stream mixart_stream_t; | ||
42 | typedef struct snd_mixart_pipe mixart_pipe_t; | ||
43 | |||
44 | typedef struct mixart_bufferinfo mixart_bufferinfo_t; | ||
45 | typedef struct mixart_flowinfo mixart_flowinfo_t; | ||
46 | typedef struct mixart_uid mixart_uid_t; | ||
47 | |||
48 | struct mixart_uid | ||
49 | { | ||
50 | u32 object_id; | 36 | u32 object_id; |
51 | u32 desc; | 37 | u32 desc; |
52 | }; | 38 | }; |
@@ -58,7 +44,6 @@ struct mem_area { | |||
58 | }; | 44 | }; |
59 | 45 | ||
60 | 46 | ||
61 | typedef struct mixart_route mixart_route_t; | ||
62 | struct mixart_route { | 47 | struct mixart_route { |
63 | unsigned char connected; | 48 | unsigned char connected; |
64 | unsigned char phase_inv; | 49 | unsigned char phase_inv; |
@@ -77,9 +62,9 @@ struct mixart_route { | |||
77 | 62 | ||
78 | #define MIXART_MAX_PHYS_CONNECTORS (MIXART_MAX_CARDS * 2 * 2) /* 4 * stereo * (analog+digital) */ | 63 | #define MIXART_MAX_PHYS_CONNECTORS (MIXART_MAX_CARDS * 2 * 2) /* 4 * stereo * (analog+digital) */ |
79 | 64 | ||
80 | struct snd_mixart_mgr { | 65 | struct mixart_mgr { |
81 | unsigned int num_cards; | 66 | unsigned int num_cards; |
82 | mixart_t *chip[MIXART_MAX_CARDS]; | 67 | struct snd_mixart *chip[MIXART_MAX_CARDS]; |
83 | 68 | ||
84 | struct pci_dev *pci; | 69 | struct pci_dev *pci; |
85 | 70 | ||
@@ -118,7 +103,7 @@ struct snd_mixart_mgr { | |||
118 | struct snd_dma_buffer flowinfo; | 103 | struct snd_dma_buffer flowinfo; |
119 | struct snd_dma_buffer bufferinfo; | 104 | struct snd_dma_buffer bufferinfo; |
120 | 105 | ||
121 | mixart_uid_t uid_console_manager; | 106 | struct mixart_uid uid_console_manager; |
122 | int sample_rate; | 107 | int sample_rate; |
123 | int ref_count_rate; | 108 | int ref_count_rate; |
124 | 109 | ||
@@ -151,9 +136,9 @@ struct snd_mixart_mgr { | |||
151 | #define MIXART_NOTIFY_SUBS_MASK 0x007F | 136 | #define MIXART_NOTIFY_SUBS_MASK 0x007F |
152 | 137 | ||
153 | 138 | ||
154 | struct snd_mixart_stream { | 139 | struct mixart_stream { |
155 | snd_pcm_substream_t *substream; | 140 | struct snd_pcm_substream *substream; |
156 | mixart_pipe_t *pipe; | 141 | struct mixart_pipe *pipe; |
157 | int pcm_number; | 142 | int pcm_number; |
158 | 143 | ||
159 | int status; /* nothing, running, draining */ | 144 | int status; /* nothing, running, draining */ |
@@ -173,11 +158,11 @@ enum mixart_pipe_status { | |||
173 | PIPE_CLOCK_SET | 158 | PIPE_CLOCK_SET |
174 | }; | 159 | }; |
175 | 160 | ||
176 | struct snd_mixart_pipe { | 161 | struct mixart_pipe { |
177 | mixart_uid_t group_uid; /* id of the pipe, as returned by embedded */ | 162 | struct mixart_uid group_uid; /* id of the pipe, as returned by embedded */ |
178 | int stream_count; | 163 | int stream_count; |
179 | mixart_uid_t uid_left_connector; /* UID's for the audio connectors */ | 164 | struct mixart_uid uid_left_connector; /* UID's for the audio connectors */ |
180 | mixart_uid_t uid_right_connector; | 165 | struct mixart_uid uid_right_connector; |
181 | enum mixart_pipe_status status; | 166 | enum mixart_pipe_status status; |
182 | int references; /* number of subs openned */ | 167 | int references; /* number of subs openned */ |
183 | int monitoring; /* pipe used for monitoring issue */ | 168 | int monitoring; /* pipe used for monitoring issue */ |
@@ -185,28 +170,28 @@ struct snd_mixart_pipe { | |||
185 | 170 | ||
186 | 171 | ||
187 | struct snd_mixart { | 172 | struct snd_mixart { |
188 | snd_card_t *card; | 173 | struct snd_card *card; |
189 | mixart_mgr_t *mgr; | 174 | struct mixart_mgr *mgr; |
190 | int chip_idx; /* zero based */ | 175 | int chip_idx; /* zero based */ |
191 | snd_hwdep_t *hwdep; /* DSP loader, only for the first card */ | 176 | struct snd_hwdep *hwdep; /* DSP loader, only for the first card */ |
192 | 177 | ||
193 | snd_pcm_t *pcm; /* PCM analog i/o */ | 178 | struct snd_pcm *pcm; /* PCM analog i/o */ |
194 | snd_pcm_t *pcm_dig; /* PCM digital i/o */ | 179 | struct snd_pcm *pcm_dig; /* PCM digital i/o */ |
195 | 180 | ||
196 | /* allocate stereo pipe for instance */ | 181 | /* allocate stereo pipe for instance */ |
197 | mixart_pipe_t pipe_in_ana; | 182 | struct mixart_pipe pipe_in_ana; |
198 | mixart_pipe_t pipe_out_ana; | 183 | struct mixart_pipe pipe_out_ana; |
199 | 184 | ||
200 | /* if AES/EBU daughter board is available, additional pipes possible on pcm_dig */ | 185 | /* if AES/EBU daughter board is available, additional pipes possible on pcm_dig */ |
201 | mixart_pipe_t pipe_in_dig; | 186 | struct mixart_pipe pipe_in_dig; |
202 | mixart_pipe_t pipe_out_dig; | 187 | struct mixart_pipe pipe_out_dig; |
203 | 188 | ||
204 | mixart_stream_t playback_stream[MIXART_PCM_TOTAL][MIXART_PLAYBACK_STREAMS]; /* 0 = pcm, 1 = pcm_dig */ | 189 | struct mixart_stream playback_stream[MIXART_PCM_TOTAL][MIXART_PLAYBACK_STREAMS]; /* 0 = pcm, 1 = pcm_dig */ |
205 | mixart_stream_t capture_stream[MIXART_PCM_TOTAL]; /* 0 = pcm, 1 = pcm_dig */ | 190 | struct mixart_stream capture_stream[MIXART_PCM_TOTAL]; /* 0 = pcm, 1 = pcm_dig */ |
206 | 191 | ||
207 | /* UID's for the physical io's */ | 192 | /* UID's for the physical io's */ |
208 | mixart_uid_t uid_out_analog_physio; | 193 | struct mixart_uid uid_out_analog_physio; |
209 | mixart_uid_t uid_in_analog_physio; | 194 | struct mixart_uid uid_in_analog_physio; |
210 | 195 | ||
211 | int analog_playback_active[2]; /* Mixer : Master Playback active (!mute) */ | 196 | int analog_playback_active[2]; /* Mixer : Master Playback active (!mute) */ |
212 | int analog_playback_volume[2]; /* Mixer : Master Playback Volume */ | 197 | int analog_playback_volume[2]; /* Mixer : Master Playback Volume */ |
@@ -235,8 +220,8 @@ struct mixart_flowinfo | |||
235 | }; | 220 | }; |
236 | 221 | ||
237 | /* exported */ | 222 | /* exported */ |
238 | int snd_mixart_create_pcm(mixart_t* chip); | 223 | int snd_mixart_create_pcm(struct snd_mixart * chip); |
239 | mixart_pipe_t* snd_mixart_add_ref_pipe( mixart_t *chip, int pcm_number, int capture, int monitoring); | 224 | struct mixart_pipe *snd_mixart_add_ref_pipe(struct snd_mixart *chip, int pcm_number, int capture, int monitoring); |
240 | int snd_mixart_kill_ref_pipe( mixart_mgr_t *mgr, mixart_pipe_t *pipe, int monitoring); | 225 | int snd_mixart_kill_ref_pipe(struct mixart_mgr *mgr, struct mixart_pipe *pipe, int monitoring); |
241 | 226 | ||
242 | #endif /* __SOUND_MIXART_H */ | 227 | #endif /* __SOUND_MIXART_H */ |