core.h (11ed56fb7899f9eb9eaef8e5919db1bf08f1b07e) | core.h (99ac48f54a91d02140c497edc31dc57d4bc5c85d) |
---|---|
1#ifndef __SOUND_CORE_H 2#define __SOUND_CORE_H 3 4/* 5 * Main header file for the ALSA driver 6 * Copyright (c) 1994-2001 by Jaroslav Kysela <perex@suse.cz> 7 * 8 * --- 172 unchanged lines hidden (view full) --- 181#define snd_power_change_state(card, state) do { (void)(card); } while (0) 182 183#endif /* CONFIG_PM */ 184 185struct snd_minor { 186 int type; /* SNDRV_DEVICE_TYPE_XXX */ 187 int card; /* card number */ 188 int device; /* device number */ | 1#ifndef __SOUND_CORE_H 2#define __SOUND_CORE_H 3 4/* 5 * Main header file for the ALSA driver 6 * Copyright (c) 1994-2001 by Jaroslav Kysela <perex@suse.cz> 7 * 8 * --- 172 unchanged lines hidden (view full) --- 181#define snd_power_change_state(card, state) do { (void)(card); } while (0) 182 183#endif /* CONFIG_PM */ 184 185struct snd_minor { 186 int type; /* SNDRV_DEVICE_TYPE_XXX */ 187 int card; /* card number */ 188 int device; /* device number */ |
189 struct file_operations *f_ops; /* file operations */ | 189 const struct file_operations *f_ops; /* file operations */ |
190 void *private_data; /* private data for f_ops->open */ 191 char name[0]; /* device name (keep at the end of 192 structure) */ 193}; 194 195/* sound.c */ 196 197extern int snd_major; 198extern int snd_ecards_limit; 199 200void snd_request_card(int card); 201 202int snd_register_device(int type, struct snd_card *card, int dev, | 190 void *private_data; /* private data for f_ops->open */ 191 char name[0]; /* device name (keep at the end of 192 structure) */ 193}; 194 195/* sound.c */ 196 197extern int snd_major; 198extern int snd_ecards_limit; 199 200void snd_request_card(int card); 201 202int snd_register_device(int type, struct snd_card *card, int dev, |
203 struct file_operations *f_ops, void *private_data, | 203 const struct file_operations *f_ops, void *private_data, |
204 const char *name); 205int snd_unregister_device(int type, struct snd_card *card, int dev); 206void *snd_lookup_minor_data(unsigned int minor, int type); 207 208#ifdef CONFIG_SND_OSSEMUL 209int snd_register_oss_device(int type, struct snd_card *card, int dev, | 204 const char *name); 205int snd_unregister_device(int type, struct snd_card *card, int dev); 206void *snd_lookup_minor_data(unsigned int minor, int type); 207 208#ifdef CONFIG_SND_OSSEMUL 209int snd_register_oss_device(int type, struct snd_card *card, int dev, |
210 struct file_operations *f_ops, void *private_data, | 210 const struct file_operations *f_ops, void *private_data, |
211 const char *name); 212int snd_unregister_oss_device(int type, struct snd_card *card, int dev); 213void *snd_lookup_oss_minor_data(unsigned int minor, int type); 214#endif 215 216int snd_minor_info_init(void); 217int snd_minor_info_done(void); 218 --- 170 unchanged lines hidden --- | 211 const char *name); 212int snd_unregister_oss_device(int type, struct snd_card *card, int dev); 213void *snd_lookup_oss_minor_data(unsigned int minor, int type); 214#endif 215 216int snd_minor_info_init(void); 217int snd_minor_info_done(void); 218 --- 170 unchanged lines hidden --- |