diff options
Diffstat (limited to 'include/sound/core.h')
| -rw-r--r-- | include/sound/core.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 5d184be0ff72..b056ea925ecf 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
| @@ -25,8 +25,8 @@ | |||
| 25 | #include <linux/sched.h> /* wake_up() */ | 25 | #include <linux/sched.h> /* wake_up() */ |
| 26 | #include <linux/mutex.h> /* struct mutex */ | 26 | #include <linux/mutex.h> /* struct mutex */ |
| 27 | #include <linux/rwsem.h> /* struct rw_semaphore */ | 27 | #include <linux/rwsem.h> /* struct rw_semaphore */ |
| 28 | #include <linux/workqueue.h> /* struct workqueue_struct */ | ||
| 29 | #include <linux/pm.h> /* pm_message_t */ | 28 | #include <linux/pm.h> /* pm_message_t */ |
| 29 | #include <linux/device.h> | ||
| 30 | 30 | ||
| 31 | /* forward declarations */ | 31 | /* forward declarations */ |
| 32 | #ifdef CONFIG_PCI | 32 | #ifdef CONFIG_PCI |
| @@ -71,7 +71,6 @@ struct snd_device_ops { | |||
| 71 | int (*dev_free)(struct snd_device *dev); | 71 | int (*dev_free)(struct snd_device *dev); |
| 72 | int (*dev_register)(struct snd_device *dev); | 72 | int (*dev_register)(struct snd_device *dev); |
| 73 | int (*dev_disconnect)(struct snd_device *dev); | 73 | int (*dev_disconnect)(struct snd_device *dev); |
| 74 | int (*dev_unregister)(struct snd_device *dev); | ||
| 75 | }; | 74 | }; |
| 76 | 75 | ||
| 77 | struct snd_device { | 76 | struct snd_device { |
| @@ -131,8 +130,8 @@ struct snd_card { | |||
| 131 | state */ | 130 | state */ |
| 132 | spinlock_t files_lock; /* lock the files for this card */ | 131 | spinlock_t files_lock; /* lock the files for this card */ |
| 133 | int shutdown; /* this card is going down */ | 132 | int shutdown; /* this card is going down */ |
| 133 | int free_on_last_close; /* free in context of file_release */ | ||
| 134 | wait_queue_head_t shutdown_sleep; | 134 | wait_queue_head_t shutdown_sleep; |
| 135 | struct work_struct free_workq; /* for free in workqueue */ | ||
| 136 | struct device *dev; | 135 | struct device *dev; |
| 137 | 136 | ||
| 138 | #ifdef CONFIG_PM | 137 | #ifdef CONFIG_PM |
| @@ -188,8 +187,7 @@ struct snd_minor { | |||
| 188 | int device; /* device number */ | 187 | int device; /* device number */ |
| 189 | const struct file_operations *f_ops; /* file operations */ | 188 | const struct file_operations *f_ops; /* file operations */ |
| 190 | void *private_data; /* private data for f_ops->open */ | 189 | void *private_data; /* private data for f_ops->open */ |
| 191 | char name[0]; /* device name (keep at the end of | 190 | struct class_device *class_dev; /* class device for sysfs */ |
| 192 | structure) */ | ||
| 193 | }; | 191 | }; |
| 194 | 192 | ||
| 195 | /* sound.c */ | 193 | /* sound.c */ |
| @@ -204,6 +202,8 @@ int snd_register_device(int type, struct snd_card *card, int dev, | |||
| 204 | const char *name); | 202 | const char *name); |
| 205 | int snd_unregister_device(int type, struct snd_card *card, int dev); | 203 | int snd_unregister_device(int type, struct snd_card *card, int dev); |
| 206 | void *snd_lookup_minor_data(unsigned int minor, int type); | 204 | void *snd_lookup_minor_data(unsigned int minor, int type); |
| 205 | int snd_add_device_sysfs_file(int type, struct snd_card *card, int dev, | ||
| 206 | const struct class_device_attribute *attr); | ||
| 207 | 207 | ||
| 208 | #ifdef CONFIG_SND_OSSEMUL | 208 | #ifdef CONFIG_SND_OSSEMUL |
| 209 | int snd_register_oss_device(int type, struct snd_card *card, int dev, | 209 | int snd_register_oss_device(int type, struct snd_card *card, int dev, |
| @@ -246,7 +246,7 @@ struct snd_card *snd_card_new(int idx, const char *id, | |||
| 246 | struct module *module, int extra_size); | 246 | struct module *module, int extra_size); |
| 247 | int snd_card_disconnect(struct snd_card *card); | 247 | int snd_card_disconnect(struct snd_card *card); |
| 248 | int snd_card_free(struct snd_card *card); | 248 | int snd_card_free(struct snd_card *card); |
| 249 | int snd_card_free_in_thread(struct snd_card *card); | 249 | int snd_card_free_when_closed(struct snd_card *card); |
| 250 | int snd_card_register(struct snd_card *card); | 250 | int snd_card_register(struct snd_card *card); |
| 251 | int snd_card_info_init(void); | 251 | int snd_card_info_init(void); |
| 252 | int snd_card_info_done(void); | 252 | int snd_card_info_done(void); |
