Import 2.3.18pre1
[davej-history.git] / drivers / sound / soundmodule.h
blobb89e74e519f279f4a9054f33d3c6ea64154dc4ce
1 #ifndef _SOUNDMODULE_H
2 #define _SOUNDMODULE_H
4 #include <linux/notifier.h>
6 extern struct notifier_block *sound_locker;
7 extern void sound_notifier_chain_register(struct notifier_block *);
9 #ifdef MODULE
11 #define SOUND_LOCK sound_notifier_chain_register(&sound_notifier);
12 #define SOUND_LOCK_END notifier_chain_unregister(&sound_locker, &sound_notifier)
14 static int my_notifier_call(struct notifier_block *b, unsigned long foo, void *bar)
16 if(foo)
17 MOD_INC_USE_COUNT;
18 else
19 MOD_DEC_USE_COUNT;
20 return NOTIFY_DONE;
23 static struct notifier_block sound_notifier=
25 my_notifier_call,
26 (void *)0,
30 #endif
31 #endif