diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:34:36 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:25 -0500 |
commit | 029d64b0cfa30abc10f722e2f67d282abe09c9da (patch) | |
tree | d9a1e72e9792b33e57db2695f6c1a1a4843df0bf /sound/isa/sb/sb_mixer.c | |
parent | d3a7e476740dc23588ea65fa0df1aacdf8e70003 (diff) |
[ALSA] Remove xxx_t typedefs: ISA SB8/SB16/SBAWE
Remove xxx_t typedefs from the ISA SB8/SB16/SBAWE drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb/sb_mixer.c')
-rw-r--r-- | sound/isa/sb/sb_mixer.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/sound/isa/sb/sb_mixer.c b/sound/isa/sb/sb_mixer.c index 23cfa6a6a0af..6e0b935a8b85 100644 --- a/sound/isa/sb/sb_mixer.c +++ b/sound/isa/sb/sb_mixer.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #undef IO_DEBUG | 30 | #undef IO_DEBUG |
31 | 31 | ||
32 | void snd_sbmixer_write(sb_t *chip, unsigned char reg, unsigned char data) | 32 | void snd_sbmixer_write(struct snd_sb *chip, unsigned char reg, unsigned char data) |
33 | { | 33 | { |
34 | outb(reg, SBP(chip, MIXER_ADDR)); | 34 | outb(reg, SBP(chip, MIXER_ADDR)); |
35 | udelay(10); | 35 | udelay(10); |
@@ -40,7 +40,7 @@ void snd_sbmixer_write(sb_t *chip, unsigned char reg, unsigned char data) | |||
40 | #endif | 40 | #endif |
41 | } | 41 | } |
42 | 42 | ||
43 | unsigned char snd_sbmixer_read(sb_t *chip, unsigned char reg) | 43 | unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg) |
44 | { | 44 | { |
45 | unsigned char result; | 45 | unsigned char result; |
46 | 46 | ||
@@ -58,7 +58,7 @@ unsigned char snd_sbmixer_read(sb_t *chip, unsigned char reg) | |||
58 | * Single channel mixer element | 58 | * Single channel mixer element |
59 | */ | 59 | */ |
60 | 60 | ||
61 | static int snd_sbmixer_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 61 | static int snd_sbmixer_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
62 | { | 62 | { |
63 | int mask = (kcontrol->private_value >> 24) & 0xff; | 63 | int mask = (kcontrol->private_value >> 24) & 0xff; |
64 | 64 | ||
@@ -69,9 +69,9 @@ static int snd_sbmixer_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t | |||
69 | return 0; | 69 | return 0; |
70 | } | 70 | } |
71 | 71 | ||
72 | static int snd_sbmixer_get_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 72 | static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
73 | { | 73 | { |
74 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 74 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
75 | unsigned long flags; | 75 | unsigned long flags; |
76 | int reg = kcontrol->private_value & 0xff; | 76 | int reg = kcontrol->private_value & 0xff; |
77 | int shift = (kcontrol->private_value >> 16) & 0xff; | 77 | int shift = (kcontrol->private_value >> 16) & 0xff; |
@@ -85,9 +85,9 @@ static int snd_sbmixer_get_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_ | |||
85 | return 0; | 85 | return 0; |
86 | } | 86 | } |
87 | 87 | ||
88 | static int snd_sbmixer_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 88 | static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
89 | { | 89 | { |
90 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 90 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
91 | unsigned long flags; | 91 | unsigned long flags; |
92 | int reg = kcontrol->private_value & 0xff; | 92 | int reg = kcontrol->private_value & 0xff; |
93 | int shift = (kcontrol->private_value >> 16) & 0x07; | 93 | int shift = (kcontrol->private_value >> 16) & 0x07; |
@@ -110,7 +110,7 @@ static int snd_sbmixer_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_ | |||
110 | * Double channel mixer element | 110 | * Double channel mixer element |
111 | */ | 111 | */ |
112 | 112 | ||
113 | static int snd_sbmixer_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 113 | static int snd_sbmixer_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
114 | { | 114 | { |
115 | int mask = (kcontrol->private_value >> 24) & 0xff; | 115 | int mask = (kcontrol->private_value >> 24) & 0xff; |
116 | 116 | ||
@@ -121,9 +121,9 @@ static int snd_sbmixer_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t | |||
121 | return 0; | 121 | return 0; |
122 | } | 122 | } |
123 | 123 | ||
124 | static int snd_sbmixer_get_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 124 | static int snd_sbmixer_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
125 | { | 125 | { |
126 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 126 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
127 | unsigned long flags; | 127 | unsigned long flags; |
128 | int left_reg = kcontrol->private_value & 0xff; | 128 | int left_reg = kcontrol->private_value & 0xff; |
129 | int right_reg = (kcontrol->private_value >> 8) & 0xff; | 129 | int right_reg = (kcontrol->private_value >> 8) & 0xff; |
@@ -141,9 +141,9 @@ static int snd_sbmixer_get_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_ | |||
141 | return 0; | 141 | return 0; |
142 | } | 142 | } |
143 | 143 | ||
144 | static int snd_sbmixer_put_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 144 | static int snd_sbmixer_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
145 | { | 145 | { |
146 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 146 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
147 | unsigned long flags; | 147 | unsigned long flags; |
148 | int left_reg = kcontrol->private_value & 0xff; | 148 | int left_reg = kcontrol->private_value & 0xff; |
149 | int right_reg = (kcontrol->private_value >> 8) & 0xff; | 149 | int right_reg = (kcontrol->private_value >> 8) & 0xff; |
@@ -181,7 +181,7 @@ static int snd_sbmixer_put_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_ | |||
181 | * DT-019x / ALS-007 capture/input switch | 181 | * DT-019x / ALS-007 capture/input switch |
182 | */ | 182 | */ |
183 | 183 | ||
184 | static int snd_dt019x_input_sw_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 184 | static int snd_dt019x_input_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
185 | { | 185 | { |
186 | static char *texts[5] = { | 186 | static char *texts[5] = { |
187 | "CD", "Mic", "Line", "Synth", "Master" | 187 | "CD", "Mic", "Line", "Synth", "Master" |
@@ -196,9 +196,9 @@ static int snd_dt019x_input_sw_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_ | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | static int snd_dt019x_input_sw_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 199 | static int snd_dt019x_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
200 | { | 200 | { |
201 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 201 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
202 | unsigned long flags; | 202 | unsigned long flags; |
203 | unsigned char oval; | 203 | unsigned char oval; |
204 | 204 | ||
@@ -232,9 +232,9 @@ static int snd_dt019x_input_sw_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value | |||
232 | return 0; | 232 | return 0; |
233 | } | 233 | } |
234 | 234 | ||
235 | static int snd_dt019x_input_sw_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 235 | static int snd_dt019x_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
236 | { | 236 | { |
237 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 237 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
238 | unsigned long flags; | 238 | unsigned long flags; |
239 | int change; | 239 | int change; |
240 | unsigned char nval, oval; | 240 | unsigned char nval, oval; |
@@ -273,7 +273,7 @@ static int snd_dt019x_input_sw_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value | |||
273 | * SBPRO input multiplexer | 273 | * SBPRO input multiplexer |
274 | */ | 274 | */ |
275 | 275 | ||
276 | static int snd_sb8mixer_info_mux(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 276 | static int snd_sb8mixer_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
277 | { | 277 | { |
278 | static char *texts[3] = { | 278 | static char *texts[3] = { |
279 | "Mic", "CD", "Line" | 279 | "Mic", "CD", "Line" |
@@ -289,9 +289,9 @@ static int snd_sb8mixer_info_mux(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * | |||
289 | } | 289 | } |
290 | 290 | ||
291 | 291 | ||
292 | static int snd_sb8mixer_get_mux(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 292 | static int snd_sb8mixer_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
293 | { | 293 | { |
294 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 294 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
295 | unsigned long flags; | 295 | unsigned long flags; |
296 | unsigned char oval; | 296 | unsigned char oval; |
297 | 297 | ||
@@ -312,9 +312,9 @@ static int snd_sb8mixer_get_mux(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
312 | return 0; | 312 | return 0; |
313 | } | 313 | } |
314 | 314 | ||
315 | static int snd_sb8mixer_put_mux(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 315 | static int snd_sb8mixer_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
316 | { | 316 | { |
317 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 317 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
318 | unsigned long flags; | 318 | unsigned long flags; |
319 | int change; | 319 | int change; |
320 | unsigned char nval, oval; | 320 | unsigned char nval, oval; |
@@ -346,7 +346,7 @@ static int snd_sb8mixer_put_mux(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
346 | * SB16 input switch | 346 | * SB16 input switch |
347 | */ | 347 | */ |
348 | 348 | ||
349 | static int snd_sb16mixer_info_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t * uinfo) | 349 | static int snd_sb16mixer_info_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
350 | { | 350 | { |
351 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 351 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
352 | uinfo->count = 4; | 352 | uinfo->count = 4; |
@@ -355,9 +355,9 @@ static int snd_sb16mixer_info_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_i | |||
355 | return 0; | 355 | return 0; |
356 | } | 356 | } |
357 | 357 | ||
358 | static int snd_sb16mixer_get_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 358 | static int snd_sb16mixer_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
359 | { | 359 | { |
360 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 360 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
361 | unsigned long flags; | 361 | unsigned long flags; |
362 | int reg1 = kcontrol->private_value & 0xff; | 362 | int reg1 = kcontrol->private_value & 0xff; |
363 | int reg2 = (kcontrol->private_value >> 8) & 0xff; | 363 | int reg2 = (kcontrol->private_value >> 8) & 0xff; |
@@ -376,9 +376,9 @@ static int snd_sb16mixer_get_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_va | |||
376 | return 0; | 376 | return 0; |
377 | } | 377 | } |
378 | 378 | ||
379 | static int snd_sb16mixer_put_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 379 | static int snd_sb16mixer_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
380 | { | 380 | { |
381 | sb_t *sb = snd_kcontrol_chip(kcontrol); | 381 | struct snd_sb *sb = snd_kcontrol_chip(kcontrol); |
382 | unsigned long flags; | 382 | unsigned long flags; |
383 | int reg1 = kcontrol->private_value & 0xff; | 383 | int reg1 = kcontrol->private_value & 0xff; |
384 | int reg2 = (kcontrol->private_value >> 8) & 0xff; | 384 | int reg2 = (kcontrol->private_value >> 8) & 0xff; |
@@ -410,9 +410,9 @@ static int snd_sb16mixer_put_input_sw(snd_kcontrol_t * kcontrol, snd_ctl_elem_va | |||
410 | */ | 410 | */ |
411 | /* | 411 | /* |
412 | */ | 412 | */ |
413 | int snd_sbmixer_add_ctl(sb_t *chip, const char *name, int index, int type, unsigned long value) | 413 | int snd_sbmixer_add_ctl(struct snd_sb *chip, const char *name, int index, int type, unsigned long value) |
414 | { | 414 | { |
415 | static snd_kcontrol_new_t newctls[] = { | 415 | static struct snd_kcontrol_new newctls[] = { |
416 | [SB_MIX_SINGLE] = { | 416 | [SB_MIX_SINGLE] = { |
417 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 417 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
418 | .info = snd_sbmixer_info_single, | 418 | .info = snd_sbmixer_info_single, |
@@ -444,7 +444,7 @@ int snd_sbmixer_add_ctl(sb_t *chip, const char *name, int index, int type, unsig | |||
444 | .put = snd_dt019x_input_sw_put, | 444 | .put = snd_dt019x_input_sw_put, |
445 | }, | 445 | }, |
446 | }; | 446 | }; |
447 | snd_kcontrol_t *ctl; | 447 | struct snd_kcontrol *ctl; |
448 | int err; | 448 | int err; |
449 | 449 | ||
450 | ctl = snd_ctl_new1(&newctls[type], chip); | 450 | ctl = snd_ctl_new1(&newctls[type], chip); |
@@ -758,7 +758,7 @@ static unsigned char snd_als4000_init_values[][2] = { | |||
758 | 758 | ||
759 | /* | 759 | /* |
760 | */ | 760 | */ |
761 | static int snd_sbmixer_init(sb_t *chip, | 761 | static int snd_sbmixer_init(struct snd_sb *chip, |
762 | struct sbmix_elem **controls, | 762 | struct sbmix_elem **controls, |
763 | int controls_count, | 763 | int controls_count, |
764 | unsigned char map[][2], | 764 | unsigned char map[][2], |
@@ -766,7 +766,7 @@ static int snd_sbmixer_init(sb_t *chip, | |||
766 | char *name) | 766 | char *name) |
767 | { | 767 | { |
768 | unsigned long flags; | 768 | unsigned long flags; |
769 | snd_card_t *card = chip->card; | 769 | struct snd_card *card = chip->card; |
770 | int idx, err; | 770 | int idx, err; |
771 | 771 | ||
772 | /* mixer reset */ | 772 | /* mixer reset */ |
@@ -790,9 +790,9 @@ static int snd_sbmixer_init(sb_t *chip, | |||
790 | return 0; | 790 | return 0; |
791 | } | 791 | } |
792 | 792 | ||
793 | int snd_sbmixer_new(sb_t *chip) | 793 | int snd_sbmixer_new(struct snd_sb *chip) |
794 | { | 794 | { |
795 | snd_card_t * card; | 795 | struct snd_card *card; |
796 | int err; | 796 | int err; |
797 | 797 | ||
798 | snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); | 798 | snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); |