Changeset 84 for GPL/trunk/alsa-kernel/include/sound/control.h
- Timestamp:
- Oct 23, 2006, 11:07:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/control.h
r77 r84 28 28 typedef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol); 29 29 typedef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol); 30 typedef int (snd_kcontrol_tlv_rw_t)(struct snd_kcontrol *kcontrol, 31 int op_flag, /* 0=read,1=write,-1=command */ 32 unsigned int size, 33 unsigned int __user *tlv); 30 34 31 35 struct snd_kcontrol_new { … … 40 44 snd_kcontrol_get_t *get; 41 45 snd_kcontrol_put_t *put; 42 unsigned int *tlv; 46 union { 47 snd_kcontrol_tlv_rw_t *c; 48 unsigned int *p; 49 } tlv; 43 50 unsigned long private_value; 44 51 }; … … 57 64 snd_kcontrol_get_t *get; 58 65 snd_kcontrol_put_t *put; 59 unsigned int *tlv; 66 union { 67 snd_kcontrol_tlv_rw_t *c; 68 unsigned int *p; 69 } tlv; 60 70 unsigned long private_value; 61 71 #ifdef TARGET_OS2 … … 140 150 } 141 151 152 static inline struct snd_ctl_elem_id *snd_ctl_build_ioff(struct snd_ctl_elem_id *dst_id, 153 struct snd_kcontrol *src_kctl, 154 unsigned int offset) 155 { 156 *dst_id = src_kctl->id; 157 dst_id->index += offset; 158 dst_id->numid += offset; 159 return dst_id; 160 } 161 142 162 #endif /* __CONTROL_H */
Note:
See TracChangeset
for help on using the changeset viewer.