Changeset 426 for GPL/trunk/alsa-kernel/include/sound/hwdep.h
- Timestamp:
- May 9, 2009, 11:45:26 AM (16 years ago)
- File:
-
- 1 edited
-
GPL/trunk/alsa-kernel/include/sound/hwdep.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/hwdep.h
r305 r426 28 28 struct snd_hwdep; 29 29 30 /* hwdep file ops; all ops can be NULL */ 30 31 struct snd_hwdep_ops { 31 long long (*llseek) (struct snd_hwdep *hw, struct file * file, long long offset, int orig); 32 long (*read) (struct snd_hwdep *hw, char __user *buf, long count, loff_t *offset); 33 long (*write) (struct snd_hwdep *hw, const char __user *buf, long count, loff_t *offset); 34 int (*open) (struct snd_hwdep * hw, struct file * file); 35 int (*release) (struct snd_hwdep *hw, struct file * file); 36 unsigned int (*poll) (struct snd_hwdep *hw, struct file * file, poll_table * wait); 37 int (*ioctl) (struct snd_hwdep *hw, struct file * file, unsigned int cmd, unsigned long arg); 38 int (*ioctl_compat) (struct snd_hwdep *hw, struct file * file, unsigned int cmd, unsigned long arg); 39 int (*mmap) (struct snd_hwdep *hw, struct file * file, struct vm_area_struct * vma); 40 int (*dsp_status) (struct snd_hwdep *hw, struct snd_hwdep_dsp_status *status); 41 int (*dsp_load) (struct snd_hwdep *hw, struct snd_hwdep_dsp_image *image); 32 long long (*llseek)(struct snd_hwdep *hw, struct file *file, 33 long long offset, int orig); 34 long (*read)(struct snd_hwdep *hw, char __user *buf, 35 long count, loff_t *offset); 36 long (*write)(struct snd_hwdep *hw, const char __user *buf, 37 long count, loff_t *offset); 38 int (*open)(struct snd_hwdep *hw, struct file * file); 39 int (*release)(struct snd_hwdep *hw, struct file * file); 40 unsigned int (*poll)(struct snd_hwdep *hw, struct file *file, 41 poll_table *wait); 42 int (*ioctl)(struct snd_hwdep *hw, struct file *file, 43 unsigned int cmd, unsigned long arg); 44 int (*ioctl_compat)(struct snd_hwdep *hw, struct file *file, 45 unsigned int cmd, unsigned long arg); 46 int (*mmap)(struct snd_hwdep *hw, struct file *file, 47 struct vm_area_struct *vma); 48 int (*dsp_status)(struct snd_hwdep *hw, 49 struct snd_hwdep_dsp_status *status); 50 int (*dsp_load)(struct snd_hwdep *hw, 51 struct snd_hwdep_dsp_image *image); 42 52 }; 43 53 … … 62 72 63 73 struct mutex open_mutex; 64 int used; 65 unsigned int dsp_loaded; 66 unsigned int exclusive: 1;74 int used; /* reference counter */ 75 unsigned int dsp_loaded; /* bit fields of loaded dsp indices */ 76 unsigned int exclusive:1; /* exclusive access mode */ 67 77 }; 68 78
Note:
See TracChangeset
for help on using the changeset viewer.
