Changeset 118
- Timestamp:
- Jun 4, 2007, 3:50:19 AM (18 years ago)
- Location:
- GPL/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/control.c
r84 r118 957 957 } 958 958 959 #if 0 /* Uniaud: Not used until Alsa version 1.0.9 */ 959 960 static int snd_ctl_elem_add_user(struct snd_ctl_file *file, 960 961 struct snd_ctl_elem_info __user *_info, int replace) … … 965 966 return snd_ctl_elem_add(file, &info, replace); 966 967 } 968 #endif /* Uniaud */ 967 969 968 970 static int snd_ctl_elem_remove(struct snd_ctl_file *file, struct snd_ctl_elem_id *_id) -
GPL/trunk/alsa-kernel/core/hwdep.c
r34 r118 128 128 schedule(); 129 129 down(&hw->open_mutex); 130 #ifndef TARGET_OS2 131 /* MKG quiet OW: 132 see include/linux/signal.h 133 #define signal_pending(p) 0 134 Never returns true */ 130 135 if (signal_pending(current)) { 131 136 err = -ERESTARTSYS; 132 137 break; 133 138 } 139 #endif /* TARGET_OS2 */ 134 140 } 135 141 remove_wait_queue(&hw->open_wait, &wait); -
GPL/trunk/alsa-kernel/core/info.c
r32 r118 190 190 snd_assert(data != NULL, return -ENXIO); 191 191 pos = *offset; 192 #ifndef TARGET_OS2 193 /* MKG: pos is loff_t (see include/linux/types.h) which is 194 typedef unsigned long - check later */ 192 195 if (pos < 0 || (long) pos != pos || (ssize_t) count < 0) 193 196 return -EIO; 197 #endif /* TARGET_OS2 */ 194 198 if ((unsigned long) pos + (unsigned long) count < (unsigned long) pos) 195 199 return -EIO; … … 232 236 entry = data->entry; 233 237 pos = *offset; 238 #ifndef TARGET_OS2 239 /* MKG: pos is loff_t (see include/linux/types.h) which is 240 typedef unsigned long - check later */ 234 241 if (pos < 0 || (long) pos != pos || (ssize_t) count < 0) 235 242 return -EIO; 243 #endif /* TARGET_OS2 */ 236 244 if ((unsigned long) pos + (unsigned long) count < (unsigned long) pos) 237 245 return -EIO; -
GPL/trunk/alsa-kernel/include/sound/compat_22.h
r77 r118 406 406 #endif 407 407 408 #define ATOMIC_INIT(i) { (i) }409 410 /**411 * atomic_dec_and_test - decrement and test412 * @v: pointer of type atomic_t413 *414 * Atomically decrements @v by 1 and415 * returns true if the result is 0, or false for all other416 * cases. Note that the guaranteed417 * useful range of an atomic_t is only 24 bits.418 */419 static inline int atomic_dec_and_test(volatile atomic_t *v)420 {421 atomic_dec(v);422 if (v->counter == 0)423 return 1;424 return 0;425 }426 427 408 /** 428 409 * list_for_each_safe - iterate over a list safe against removal of list entry -
GPL/trunk/include/asm/atomic.h
r32 r118 24 24 parm [eax]; 25 25 26 int atomic_dec_and_test(volatile atomic_t *v); 26 /** 27 * atomic_dec_and_test - decrement and test 28 * @v: pointer of type atomic_t 29 * 30 * Atomically decrements @v by 1 and 31 * returns true if the result is 0, or false for all other 32 * cases. Note that the guaranteed 33 * useful range of an atomic_t is only 24 bits. 34 */ 35 static inline int atomic_dec_and_test(volatile atomic_t *v) 36 { 37 atomic_dec(v); 38 if (v->counter == 0) 39 return 1; 40 return 0; 41 } 42 27 43 extern int atomic_add_negative(int i, volatile atomic_t *v); 28 44
Note:
See TracChangeset
for help on using the changeset viewer.