diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:59:52 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:11 -0500 |
commit | 6ca308d4edd51c4f34ffff94ae0bbf193087d89f (patch) | |
tree | 6bc0cb2ccacc6a4fd08cc35ecda4819e01f87af5 /sound/pci/ice1712/ak4xxx.c | |
parent | a98f90fd826913519c3f704ea24fb9bea1e0e494 (diff) |
[ALSA] Remove xxx_t typedefs: PCI ICE1712
Modules: ICE1712 driver
Remove xxx_t typedefs from the PCI ICE1712 driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/ak4xxx.c')
-rw-r--r-- | sound/pci/ice1712/ak4xxx.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/pci/ice1712/ak4xxx.c b/sound/pci/ice1712/ak4xxx.c index ae9dc029ba0d..ab00cce2c39f 100644 --- a/sound/pci/ice1712/ak4xxx.c +++ b/sound/pci/ice1712/ak4xxx.c | |||
@@ -34,16 +34,16 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | |||
34 | MODULE_DESCRIPTION("ICEnsemble ICE17xx <-> AK4xxx AD/DA chip interface"); | 34 | MODULE_DESCRIPTION("ICEnsemble ICE17xx <-> AK4xxx AD/DA chip interface"); |
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | 36 | ||
37 | static void snd_ice1712_akm4xxx_lock(akm4xxx_t *ak, int chip) | 37 | static void snd_ice1712_akm4xxx_lock(struct snd_akm4xxx *ak, int chip) |
38 | { | 38 | { |
39 | ice1712_t *ice = ak->private_data[0]; | 39 | struct snd_ice1712 *ice = ak->private_data[0]; |
40 | 40 | ||
41 | snd_ice1712_save_gpio_status(ice); | 41 | snd_ice1712_save_gpio_status(ice); |
42 | } | 42 | } |
43 | 43 | ||
44 | static void snd_ice1712_akm4xxx_unlock(akm4xxx_t *ak, int chip) | 44 | static void snd_ice1712_akm4xxx_unlock(struct snd_akm4xxx *ak, int chip) |
45 | { | 45 | { |
46 | ice1712_t *ice = ak->private_data[0]; | 46 | struct snd_ice1712 *ice = ak->private_data[0]; |
47 | 47 | ||
48 | snd_ice1712_restore_gpio_status(ice); | 48 | snd_ice1712_restore_gpio_status(ice); |
49 | } | 49 | } |
@@ -51,14 +51,14 @@ static void snd_ice1712_akm4xxx_unlock(akm4xxx_t *ak, int chip) | |||
51 | /* | 51 | /* |
52 | * write AK4xxx register | 52 | * write AK4xxx register |
53 | */ | 53 | */ |
54 | static void snd_ice1712_akm4xxx_write(akm4xxx_t *ak, int chip, | 54 | static void snd_ice1712_akm4xxx_write(struct snd_akm4xxx *ak, int chip, |
55 | unsigned char addr, unsigned char data) | 55 | unsigned char addr, unsigned char data) |
56 | { | 56 | { |
57 | unsigned int tmp; | 57 | unsigned int tmp; |
58 | int idx; | 58 | int idx; |
59 | unsigned int addrdata; | 59 | unsigned int addrdata; |
60 | struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; | 60 | struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; |
61 | ice1712_t *ice = ak->private_data[0]; | 61 | struct snd_ice1712 *ice = ak->private_data[0]; |
62 | 62 | ||
63 | snd_assert(chip >= 0 && chip < 4, return); | 63 | snd_assert(chip >= 0 && chip < 4, return); |
64 | 64 | ||
@@ -119,10 +119,10 @@ static void snd_ice1712_akm4xxx_write(akm4xxx_t *ak, int chip, | |||
119 | } | 119 | } |
120 | 120 | ||
121 | /* | 121 | /* |
122 | * initialize the akm4xxx_t record with the template | 122 | * initialize the struct snd_akm4xxx record with the template |
123 | */ | 123 | */ |
124 | int snd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp, | 124 | int snd_ice1712_akm4xxx_init(struct snd_akm4xxx *ak, const struct snd_akm4xxx *temp, |
125 | const struct snd_ak4xxx_private *_priv, ice1712_t *ice) | 125 | const struct snd_ak4xxx_private *_priv, struct snd_ice1712 *ice) |
126 | { | 126 | { |
127 | struct snd_ak4xxx_private *priv; | 127 | struct snd_ak4xxx_private *priv; |
128 | 128 | ||
@@ -148,13 +148,13 @@ int snd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp, | |||
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
150 | 150 | ||
151 | void snd_ice1712_akm4xxx_free(ice1712_t *ice) | 151 | void snd_ice1712_akm4xxx_free(struct snd_ice1712 *ice) |
152 | { | 152 | { |
153 | unsigned int akidx; | 153 | unsigned int akidx; |
154 | if (ice->akm == NULL) | 154 | if (ice->akm == NULL) |
155 | return; | 155 | return; |
156 | for (akidx = 0; akidx < ice->akm_codecs; akidx++) { | 156 | for (akidx = 0; akidx < ice->akm_codecs; akidx++) { |
157 | akm4xxx_t *ak = &ice->akm[akidx]; | 157 | struct snd_akm4xxx *ak = &ice->akm[akidx]; |
158 | kfree((void*)ak->private_value[0]); | 158 | kfree((void*)ak->private_value[0]); |
159 | } | 159 | } |
160 | kfree(ice->akm); | 160 | kfree(ice->akm); |
@@ -163,13 +163,13 @@ void snd_ice1712_akm4xxx_free(ice1712_t *ice) | |||
163 | /* | 163 | /* |
164 | * build AK4xxx controls | 164 | * build AK4xxx controls |
165 | */ | 165 | */ |
166 | int snd_ice1712_akm4xxx_build_controls(ice1712_t *ice) | 166 | int snd_ice1712_akm4xxx_build_controls(struct snd_ice1712 *ice) |
167 | { | 167 | { |
168 | unsigned int akidx; | 168 | unsigned int akidx; |
169 | int err; | 169 | int err; |
170 | 170 | ||
171 | for (akidx = 0; akidx < ice->akm_codecs; akidx++) { | 171 | for (akidx = 0; akidx < ice->akm_codecs; akidx++) { |
172 | akm4xxx_t *ak = &ice->akm[akidx]; | 172 | struct snd_akm4xxx *ak = &ice->akm[akidx]; |
173 | err = snd_akm4xxx_build_controls(ak); | 173 | err = snd_akm4xxx_build_controls(ak); |
174 | if (err < 0) | 174 | if (err < 0) |
175 | return err; | 175 | return err; |