diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 09:00:18 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:13 -0500 |
commit | ab0c7d72c32d703d1a2833ce2a1920cd3b46b131 (patch) | |
tree | 6d5ed4991fd9b463fa929899af0ddf0cde158def /sound/pci/ice1712/prodigy192.c | |
parent | 6ca308d4edd51c4f34ffff94ae0bbf193087d89f (diff) |
[ALSA] Remove xxx_t typedefs: PCI ICE1724
Modules: ICE1724 driver,ICE1712 driver
Remove xxx_t typedefs from the PCI ICE1724 driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/prodigy192.c')
-rw-r--r-- | sound/pci/ice1712/prodigy192.c | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/sound/pci/ice1712/prodigy192.c b/sound/pci/ice1712/prodigy192.c index d2c5963795d7..fdb5cb8fac97 100644 --- a/sound/pci/ice1712/prodigy192.c +++ b/sound/pci/ice1712/prodigy192.c | |||
@@ -36,12 +36,12 @@ | |||
36 | #include "prodigy192.h" | 36 | #include "prodigy192.h" |
37 | #include "stac946x.h" | 37 | #include "stac946x.h" |
38 | 38 | ||
39 | static inline void stac9460_put(ice1712_t *ice, int reg, unsigned char val) | 39 | static inline void stac9460_put(struct snd_ice1712 *ice, int reg, unsigned char val) |
40 | { | 40 | { |
41 | snd_vt1724_write_i2c(ice, PRODIGY192_STAC9460_ADDR, reg, val); | 41 | snd_vt1724_write_i2c(ice, PRODIGY192_STAC9460_ADDR, reg, val); |
42 | } | 42 | } |
43 | 43 | ||
44 | static inline unsigned char stac9460_get(ice1712_t *ice, int reg) | 44 | static inline unsigned char stac9460_get(struct snd_ice1712 *ice, int reg) |
45 | { | 45 | { |
46 | return snd_vt1724_read_i2c(ice, PRODIGY192_STAC9460_ADDR, reg); | 46 | return snd_vt1724_read_i2c(ice, PRODIGY192_STAC9460_ADDR, reg); |
47 | } | 47 | } |
@@ -49,7 +49,7 @@ static inline unsigned char stac9460_get(ice1712_t *ice, int reg) | |||
49 | /* | 49 | /* |
50 | * DAC mute control | 50 | * DAC mute control |
51 | */ | 51 | */ |
52 | static int stac9460_dac_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 52 | static int stac9460_dac_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
53 | { | 53 | { |
54 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 54 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
55 | uinfo->count = 1; | 55 | uinfo->count = 1; |
@@ -58,9 +58,9 @@ static int stac9460_dac_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | static int stac9460_dac_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 61 | static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
62 | { | 62 | { |
63 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 63 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
64 | unsigned char val; | 64 | unsigned char val; |
65 | int idx; | 65 | int idx; |
66 | 66 | ||
@@ -73,9 +73,9 @@ static int stac9460_dac_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t | |||
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | 75 | ||
76 | static int stac9460_dac_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 76 | static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
77 | { | 77 | { |
78 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 78 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
79 | unsigned char new, old; | 79 | unsigned char new, old; |
80 | int idx; | 80 | int idx; |
81 | int change; | 81 | int change; |
@@ -96,7 +96,7 @@ static int stac9460_dac_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
96 | /* | 96 | /* |
97 | * DAC volume attenuation mixer control | 97 | * DAC volume attenuation mixer control |
98 | */ | 98 | */ |
99 | static int stac9460_dac_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) | 99 | static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
100 | { | 100 | { |
101 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; | 101 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; |
102 | uinfo->count = 1; | 102 | uinfo->count = 1; |
@@ -105,9 +105,9 @@ static int stac9460_dac_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * | |||
105 | return 0; | 105 | return 0; |
106 | } | 106 | } |
107 | 107 | ||
108 | static int stac9460_dac_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 108 | static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
109 | { | 109 | { |
110 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 110 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
111 | int idx; | 111 | int idx; |
112 | unsigned char vol; | 112 | unsigned char vol; |
113 | 113 | ||
@@ -121,9 +121,9 @@ static int stac9460_dac_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
121 | return 0; | 121 | return 0; |
122 | } | 122 | } |
123 | 123 | ||
124 | static int stac9460_dac_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 124 | static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
125 | { | 125 | { |
126 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 126 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
127 | int idx; | 127 | int idx; |
128 | unsigned char tmp, ovol, nvol; | 128 | unsigned char tmp, ovol, nvol; |
129 | int change; | 129 | int change; |
@@ -145,7 +145,7 @@ static int stac9460_dac_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
145 | /* | 145 | /* |
146 | * ADC mute control | 146 | * ADC mute control |
147 | */ | 147 | */ |
148 | static int stac9460_adc_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 148 | static int stac9460_adc_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
149 | { | 149 | { |
150 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 150 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
151 | uinfo->count = 2; | 151 | uinfo->count = 2; |
@@ -154,9 +154,9 @@ static int stac9460_adc_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t | |||
154 | return 0; | 154 | return 0; |
155 | } | 155 | } |
156 | 156 | ||
157 | static int stac9460_adc_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 157 | static int stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
158 | { | 158 | { |
159 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 159 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
160 | unsigned char val; | 160 | unsigned char val; |
161 | int i; | 161 | int i; |
162 | 162 | ||
@@ -168,9 +168,9 @@ static int stac9460_adc_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t | |||
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |
170 | 170 | ||
171 | static int stac9460_adc_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 171 | static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
172 | { | 172 | { |
173 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 173 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
174 | unsigned char new, old; | 174 | unsigned char new, old; |
175 | int i, reg; | 175 | int i, reg; |
176 | int change; | 176 | int change; |
@@ -190,7 +190,7 @@ static int stac9460_adc_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
190 | /* | 190 | /* |
191 | * ADC gain mixer control | 191 | * ADC gain mixer control |
192 | */ | 192 | */ |
193 | static int stac9460_adc_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) | 193 | static int stac9460_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
194 | { | 194 | { |
195 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; | 195 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; |
196 | uinfo->count = 2; | 196 | uinfo->count = 2; |
@@ -199,9 +199,9 @@ static int stac9460_adc_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * | |||
199 | return 0; | 199 | return 0; |
200 | } | 200 | } |
201 | 201 | ||
202 | static int stac9460_adc_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 202 | static int stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
203 | { | 203 | { |
204 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 204 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
205 | int i, reg; | 205 | int i, reg; |
206 | unsigned char vol; | 206 | unsigned char vol; |
207 | 207 | ||
@@ -214,9 +214,9 @@ static int stac9460_adc_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
214 | return 0; | 214 | return 0; |
215 | } | 215 | } |
216 | 216 | ||
217 | static int stac9460_adc_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 217 | static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
218 | { | 218 | { |
219 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 219 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
220 | int i, reg; | 220 | int i, reg; |
221 | unsigned char ovol, nvol; | 221 | unsigned char ovol, nvol; |
222 | int change; | 222 | int change; |
@@ -237,7 +237,7 @@ static int stac9460_adc_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
237 | /* | 237 | /* |
238 | * Headphone Amplifier | 238 | * Headphone Amplifier |
239 | */ | 239 | */ |
240 | static int aureon_set_headphone_amp(ice1712_t *ice, int enable) | 240 | static int aureon_set_headphone_amp(struct snd_ice1712 *ice, int enable) |
241 | { | 241 | { |
242 | unsigned int tmp, tmp2; | 242 | unsigned int tmp, tmp2; |
243 | 243 | ||
@@ -253,14 +253,14 @@ static int aureon_set_headphone_amp(ice1712_t *ice, int enable) | |||
253 | return 0; | 253 | return 0; |
254 | } | 254 | } |
255 | 255 | ||
256 | static int aureon_get_headphone_amp(ice1712_t *ice) | 256 | static int aureon_get_headphone_amp(struct snd_ice1712 *ice) |
257 | { | 257 | { |
258 | unsigned int tmp = snd_ice1712_gpio_read(ice); | 258 | unsigned int tmp = snd_ice1712_gpio_read(ice); |
259 | 259 | ||
260 | return ( tmp & AUREON_HP_SEL )!= 0; | 260 | return ( tmp & AUREON_HP_SEL )!= 0; |
261 | } | 261 | } |
262 | 262 | ||
263 | static int aureon_bool_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo) | 263 | static int aureon_bool_info(struct snd_kcontrol *k, struct snd_ctl_elem_info *uinfo) |
264 | { | 264 | { |
265 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 265 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
266 | uinfo->count = 1; | 266 | uinfo->count = 1; |
@@ -269,18 +269,18 @@ static int aureon_bool_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo) | |||
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
271 | 271 | ||
272 | static int aureon_hpamp_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 272 | static int aureon_hpamp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
273 | { | 273 | { |
274 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 274 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
275 | 275 | ||
276 | ucontrol->value.integer.value[0] = aureon_get_headphone_amp(ice); | 276 | ucontrol->value.integer.value[0] = aureon_get_headphone_amp(ice); |
277 | return 0; | 277 | return 0; |
278 | } | 278 | } |
279 | 279 | ||
280 | 280 | ||
281 | static int aureon_hpamp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 281 | static int aureon_hpamp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
282 | { | 282 | { |
283 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 283 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
284 | 284 | ||
285 | return aureon_set_headphone_amp(ice,ucontrol->value.integer.value[0]); | 285 | return aureon_set_headphone_amp(ice,ucontrol->value.integer.value[0]); |
286 | } | 286 | } |
@@ -288,16 +288,16 @@ static int aureon_hpamp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon | |||
288 | /* | 288 | /* |
289 | * Deemphasis | 289 | * Deemphasis |
290 | */ | 290 | */ |
291 | static int aureon_deemp_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 291 | static int aureon_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
292 | { | 292 | { |
293 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 293 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
294 | ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; | 294 | ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; |
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int aureon_deemp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 298 | static int aureon_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
299 | { | 299 | { |
300 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 300 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
301 | int temp, temp2; | 301 | int temp, temp2; |
302 | temp2 = temp = wm_get(ice, WM_DAC_CTRL2); | 302 | temp2 = temp = wm_get(ice, WM_DAC_CTRL2); |
303 | if (ucontrol->value.integer.value[0]) | 303 | if (ucontrol->value.integer.value[0]) |
@@ -314,7 +314,7 @@ static int aureon_deemp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon | |||
314 | /* | 314 | /* |
315 | * ADC Oversampling | 315 | * ADC Oversampling |
316 | */ | 316 | */ |
317 | static int aureon_oversampling_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo) | 317 | static int aureon_oversampling_info(struct snd_kcontrol *k, struct snd_ctl_elem_info *uinfo) |
318 | { | 318 | { |
319 | static char *texts[2] = { "128x", "64x" }; | 319 | static char *texts[2] = { "128x", "64x" }; |
320 | 320 | ||
@@ -329,17 +329,17 @@ static int aureon_oversampling_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinf | |||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
331 | 331 | ||
332 | static int aureon_oversampling_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 332 | static int aureon_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
333 | { | 333 | { |
334 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 334 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
335 | ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; | 335 | ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; |
336 | return 0; | 336 | return 0; |
337 | } | 337 | } |
338 | 338 | ||
339 | static int aureon_oversampling_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 339 | static int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
340 | { | 340 | { |
341 | int temp, temp2; | 341 | int temp, temp2; |
342 | ice1712_t *ice = snd_kcontrol_chip(kcontrol); | 342 | struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); |
343 | 343 | ||
344 | temp2 = temp = wm_get(ice, WM_MASTER); | 344 | temp2 = temp = wm_get(ice, WM_MASTER); |
345 | 345 | ||
@@ -360,7 +360,7 @@ static int aureon_oversampling_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_ | |||
360 | * mixers | 360 | * mixers |
361 | */ | 361 | */ |
362 | 362 | ||
363 | static snd_kcontrol_new_t stac_controls[] __devinitdata = { | 363 | static struct snd_kcontrol_new stac_controls[] __devinitdata = { |
364 | { | 364 | { |
365 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 365 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
366 | .name = "Master Playback Switch", | 366 | .name = "Master Playback Switch", |
@@ -442,7 +442,7 @@ static snd_kcontrol_new_t stac_controls[] __devinitdata = { | |||
442 | #endif | 442 | #endif |
443 | }; | 443 | }; |
444 | 444 | ||
445 | static int __devinit prodigy192_add_controls(ice1712_t *ice) | 445 | static int __devinit prodigy192_add_controls(struct snd_ice1712 *ice) |
446 | { | 446 | { |
447 | unsigned int i; | 447 | unsigned int i; |
448 | int err; | 448 | int err; |
@@ -459,7 +459,7 @@ static int __devinit prodigy192_add_controls(ice1712_t *ice) | |||
459 | /* | 459 | /* |
460 | * initialize the chip | 460 | * initialize the chip |
461 | */ | 461 | */ |
462 | static int __devinit prodigy192_init(ice1712_t *ice) | 462 | static int __devinit prodigy192_init(struct snd_ice1712 *ice) |
463 | { | 463 | { |
464 | static unsigned short stac_inits_prodigy[] = { | 464 | static unsigned short stac_inits_prodigy[] = { |
465 | STAC946X_RESET, 0, | 465 | STAC946X_RESET, 0, |