core.h (3d5271f9883cba7b54762bc4fe027d4172f06db7) | core.h (512bbd6a85230f16389f0dd51925472e72fc8a91) |
---|---|
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 * --- 14 unchanged lines hidden (view full) --- 23 */ 24 25#include <linux/sched.h> /* wake_up() */ 26#include <asm/semaphore.h> /* struct 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 */ 30 | 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 * --- 14 unchanged lines hidden (view full) --- 23 */ 24 25#include <linux/sched.h> /* wake_up() */ 26#include <asm/semaphore.h> /* struct 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 */ 30 |
31/* Typedef's */ 32typedef struct sndrv_interval snd_interval_t; 33typedef enum sndrv_card_type snd_card_type; 34typedef struct sndrv_xferi snd_xferi_t; 35typedef struct sndrv_xfern snd_xfern_t; 36typedef struct sndrv_xferv snd_xferv_t; 37 | |
38/* forward declarations */ 39#ifdef CONFIG_PCI 40struct pci_dev; 41#endif 42#ifdef CONFIG_SBUS 43struct sbus_dev; 44#endif 45 46/* device allocation stuff */ 47 48#define SNDRV_DEV_TYPE_RANGE_SIZE 0x1000 49 | 31/* forward declarations */ 32#ifdef CONFIG_PCI 33struct pci_dev; 34#endif 35#ifdef CONFIG_SBUS 36struct sbus_dev; 37#endif 38 39/* device allocation stuff */ 40 41#define SNDRV_DEV_TYPE_RANGE_SIZE 0x1000 42 |
50typedef enum { 51 SNDRV_DEV_TOPLEVEL = (0*SNDRV_DEV_TYPE_RANGE_SIZE), 52 SNDRV_DEV_CONTROL, 53 SNDRV_DEV_LOWLEVEL_PRE, 54 SNDRV_DEV_LOWLEVEL_NORMAL = (1*SNDRV_DEV_TYPE_RANGE_SIZE), 55 SNDRV_DEV_PCM, 56 SNDRV_DEV_RAWMIDI, 57 SNDRV_DEV_TIMER, 58 SNDRV_DEV_SEQUENCER, 59 SNDRV_DEV_HWDEP, 60 SNDRV_DEV_INFO, 61 SNDRV_DEV_BUS, 62 SNDRV_DEV_CODEC, 63 SNDRV_DEV_LOWLEVEL = (2*SNDRV_DEV_TYPE_RANGE_SIZE) 64} snd_device_type_t; | 43typedef int __bitwise snd_device_type_t; 44#define SNDRV_DEV_TOPLEVEL ((__force snd_device_type_t) 0) 45#define SNDRV_DEV_CONTROL ((__force snd_device_type_t) 1) 46#define SNDRV_DEV_LOWLEVEL_PRE ((__force snd_device_type_t) 2) 47#define SNDRV_DEV_LOWLEVEL_NORMAL ((__force snd_device_type_t) 0x1000) 48#define SNDRV_DEV_PCM ((__force snd_device_type_t) 0x1001) 49#define SNDRV_DEV_RAWMIDI ((__force snd_device_type_t) 0x1002) 50#define SNDRV_DEV_TIMER ((__force snd_device_type_t) 0x1003) 51#define SNDRV_DEV_SEQUENCER ((__force snd_device_type_t) 0x1004) 52#define SNDRV_DEV_HWDEP ((__force snd_device_type_t) 0x1005) 53#define SNDRV_DEV_INFO ((__force snd_device_type_t) 0x1006) 54#define SNDRV_DEV_BUS ((__force snd_device_type_t) 0x1007) 55#define SNDRV_DEV_CODEC ((__force snd_device_type_t) 0x1008) 56#define SNDRV_DEV_LOWLEVEL ((__force snd_device_type_t) 0x2000) |
65 | 57 |
66typedef enum { 67 SNDRV_DEV_BUILD, 68 SNDRV_DEV_REGISTERED, 69 SNDRV_DEV_DISCONNECTED 70} snd_device_state_t; | 58typedef int __bitwise snd_device_state_t; 59#define SNDRV_DEV_BUILD ((__force snd_device_state_t) 0) 60#define SNDRV_DEV_REGISTERED ((__force snd_device_state_t) 1) 61#define SNDRV_DEV_DISCONNECTED ((__force snd_device_state_t) 2) |
71 | 62 |
72typedef enum { 73 SNDRV_DEV_CMD_PRE = 0, 74 SNDRV_DEV_CMD_NORMAL = 1, 75 SNDRV_DEV_CMD_POST = 2 76} snd_device_cmd_t; | 63typedef int __bitwise snd_device_cmd_t; 64#define SNDRV_DEV_CMD_PRE ((__force snd_device_cmd_t) 0) 65#define SNDRV_DEV_CMD_NORMAL ((__force snd_device_cmd_t) 1) 66#define SNDRV_DEV_CMD_POST ((__force snd_device_cmd_t) 2) |
77 | 67 |
78typedef struct _snd_card snd_card_t; 79typedef struct _snd_device snd_device_t; | 68struct snd_device; |
80 | 69 |
81typedef int (snd_dev_free_t)(snd_device_t *device); 82typedef int (snd_dev_register_t)(snd_device_t *device); 83typedef int (snd_dev_disconnect_t)(snd_device_t *device); 84typedef int (snd_dev_unregister_t)(snd_device_t *device); | 70struct snd_device_ops { 71 int (*dev_free)(struct snd_device *dev); 72 int (*dev_register)(struct snd_device *dev); 73 int (*dev_disconnect)(struct snd_device *dev); 74 int (*dev_unregister)(struct snd_device *dev); 75}; |
85 | 76 |
86typedef struct { 87 snd_dev_free_t *dev_free; 88 snd_dev_register_t *dev_register; 89 snd_dev_disconnect_t *dev_disconnect; 90 snd_dev_unregister_t *dev_unregister; 91} snd_device_ops_t; 92 93struct _snd_device { | 77struct snd_device { |
94 struct list_head list; /* list of registered devices */ | 78 struct list_head list; /* list of registered devices */ |
95 snd_card_t *card; /* card which holds this device */ | 79 struct snd_card *card; /* card which holds this device */ |
96 snd_device_state_t state; /* state of the device */ 97 snd_device_type_t type; /* device type */ 98 void *device_data; /* device structure */ | 80 snd_device_state_t state; /* state of the device */ 81 snd_device_type_t type; /* device type */ 82 void *device_data; /* device structure */ |
99 snd_device_ops_t *ops; /* operations */ | 83 struct snd_device_ops *ops; /* operations */ |
100}; 101 | 84}; 85 |
102#define snd_device(n) list_entry(n, snd_device_t, list) | 86#define snd_device(n) list_entry(n, struct snd_device, list) |
103 | 87 |
104/* various typedefs */ 105 106typedef struct snd_info_entry snd_info_entry_t; 107typedef struct _snd_pcm snd_pcm_t; 108typedef struct _snd_pcm_str snd_pcm_str_t; 109typedef struct _snd_pcm_substream snd_pcm_substream_t; 110typedef struct _snd_mixer snd_kmixer_t; 111typedef struct _snd_rawmidi snd_rawmidi_t; 112typedef struct _snd_ctl_file snd_ctl_file_t; 113typedef struct _snd_kcontrol snd_kcontrol_t; 114typedef struct _snd_timer snd_timer_t; 115typedef struct _snd_timer_instance snd_timer_instance_t; 116typedef struct _snd_hwdep snd_hwdep_t; 117#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) 118typedef struct _snd_oss_mixer snd_mixer_oss_t; 119#endif 120 | |
121/* monitor files for graceful shutdown (hotplug) */ 122 123struct snd_monitor_file { 124 struct file *file; 125 struct snd_monitor_file *next; 126}; 127 128struct snd_shutdown_f_ops; /* define it later in init.c */ 129 130/* main structure for soundcard */ 131 | 88/* monitor files for graceful shutdown (hotplug) */ 89 90struct snd_monitor_file { 91 struct file *file; 92 struct snd_monitor_file *next; 93}; 94 95struct snd_shutdown_f_ops; /* define it later in init.c */ 96 97/* main structure for soundcard */ 98 |
132struct _snd_card { | 99struct snd_card { |
133 int number; /* number of soundcard (index to 134 snd_cards) */ 135 136 char id[16]; /* id string of this card */ 137 char driver[16]; /* driver name */ 138 char shortname[32]; /* short name of this soundcard */ 139 char longname[80]; /* name of this soundcard */ 140 char mixername[80]; /* mixer name */ 141 char components[80]; /* card components delimited with 142 space */ 143 struct module *module; /* top-level module */ 144 145 void *private_data; /* private data for soundcard */ | 100 int number; /* number of soundcard (index to 101 snd_cards) */ 102 103 char id[16]; /* id string of this card */ 104 char driver[16]; /* driver name */ 105 char shortname[32]; /* short name of this soundcard */ 106 char longname[80]; /* name of this soundcard */ 107 char mixername[80]; /* mixer name */ 108 char components[80]; /* card components delimited with 109 space */ 110 struct module *module; /* top-level module */ 111 112 void *private_data; /* private data for soundcard */ |
146 void (*private_free) (snd_card_t *card); /* callback for freeing of | 113 void (*private_free) (struct snd_card *card); /* callback for freeing of |
147 private data */ 148 struct list_head devices; /* devices */ 149 150 unsigned int last_numid; /* last used numeric ID */ 151 struct rw_semaphore controls_rwsem; /* controls list lock */ 152 rwlock_t ctl_files_rwlock; /* ctl_files list lock */ 153 int controls_count; /* count of all controls */ 154 int user_ctl_count; /* count of all user controls */ 155 struct list_head controls; /* all controls for this card */ 156 struct list_head ctl_files; /* active control files */ 157 | 114 private data */ 115 struct list_head devices; /* devices */ 116 117 unsigned int last_numid; /* last used numeric ID */ 118 struct rw_semaphore controls_rwsem; /* controls list lock */ 119 rwlock_t ctl_files_rwlock; /* ctl_files list lock */ 120 int controls_count; /* count of all controls */ 121 int user_ctl_count; /* count of all user controls */ 122 struct list_head controls; /* all controls for this card */ 123 struct list_head ctl_files; /* active control files */ 124 |
158 snd_info_entry_t *proc_root; /* root for soundcard specific files */ 159 snd_info_entry_t *proc_id; /* the card id */ | 125 struct snd_info_entry *proc_root; /* root for soundcard specific files */ 126 struct snd_info_entry *proc_id; /* the card id */ |
160 struct proc_dir_entry *proc_root_link; /* number link to real id */ 161 162 struct snd_monitor_file *files; /* all files associated to this card */ 163 struct snd_shutdown_f_ops *s_f_ops; /* file operations in the shutdown 164 state */ 165 spinlock_t files_lock; /* lock the files for this card */ 166 int shutdown; /* this card is going down */ 167 wait_queue_head_t shutdown_sleep; 168 struct work_struct free_workq; /* for free in workqueue */ 169 struct device *dev; 170#ifdef CONFIG_SND_GENERIC_DRIVER 171 struct snd_generic_device *generic_dev; 172#endif 173 174#ifdef CONFIG_PM | 127 struct proc_dir_entry *proc_root_link; /* number link to real id */ 128 129 struct snd_monitor_file *files; /* all files associated to this card */ 130 struct snd_shutdown_f_ops *s_f_ops; /* file operations in the shutdown 131 state */ 132 spinlock_t files_lock; /* lock the files for this card */ 133 int shutdown; /* this card is going down */ 134 wait_queue_head_t shutdown_sleep; 135 struct work_struct free_workq; /* for free in workqueue */ 136 struct device *dev; 137#ifdef CONFIG_SND_GENERIC_DRIVER 138 struct snd_generic_device *generic_dev; 139#endif 140 141#ifdef CONFIG_PM |
175 int (*pm_suspend)(snd_card_t *card, pm_message_t state); 176 int (*pm_resume)(snd_card_t *card); | 142 int (*pm_suspend)(struct snd_card *card, pm_message_t state); 143 int (*pm_resume)(struct snd_card *card); |
177 void *pm_private_data; 178 unsigned int power_state; /* power state */ 179 struct semaphore power_lock; /* power lock */ 180 wait_queue_head_t power_sleep; 181#endif 182 183#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 144 void *pm_private_data; 145 unsigned int power_state; /* power state */ 146 struct semaphore power_lock; /* power lock */ 147 wait_queue_head_t power_sleep; 148#endif 149 150#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) |
184 snd_mixer_oss_t *mixer_oss; | 151 struct snd_mixer_oss *mixer_oss; |
185 int mixer_oss_change_count; 186#endif 187}; 188 189#ifdef CONFIG_PM | 152 int mixer_oss_change_count; 153#endif 154}; 155 156#ifdef CONFIG_PM |
190static inline void snd_power_lock(snd_card_t *card) | 157static inline void snd_power_lock(struct snd_card *card) |
191{ 192 down(&card->power_lock); 193} 194 | 158{ 159 down(&card->power_lock); 160} 161 |
195static inline void snd_power_unlock(snd_card_t *card) | 162static inline void snd_power_unlock(struct snd_card *card) |
196{ 197 up(&card->power_lock); 198} 199 | 163{ 164 up(&card->power_lock); 165} 166 |
200static inline unsigned int snd_power_get_state(snd_card_t *card) | 167static inline unsigned int snd_power_get_state(struct snd_card *card) |
201{ 202 return card->power_state; 203} 204 | 168{ 169 return card->power_state; 170} 171 |
205static inline void snd_power_change_state(snd_card_t *card, unsigned int state) | 172static inline void snd_power_change_state(struct snd_card *card, unsigned int state) |
206{ 207 card->power_state = state; 208 wake_up(&card->power_sleep); 209} 210 211/* init.c */ | 173{ 174 card->power_state = state; 175 wake_up(&card->power_sleep); 176} 177 178/* init.c */ |
212int snd_power_wait(snd_card_t *card, unsigned int power_state, struct file *file); | 179int snd_power_wait(struct snd_card *card, unsigned int power_state, struct file *file); |
213 | 180 |
214int snd_card_set_pm_callback(snd_card_t *card, 215 int (*suspend)(snd_card_t *, pm_message_t), 216 int (*resume)(snd_card_t *), | 181int snd_card_set_pm_callback(struct snd_card *card, 182 int (*suspend)(struct snd_card *, pm_message_t), 183 int (*resume)(struct snd_card *), |
217 void *private_data); | 184 void *private_data); |
218int snd_card_set_generic_pm_callback(snd_card_t *card, 219 int (*suspend)(snd_card_t *, pm_message_t), 220 int (*resume)(snd_card_t *), | 185int snd_card_set_generic_pm_callback(struct snd_card *card, 186 int (*suspend)(struct snd_card *, pm_message_t), 187 int (*resume)(struct snd_card *), |
221 void *private_data); 222#define snd_card_set_isa_pm_callback(card,suspend,resume,data) \ 223 snd_card_set_generic_pm_callback(card, suspend, resume, data) 224struct pci_dev; 225int snd_card_pci_suspend(struct pci_dev *dev, pm_message_t state); 226int snd_card_pci_resume(struct pci_dev *dev); 227#define SND_PCI_PM_CALLBACKS \ 228 .suspend = snd_card_pci_suspend, .resume = snd_card_pci_resume 229 230#else /* ! CONFIG_PM */ 231 232#define snd_power_lock(card) do { (void)(card); } while (0) 233#define snd_power_unlock(card) do { (void)(card); } while (0) | 188 void *private_data); 189#define snd_card_set_isa_pm_callback(card,suspend,resume,data) \ 190 snd_card_set_generic_pm_callback(card, suspend, resume, data) 191struct pci_dev; 192int snd_card_pci_suspend(struct pci_dev *dev, pm_message_t state); 193int snd_card_pci_resume(struct pci_dev *dev); 194#define SND_PCI_PM_CALLBACKS \ 195 .suspend = snd_card_pci_suspend, .resume = snd_card_pci_resume 196 197#else /* ! CONFIG_PM */ 198 199#define snd_power_lock(card) do { (void)(card); } while (0) 200#define snd_power_unlock(card) do { (void)(card); } while (0) |
234static inline int snd_power_wait(snd_card_t *card, unsigned int state, struct file *file) { return 0; } | 201static inline int snd_power_wait(struct snd_card *card, unsigned int state, struct file *file) { return 0; } |
235#define snd_power_get_state(card) SNDRV_CTL_POWER_D0 236#define snd_power_change_state(card, state) do { (void)(card); } while (0) 237#define snd_card_set_pm_callback(card,suspend,resume,data) 238#define snd_card_set_generic_pm_callback(card,suspend,resume,data) 239#define snd_card_set_isa_pm_callback(card,suspend,resume,data) 240#define SND_PCI_PM_CALLBACKS 241 242#endif /* CONFIG_PM */ 243 | 202#define snd_power_get_state(card) SNDRV_CTL_POWER_D0 203#define snd_power_change_state(card, state) do { (void)(card); } while (0) 204#define snd_card_set_pm_callback(card,suspend,resume,data) 205#define snd_card_set_generic_pm_callback(card,suspend,resume,data) 206#define snd_card_set_isa_pm_callback(card,suspend,resume,data) 207#define SND_PCI_PM_CALLBACKS 208 209#endif /* CONFIG_PM */ 210 |
244struct _snd_minor { | 211struct snd_minor { |
245 struct list_head list; /* list of all minors per card */ 246 int number; /* minor number */ 247 int device; /* device number */ 248 const char *comment; /* for /proc/asound/devices */ 249 struct file_operations *f_ops; /* file operations */ 250 char name[0]; /* device name (keep at the end of 251 structure) */ 252}; 253 | 212 struct list_head list; /* list of all minors per card */ 213 int number; /* minor number */ 214 int device; /* device number */ 215 const char *comment; /* for /proc/asound/devices */ 216 struct file_operations *f_ops; /* file operations */ 217 char name[0]; /* device name (keep at the end of 218 structure) */ 219}; 220 |
254typedef struct _snd_minor snd_minor_t; 255 | |
256/* sound.c */ 257 258extern int snd_major; 259extern int snd_ecards_limit; 260 261void snd_request_card(int card); 262 | 221/* sound.c */ 222 223extern int snd_major; 224extern int snd_ecards_limit; 225 226void snd_request_card(int card); 227 |
263int snd_register_device(int type, snd_card_t *card, int dev, snd_minor_t *reg, const char *name); 264int snd_unregister_device(int type, snd_card_t *card, int dev); | 228int snd_register_device(int type, struct snd_card *card, int dev, struct snd_minor *reg, const char *name); 229int snd_unregister_device(int type, struct snd_card *card, int dev); |
265 266#ifdef CONFIG_SND_OSSEMUL | 230 231#ifdef CONFIG_SND_OSSEMUL |
267int snd_register_oss_device(int type, snd_card_t *card, int dev, snd_minor_t *reg, const char *name); 268int snd_unregister_oss_device(int type, snd_card_t *card, int dev); | 232int snd_register_oss_device(int type, struct snd_card *card, int dev, struct snd_minor *reg, const char *name); 233int snd_unregister_oss_device(int type, struct snd_card *card, int dev); |
269#endif 270 271int snd_minor_info_init(void); 272int snd_minor_info_done(void); 273 274/* sound_oss.c */ 275 276#ifdef CONFIG_SND_OSSEMUL --- 9 unchanged lines hidden (view full) --- 286/* memory.c */ 287 288int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); 289int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); 290 291/* init.c */ 292 293extern unsigned int snd_cards_lock; | 234#endif 235 236int snd_minor_info_init(void); 237int snd_minor_info_done(void); 238 239/* sound_oss.c */ 240 241#ifdef CONFIG_SND_OSSEMUL --- 9 unchanged lines hidden (view full) --- 251/* memory.c */ 252 253int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); 254int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); 255 256/* init.c */ 257 258extern unsigned int snd_cards_lock; |
294extern snd_card_t *snd_cards[SNDRV_CARDS]; | 259extern struct snd_card *snd_cards[SNDRV_CARDS]; |
295extern rwlock_t snd_card_rwlock; 296#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) 297#define SND_MIXER_OSS_NOTIFY_REGISTER 0 298#define SND_MIXER_OSS_NOTIFY_DISCONNECT 1 299#define SND_MIXER_OSS_NOTIFY_FREE 2 | 260extern rwlock_t snd_card_rwlock; 261#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) 262#define SND_MIXER_OSS_NOTIFY_REGISTER 0 263#define SND_MIXER_OSS_NOTIFY_DISCONNECT 1 264#define SND_MIXER_OSS_NOTIFY_FREE 2 |
300extern int (*snd_mixer_oss_notify_callback)(snd_card_t *card, int cmd); | 265extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd); |
301#endif 302 | 266#endif 267 |
303snd_card_t *snd_card_new(int idx, const char *id, | 268struct snd_card *snd_card_new(int idx, const char *id, |
304 struct module *module, int extra_size); | 269 struct module *module, int extra_size); |
305int snd_card_disconnect(snd_card_t *card); 306int snd_card_free(snd_card_t *card); 307int snd_card_free_in_thread(snd_card_t *card); 308int snd_card_register(snd_card_t *card); | 270int snd_card_disconnect(struct snd_card *card); 271int snd_card_free(struct snd_card *card); 272int snd_card_free_in_thread(struct snd_card *card); 273int snd_card_register(struct snd_card *card); |
309int snd_card_info_init(void); 310int snd_card_info_done(void); | 274int snd_card_info_init(void); 275int snd_card_info_done(void); |
311int snd_component_add(snd_card_t *card, const char *component); 312int snd_card_file_add(snd_card_t *card, struct file *file); 313int snd_card_file_remove(snd_card_t *card, struct file *file); | 276int snd_component_add(struct snd_card *card, const char *component); 277int snd_card_file_add(struct snd_card *card, struct file *file); 278int snd_card_file_remove(struct snd_card *card, struct file *file); |
314 315#ifndef snd_card_set_dev 316#define snd_card_set_dev(card,devptr) ((card)->dev = (devptr)) 317#endif 318/* register a generic device (for ISA, etc) */ | 279 280#ifndef snd_card_set_dev 281#define snd_card_set_dev(card,devptr) ((card)->dev = (devptr)) 282#endif 283/* register a generic device (for ISA, etc) */ |
319int snd_card_set_generic_dev(snd_card_t *card); | 284int snd_card_set_generic_dev(struct snd_card *card); |
320 321/* device.c */ 322 | 285 286/* device.c */ 287 |
323int snd_device_new(snd_card_t *card, snd_device_type_t type, 324 void *device_data, snd_device_ops_t *ops); 325int snd_device_register(snd_card_t *card, void *device_data); 326int snd_device_register_all(snd_card_t *card); 327int snd_device_disconnect(snd_card_t *card, void *device_data); 328int snd_device_disconnect_all(snd_card_t *card); 329int snd_device_free(snd_card_t *card, void *device_data); 330int snd_device_free_all(snd_card_t *card, snd_device_cmd_t cmd); | 288int snd_device_new(struct snd_card *card, snd_device_type_t type, 289 void *device_data, struct snd_device_ops *ops); 290int snd_device_register(struct snd_card *card, void *device_data); 291int snd_device_register_all(struct snd_card *card); 292int snd_device_disconnect(struct snd_card *card, void *device_data); 293int snd_device_disconnect_all(struct snd_card *card); 294int snd_device_free(struct snd_card *card, void *device_data); 295int snd_device_free_all(struct snd_card *card, snd_device_cmd_t cmd); |
331 332/* isadma.c */ 333 334#ifdef CONFIG_ISA_DMA_API 335#define DMA_MODE_NO_ENABLE 0x0100 336 337void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode); 338void snd_dma_disable(unsigned long dma); --- 99 unchanged lines hidden (view full) --- 438#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) 439#ifndef gameport_set_dev_parent 440#define gameport_set_dev_parent(gp,xdev) ((gp)->dev.parent = (xdev)) 441#define gameport_set_port_data(gp,r) ((gp)->port_data = (r)) 442#define gameport_get_port_data(gp) (gp)->port_data 443#endif 444#endif 445 | 296 297/* isadma.c */ 298 299#ifdef CONFIG_ISA_DMA_API 300#define DMA_MODE_NO_ENABLE 0x0100 301 302void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode); 303void snd_dma_disable(unsigned long dma); --- 99 unchanged lines hidden (view full) --- 403#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE) 404#ifndef gameport_set_dev_parent 405#define gameport_set_dev_parent(gp,xdev) ((gp)->dev.parent = (xdev)) 406#define gameport_set_port_data(gp,r) ((gp)->port_data = (r)) 407#define gameport_get_port_data(gp) (gp)->port_data 408#endif 409#endif 410 |
411#include "typedefs.h" 412 |
|
446#endif /* __SOUND_CORE_H */ | 413#endif /* __SOUND_CORE_H */ |