diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 07:51:18 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:17:30 -0500 |
commit | 512bbd6a85230f16389f0dd51925472e72fc8a91 (patch) | |
tree | f563f496c46355ed6ed1bca4ab876e984eb69a84 /sound/core/sound.c | |
parent | 3f05f868f1112b970e7fb9c0aa42cc99370098fe (diff) |
[ALSA] Remove xxx_t typedefs: Core component
Modules: ALSA Core
Remove xxx_t typedefs from the core component.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 6e7cad1e947..04de0084e42 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -108,13 +108,13 @@ static void snd_request_other(int minor) | |||
108 | 108 | ||
109 | #endif /* request_module support */ | 109 | #endif /* request_module support */ |
110 | 110 | ||
111 | static snd_minor_t *snd_minor_search(int minor) | 111 | static struct snd_minor *snd_minor_search(int minor) |
112 | { | 112 | { |
113 | struct list_head *list; | 113 | struct list_head *list; |
114 | snd_minor_t *mptr; | 114 | struct snd_minor *mptr; |
115 | 115 | ||
116 | list_for_each(list, &snd_minors_hash[SNDRV_MINOR_CARD(minor)]) { | 116 | list_for_each(list, &snd_minors_hash[SNDRV_MINOR_CARD(minor)]) { |
117 | mptr = list_entry(list, snd_minor_t, list); | 117 | mptr = list_entry(list, struct snd_minor, list); |
118 | if (mptr->number == minor) | 118 | if (mptr->number == minor) |
119 | return mptr; | 119 | return mptr; |
120 | } | 120 | } |
@@ -126,7 +126,7 @@ static int snd_open(struct inode *inode, struct file *file) | |||
126 | int minor = iminor(inode); | 126 | int minor = iminor(inode); |
127 | int card = SNDRV_MINOR_CARD(minor); | 127 | int card = SNDRV_MINOR_CARD(minor); |
128 | int dev = SNDRV_MINOR_DEVICE(minor); | 128 | int dev = SNDRV_MINOR_DEVICE(minor); |
129 | snd_minor_t *mptr = NULL; | 129 | struct snd_minor *mptr = NULL; |
130 | struct file_operations *old_fops; | 130 | struct file_operations *old_fops; |
131 | int err = 0; | 131 | int err = 0; |
132 | 132 | ||
@@ -164,7 +164,7 @@ static struct file_operations snd_fops = | |||
164 | .open = snd_open | 164 | .open = snd_open |
165 | }; | 165 | }; |
166 | 166 | ||
167 | static int snd_kernel_minor(int type, snd_card_t * card, int dev) | 167 | static int snd_kernel_minor(int type, struct snd_card *card, int dev) |
168 | { | 168 | { |
169 | int minor; | 169 | int minor; |
170 | 170 | ||
@@ -196,7 +196,7 @@ static int snd_kernel_minor(int type, snd_card_t * card, int dev) | |||
196 | * @type: the device type, SNDRV_DEVICE_TYPE_XXX | 196 | * @type: the device type, SNDRV_DEVICE_TYPE_XXX |
197 | * @card: the card instance | 197 | * @card: the card instance |
198 | * @dev: the device index | 198 | * @dev: the device index |
199 | * @reg: the snd_minor_t record | 199 | * @reg: the struct snd_minor record |
200 | * @name: the device file name | 200 | * @name: the device file name |
201 | * | 201 | * |
202 | * Registers an ALSA device file for the given card. | 202 | * Registers an ALSA device file for the given card. |
@@ -204,16 +204,16 @@ static int snd_kernel_minor(int type, snd_card_t * card, int dev) | |||
204 | * | 204 | * |
205 | * Retrurns zero if successful, or a negative error code on failure. | 205 | * Retrurns zero if successful, or a negative error code on failure. |
206 | */ | 206 | */ |
207 | int snd_register_device(int type, snd_card_t * card, int dev, snd_minor_t * reg, const char *name) | 207 | int snd_register_device(int type, struct snd_card *card, int dev, struct snd_minor * reg, const char *name) |
208 | { | 208 | { |
209 | int minor = snd_kernel_minor(type, card, dev); | 209 | int minor = snd_kernel_minor(type, card, dev); |
210 | snd_minor_t *preg; | 210 | struct snd_minor *preg; |
211 | struct device *device = NULL; | 211 | struct device *device = NULL; |
212 | 212 | ||
213 | if (minor < 0) | 213 | if (minor < 0) |
214 | return minor; | 214 | return minor; |
215 | snd_assert(name, return -EINVAL); | 215 | snd_assert(name, return -EINVAL); |
216 | preg = (snd_minor_t *)kmalloc(sizeof(snd_minor_t) + strlen(name) + 1, GFP_KERNEL); | 216 | preg = kmalloc(sizeof(struct snd_minor) + strlen(name) + 1, GFP_KERNEL); |
217 | if (preg == NULL) | 217 | if (preg == NULL) |
218 | return -ENOMEM; | 218 | return -ENOMEM; |
219 | *preg = *reg; | 219 | *preg = *reg; |
@@ -248,10 +248,10 @@ int snd_register_device(int type, snd_card_t * card, int dev, snd_minor_t * reg, | |||
248 | * | 248 | * |
249 | * Returns zero if sucecessful, or a negative error code on failure | 249 | * Returns zero if sucecessful, or a negative error code on failure |
250 | */ | 250 | */ |
251 | int snd_unregister_device(int type, snd_card_t * card, int dev) | 251 | int snd_unregister_device(int type, struct snd_card *card, int dev) |
252 | { | 252 | { |
253 | int minor = snd_kernel_minor(type, card, dev); | 253 | int minor = snd_kernel_minor(type, card, dev); |
254 | snd_minor_t *mptr; | 254 | struct snd_minor *mptr; |
255 | 255 | ||
256 | if (minor < 0) | 256 | if (minor < 0) |
257 | return minor; | 257 | return minor; |
@@ -275,18 +275,18 @@ int snd_unregister_device(int type, snd_card_t * card, int dev) | |||
275 | * INFO PART | 275 | * INFO PART |
276 | */ | 276 | */ |
277 | 277 | ||
278 | static snd_info_entry_t *snd_minor_info_entry = NULL; | 278 | static struct snd_info_entry *snd_minor_info_entry = NULL; |
279 | 279 | ||
280 | static void snd_minor_info_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer) | 280 | static void snd_minor_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) |
281 | { | 281 | { |
282 | int card, device; | 282 | int card, device; |
283 | struct list_head *list; | 283 | struct list_head *list; |
284 | snd_minor_t *mptr; | 284 | struct snd_minor *mptr; |
285 | 285 | ||
286 | down(&sound_mutex); | 286 | down(&sound_mutex); |
287 | for (card = 0; card < SNDRV_CARDS; card++) { | 287 | for (card = 0; card < SNDRV_CARDS; card++) { |
288 | list_for_each(list, &snd_minors_hash[card]) { | 288 | list_for_each(list, &snd_minors_hash[card]) { |
289 | mptr = list_entry(list, snd_minor_t, list); | 289 | mptr = list_entry(list, struct snd_minor, list); |
290 | if (SNDRV_MINOR_DEVICE(mptr->number) != SNDRV_MINOR_GLOBAL) { | 290 | if (SNDRV_MINOR_DEVICE(mptr->number) != SNDRV_MINOR_GLOBAL) { |
291 | if ((device = mptr->device) >= 0) | 291 | if ((device = mptr->device) >= 0) |
292 | snd_iprintf(buffer, "%3i: [%i-%2i]: %s\n", mptr->number, card, device, mptr->comment); | 292 | snd_iprintf(buffer, "%3i: [%i-%2i]: %s\n", mptr->number, card, device, mptr->comment); |
@@ -302,7 +302,7 @@ static void snd_minor_info_read(snd_info_entry_t *entry, snd_info_buffer_t * buf | |||
302 | 302 | ||
303 | int __init snd_minor_info_init(void) | 303 | int __init snd_minor_info_init(void) |
304 | { | 304 | { |
305 | snd_info_entry_t *entry; | 305 | struct snd_info_entry *entry; |
306 | 306 | ||
307 | entry = snd_info_create_module_entry(THIS_MODULE, "devices", NULL); | 307 | entry = snd_info_create_module_entry(THIS_MODULE, "devices", NULL); |
308 | if (entry) { | 308 | if (entry) { |