aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gus_mixer.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:36:44 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:27 -0500
commit5e2da20648e39a0e3cb33861499b686a6fe38112 (patch)
treee5f3117e2f44b262f9b6d45cfbd9e17a0ea913bd /sound/isa/gus/gus_mixer.c
parent029d64b0cfa30abc10f722e2f67d282abe09c9da (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.c28
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
39static int snd_gf1_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 39static 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
48static int snd_gf1_get_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 48static 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
60static int snd_gf1_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 60static 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
89static int snd_ics_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) 89static 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
98static int snd_ics_get_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 98static 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
114static int snd_ics_put_double(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 114static 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
149static snd_kcontrol_new_t snd_gf1_controls[] = { 149static struct snd_kcontrol_new snd_gf1_controls[] = {
150GF1_SINGLE("Master Playback Switch", 0, 1, 1), 150GF1_SINGLE("Master Playback Switch", 0, 1, 1),
151GF1_SINGLE("Line Switch", 0, 0, 1), 151GF1_SINGLE("Line Switch", 0, 0, 1),
152GF1_SINGLE("Mic Switch", 0, 2, 0) 152GF1_SINGLE("Mic Switch", 0, 2, 0)
153}; 153};
154 154
155static snd_kcontrol_new_t snd_ics_controls[] = { 155static struct snd_kcontrol_new snd_ics_controls[] = {
156GF1_SINGLE("Master Playback Switch", 0, 1, 1), 156GF1_SINGLE("Master Playback Switch", 0, 1, 1),
157ICS_DOUBLE("Master Playback Volume", 0, SNDRV_ICS_MASTER_DEV), 157ICS_DOUBLE("Master Playback Volume", 0, SNDRV_ICS_MASTER_DEV),
158ICS_DOUBLE("Synth Playback Volume", 0, SNDRV_ICS_GF1_DEV), 158ICS_DOUBLE("Synth Playback Volume", 0, SNDRV_ICS_GF1_DEV),
@@ -163,9 +163,9 @@ ICS_DOUBLE("Mic Playback Volume", 0, SNDRV_ICS_MIC_DEV),
163ICS_DOUBLE("CD Playback Volume", 0, SNDRV_ICS_CD_DEV) 163ICS_DOUBLE("CD Playback Volume", 0, SNDRV_ICS_CD_DEV)
164}; 164};
165 165
166int snd_gf1_new_mixer(snd_gus_card_t * gus) 166int 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