diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:36:44 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:18:27 -0500 |
commit | 5e2da20648e39a0e3cb33861499b686a6fe38112 (patch) | |
tree | e5f3117e2f44b262f9b6d45cfbd9e17a0ea913bd /sound/isa/gus/gus_mixer.c | |
parent | 029d64b0cfa30abc10f722e2f67d282abe09c9da (diff) |
[ALSA] Remove xxx_t typedefs: ISA GUS
Remove xxx_t typedefs from the ISA GUS drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus/gus_mixer.c')
-rw-r--r-- | sound/isa/gus/gus_mixer.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sound/isa/gus/gus_mixer.c b/sound/isa/gus/gus_mixer.c index a051094d510e..acc25a297200 100644 --- a/sound/isa/gus/gus_mixer.c +++ b/sound/isa/gus/gus_mixer.c | |||
@@ -36,7 +36,7 @@ | |||
36 | .get = snd_gf1_get_single, .put = snd_gf1_put_single, \ | 36 | .get = snd_gf1_get_single, .put = snd_gf1_put_single, \ |
37 | .private_value = shift | (invert << 8) } | 37 | .private_value = shift | (invert << 8) } |
38 | 38 | ||
39 | static int snd_gf1_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 39 | static int snd_gf1_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
40 | { | 40 | { |
41 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 41 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
42 | uinfo->count = 1; | 42 | uinfo->count = 1; |
@@ -45,9 +45,9 @@ static int snd_gf1_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * u | |||
45 | return 0; | 45 | return 0; |
46 | } | 46 | } |
47 | 47 | ||
48 | static int snd_gf1_get_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 48 | static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
49 | { | 49 | { |
50 | snd_gus_card_t *gus = snd_kcontrol_chip(kcontrol); | 50 | struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); |
51 | int shift = kcontrol->private_value & 0xff; | 51 | int shift = kcontrol->private_value & 0xff; |
52 | int invert = (kcontrol->private_value >> 8) & 1; | 52 | int invert = (kcontrol->private_value >> 8) & 1; |
53 | 53 | ||
@@ -57,9 +57,9 @@ static int snd_gf1_get_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * | |||
57 | return 0; | 57 | return 0; |
58 | } | 58 | } |
59 | 59 | ||
60 | static int snd_gf1_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 60 | static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
61 | { | 61 | { |
62 | snd_gus_card_t *gus = snd_kcontrol_chip(kcontrol); | 62 | struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); |
63 | unsigned long flags; | 63 | unsigned long flags; |
64 | int shift = kcontrol->private_value & 0xff; | 64 | int shift = kcontrol->private_value & 0xff; |
65 | int invert = (kcontrol->private_value >> 8) & 1; | 65 | int invert = (kcontrol->private_value >> 8) & 1; |
@@ -86,7 +86,7 @@ static int snd_gf1_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * | |||
86 | .get = snd_ics_get_double, .put = snd_ics_put_double, \ | 86 | .get = snd_ics_get_double, .put = snd_ics_put_double, \ |
87 | .private_value = addr } | 87 | .private_value = addr } |
88 | 88 | ||
89 | static int snd_ics_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 89 | static int snd_ics_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
90 | { | 90 | { |
91 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; | 91 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; |
92 | uinfo->count = 2; | 92 | uinfo->count = 2; |
@@ -95,9 +95,9 @@ static int snd_ics_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * u | |||
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | static int snd_ics_get_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 98 | static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
99 | { | 99 | { |
100 | snd_gus_card_t *gus = snd_kcontrol_chip(kcontrol); | 100 | struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); |
101 | unsigned long flags; | 101 | unsigned long flags; |
102 | int addr = kcontrol->private_value & 0xff; | 102 | int addr = kcontrol->private_value & 0xff; |
103 | unsigned char left, right; | 103 | unsigned char left, right; |
@@ -111,9 +111,9 @@ static int snd_ics_get_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * | |||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int snd_ics_put_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) | 114 | static int snd_ics_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
115 | { | 115 | { |
116 | snd_gus_card_t *gus = snd_kcontrol_chip(kcontrol); | 116 | struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); |
117 | unsigned long flags; | 117 | unsigned long flags; |
118 | int addr = kcontrol->private_value & 0xff; | 118 | int addr = kcontrol->private_value & 0xff; |
119 | int change; | 119 | int change; |
@@ -146,13 +146,13 @@ static int snd_ics_put_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * | |||
146 | return change; | 146 | return change; |
147 | } | 147 | } |
148 | 148 | ||
149 | static snd_kcontrol_new_t snd_gf1_controls[] = { | 149 | static struct snd_kcontrol_new snd_gf1_controls[] = { |
150 | GF1_SINGLE("Master Playback Switch", 0, 1, 1), | 150 | GF1_SINGLE("Master Playback Switch", 0, 1, 1), |
151 | GF1_SINGLE("Line Switch", 0, 0, 1), | 151 | GF1_SINGLE("Line Switch", 0, 0, 1), |
152 | GF1_SINGLE("Mic Switch", 0, 2, 0) | 152 | GF1_SINGLE("Mic Switch", 0, 2, 0) |
153 | }; | 153 | }; |
154 | 154 | ||
155 | static snd_kcontrol_new_t snd_ics_controls[] = { | 155 | static struct snd_kcontrol_new snd_ics_controls[] = { |
156 | GF1_SINGLE("Master Playback Switch", 0, 1, 1), | 156 | GF1_SINGLE("Master Playback Switch", 0, 1, 1), |
157 | ICS_DOUBLE("Master Playback Volume", 0, SNDRV_ICS_MASTER_DEV), | 157 | ICS_DOUBLE("Master Playback Volume", 0, SNDRV_ICS_MASTER_DEV), |
158 | ICS_DOUBLE("Synth Playback Volume", 0, SNDRV_ICS_GF1_DEV), | 158 | ICS_DOUBLE("Synth Playback Volume", 0, SNDRV_ICS_GF1_DEV), |
@@ -163,9 +163,9 @@ ICS_DOUBLE("Mic Playback Volume", 0, SNDRV_ICS_MIC_DEV), | |||
163 | ICS_DOUBLE("CD Playback Volume", 0, SNDRV_ICS_CD_DEV) | 163 | ICS_DOUBLE("CD Playback Volume", 0, SNDRV_ICS_CD_DEV) |
164 | }; | 164 | }; |
165 | 165 | ||
166 | int snd_gf1_new_mixer(snd_gus_card_t * gus) | 166 | int snd_gf1_new_mixer(struct snd_gus_card * gus) |
167 | { | 167 | { |
168 | snd_card_t *card; | 168 | struct snd_card *card; |
169 | unsigned int idx, max; | 169 | unsigned int idx, max; |
170 | int err; | 170 | int err; |
171 | 171 | ||