diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 09:09:46 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:20:00 -0500 |
commit | 65b29f5039b38a5854b5e12238b0688a33e235cc (patch) | |
tree | bcbb2986d8a6b247387c0f7516c8f43dddeaf07c /sound/ppc/toonie.c | |
parent | bbe85bbd02b2220c819ad1e33c9d6327131ad281 (diff) |
[ALSA] Remove xxx_t typedefs: PowerMac
Remove xxx_t typedefs from the PowerMac driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc/toonie.c')
-rw-r--r-- | sound/ppc/toonie.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/ppc/toonie.c b/sound/ppc/toonie.c index 082bc4babab5..053b8f24e4dc 100644 --- a/sound/ppc/toonie.c +++ b/sound/ppc/toonie.c | |||
@@ -101,10 +101,10 @@ static int read_audio_gpio(struct pmac_gpio *gp) | |||
101 | 101 | ||
102 | enum { TOONIE_MUTE_HP, TOONIE_MUTE_AMP }; | 102 | enum { TOONIE_MUTE_HP, TOONIE_MUTE_AMP }; |
103 | 103 | ||
104 | static int toonie_get_mute_switch(snd_kcontrol_t *kcontrol, | 104 | static int toonie_get_mute_switch(struct snd_kcontrol *kcontrol, |
105 | snd_ctl_elem_value_t *ucontrol) | 105 | struct snd_ctl_elem_value *ucontrol) |
106 | { | 106 | { |
107 | pmac_t *chip = snd_kcontrol_chip(kcontrol); | 107 | struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); |
108 | struct pmac_toonie *mix = chip->mixer_data; | 108 | struct pmac_toonie *mix = chip->mixer_data; |
109 | struct pmac_gpio *gp; | 109 | struct pmac_gpio *gp; |
110 | 110 | ||
@@ -124,10 +124,10 @@ static int toonie_get_mute_switch(snd_kcontrol_t *kcontrol, | |||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
126 | 126 | ||
127 | static int toonie_put_mute_switch(snd_kcontrol_t *kcontrol, | 127 | static int toonie_put_mute_switch(struct snd_kcontrol *kcontrol, |
128 | snd_ctl_elem_value_t *ucontrol) | 128 | struct snd_ctl_elem_value *ucontrol) |
129 | { | 129 | { |
130 | pmac_t *chip = snd_kcontrol_chip(kcontrol); | 130 | struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); |
131 | struct pmac_toonie *mix = chip->mixer_data; | 131 | struct pmac_toonie *mix = chip->mixer_data; |
132 | struct pmac_gpio *gp; | 132 | struct pmac_gpio *gp; |
133 | int val; | 133 | int val; |
@@ -156,7 +156,7 @@ static int toonie_put_mute_switch(snd_kcontrol_t *kcontrol, | |||
156 | return 0; | 156 | return 0; |
157 | } | 157 | } |
158 | 158 | ||
159 | static snd_kcontrol_new_t toonie_hp_sw __initdata = { | 159 | static struct snd_kcontrol_new toonie_hp_sw __initdata = { |
160 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 160 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
161 | .name = "Headphone Playback Switch", | 161 | .name = "Headphone Playback Switch", |
162 | .info = snd_pmac_boolean_mono_info, | 162 | .info = snd_pmac_boolean_mono_info, |
@@ -164,7 +164,7 @@ static snd_kcontrol_new_t toonie_hp_sw __initdata = { | |||
164 | .put = toonie_put_mute_switch, | 164 | .put = toonie_put_mute_switch, |
165 | .private_value = TOONIE_MUTE_HP, | 165 | .private_value = TOONIE_MUTE_HP, |
166 | }; | 166 | }; |
167 | static snd_kcontrol_new_t toonie_speaker_sw __initdata = { | 167 | static struct snd_kcontrol_new toonie_speaker_sw __initdata = { |
168 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 168 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
169 | .name = "PC Speaker Playback Switch", | 169 | .name = "PC Speaker Playback Switch", |
170 | .info = snd_pmac_boolean_mono_info, | 170 | .info = snd_pmac_boolean_mono_info, |
@@ -176,7 +176,7 @@ static snd_kcontrol_new_t toonie_speaker_sw __initdata = { | |||
176 | /* | 176 | /* |
177 | * auto-mute stuffs | 177 | * auto-mute stuffs |
178 | */ | 178 | */ |
179 | static int toonie_detect_headphone(pmac_t *chip) | 179 | static int toonie_detect_headphone(struct snd_pmac *chip) |
180 | { | 180 | { |
181 | struct pmac_toonie *mix = chip->mixer_data; | 181 | struct pmac_toonie *mix = chip->mixer_data; |
182 | int detect = 0; | 182 | int detect = 0; |
@@ -186,8 +186,8 @@ static int toonie_detect_headphone(pmac_t *chip) | |||
186 | return detect; | 186 | return detect; |
187 | } | 187 | } |
188 | 188 | ||
189 | static void toonie_check_mute(pmac_t *chip, struct pmac_gpio *gp, int val, | 189 | static void toonie_check_mute(struct snd_pmac *chip, struct pmac_gpio *gp, int val, |
190 | int do_notify, snd_kcontrol_t *sw) | 190 | int do_notify, struct snd_kcontrol *sw) |
191 | { | 191 | { |
192 | if (check_audio_gpio(gp) != val) { | 192 | if (check_audio_gpio(gp) != val) { |
193 | write_audio_gpio(gp, val); | 193 | write_audio_gpio(gp, val); |
@@ -199,7 +199,7 @@ static void toonie_check_mute(pmac_t *chip, struct pmac_gpio *gp, int val, | |||
199 | 199 | ||
200 | static void toonie_detect_handler(void *self) | 200 | static void toonie_detect_handler(void *self) |
201 | { | 201 | { |
202 | pmac_t *chip = (pmac_t*) self; | 202 | struct snd_pmac *chip = (struct snd_pmac *) self; |
203 | struct pmac_toonie *mix; | 203 | struct pmac_toonie *mix; |
204 | int headphone; | 204 | int headphone; |
205 | 205 | ||
@@ -232,7 +232,7 @@ static void toonie_detect_handler(void *self) | |||
232 | } | 232 | } |
233 | } | 233 | } |
234 | 234 | ||
235 | static void toonie_update_automute(pmac_t *chip, int do_notify) | 235 | static void toonie_update_automute(struct snd_pmac *chip, int do_notify) |
236 | { | 236 | { |
237 | if (chip->auto_mute) { | 237 | if (chip->auto_mute) { |
238 | struct pmac_toonie *mix; | 238 | struct pmac_toonie *mix; |
@@ -246,7 +246,7 @@ static void toonie_update_automute(pmac_t *chip, int do_notify) | |||
246 | /* interrupt - headphone plug changed */ | 246 | /* interrupt - headphone plug changed */ |
247 | static irqreturn_t toonie_hp_intr(int irq, void *devid, struct pt_regs *regs) | 247 | static irqreturn_t toonie_hp_intr(int irq, void *devid, struct pt_regs *regs) |
248 | { | 248 | { |
249 | pmac_t *chip = devid; | 249 | struct snd_pmac *chip = devid; |
250 | 250 | ||
251 | if (chip->update_automute && chip->initialized) { | 251 | if (chip->update_automute && chip->initialized) { |
252 | chip->update_automute(chip, 1); | 252 | chip->update_automute(chip, 1); |
@@ -325,7 +325,7 @@ static int find_audio_gpio(const char *name, const char *platform, | |||
325 | return (np->n_intrs > 0) ? np->intrs[0].line : 0; | 325 | return (np->n_intrs > 0) ? np->intrs[0].line : 0; |
326 | } | 326 | } |
327 | 327 | ||
328 | static void toonie_cleanup(pmac_t *chip) | 328 | static void toonie_cleanup(struct snd_pmac *chip) |
329 | { | 329 | { |
330 | struct pmac_toonie *mix = chip->mixer_data; | 330 | struct pmac_toonie *mix = chip->mixer_data; |
331 | if (! mix) | 331 | if (! mix) |
@@ -336,7 +336,7 @@ static void toonie_cleanup(pmac_t *chip) | |||
336 | chip->mixer_data = NULL; | 336 | chip->mixer_data = NULL; |
337 | } | 337 | } |
338 | 338 | ||
339 | int snd_pmac_toonie_init(pmac_t *chip) | 339 | int snd_pmac_toonie_init(struct snd_pmac *chip) |
340 | { | 340 | { |
341 | struct pmac_toonie *mix; | 341 | struct pmac_toonie *mix; |
342 | 342 | ||