Changeset 522 for GPL/trunk/alsa-kernel/include/sound/adriver.h
- Timestamp:
- Jul 22, 2010, 7:20:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/adriver.h
r305 r522 1 Apparently this file is not used on OS2 1 2 #ifndef __SOUND_LOCAL_DRIVER_H 2 3 #define __SOUND_LOCAL_DRIVER_H … … 678 679 #define schedule_work(w) snd_compat_schedule_work(w) 679 680 struct workqueue_struct *snd_compat_create_workqueue(const char *name); 680 #ifndef TARGET_OS2 681 #define create_workqueue(name) snd_compat_create_workqueue((name)) 682 #endif 681 683 682 void snd_compat_flush_workqueue(struct workqueue_struct *wq); 684 683 #define flush_workqueue(wq) snd_compat_flush_workqueue((wq)); 685 684 void snd_compat_destroy_workqueue(struct workqueue_struct *wq); 686 #ifndef TARGET_OS2687 #define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));688 #endif689 685 int snd_compat_queue_work(struct workqueue_struct *wq, struct work_struct *work); 690 #ifndef TARGET_OS2691 #define queue_work(wq, work) snd_compat_queue_work((wq), (work))692 #endif693 686 int snd_compat_queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *work, unsigned long delay); 694 #ifndef TARGET_OS2695 #define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay))696 #endif697 687 #define schedule_delayed_work(work, delay) snd_compat_queue_delayed_work(NULL, (work), (delay)) 698 688 int snd_compat_cancel_delayed_work(struct delayed_work *work); 699 689 #define cancel_delayed_work(work) snd_compat_cancel_delayed_work(work) 700 690 #define flush_scheduled_work() 691 692 #ifndef TARGET_OS2 693 #define create_workqueue(name) snd_compat_create_workqueue((name)) 694 #define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq)); 695 #define queue_work(wq, work) snd_compat_queue_work((wq), (work)) 696 #define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay)) 697 #endif 698 701 699 #ifdef TARGET_OS2 702 700 struct completion { … … 963 961 MODULE_PARM(name, SNDRV_MODULE_TYPE_##type) 964 962 #else 965 #define module_param_array(name, type, nump, perm) 966 #define module_param(name, type, perm) 963 #define module_param_array(name, type, nump, perm) 964 #define module_param(name, type, perm) 967 965 #endif /* TARGET_OS2 */ 968 966 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10)
Note:
See TracChangeset
for help on using the changeset viewer.