1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #include <dsp/msm-audio-event-notify.h>
- #include <linux/export.h>
- static ATOMIC_NOTIFIER_HEAD(msm_aud_evt_notifier_list);
- static BLOCKING_NOTIFIER_HEAD(msm_aud_evt_blocking_notifier_list);
- int msm_aud_evt_register_client(struct notifier_block *nb)
- {
- return atomic_notifier_chain_register(&msm_aud_evt_notifier_list, nb);
- }
- EXPORT_SYMBOL(msm_aud_evt_register_client);
- int msm_aud_evt_unregister_client(struct notifier_block *nb)
- {
- return atomic_notifier_chain_unregister(&msm_aud_evt_notifier_list, nb);
- }
- EXPORT_SYMBOL(msm_aud_evt_unregister_client);
- int msm_aud_evt_notifier_call_chain(unsigned long val, void *v)
- {
- return atomic_notifier_call_chain(&msm_aud_evt_notifier_list, val, v);
- }
- EXPORT_SYMBOL_GPL(msm_aud_evt_notifier_call_chain);
- int msm_aud_evt_blocking_register_client(struct notifier_block *nb)
- {
- return blocking_notifier_chain_register(
- &msm_aud_evt_blocking_notifier_list, nb);
- }
- EXPORT_SYMBOL(msm_aud_evt_blocking_register_client);
- int msm_aud_evt_blocking_unregister_client(struct notifier_block *nb)
- {
- return blocking_notifier_chain_unregister(
- &msm_aud_evt_blocking_notifier_list, nb);
- }
- EXPORT_SYMBOL(msm_aud_evt_blocking_unregister_client);
- int msm_aud_evt_blocking_notifier_call_chain(unsigned long val, void *v)
- {
- return blocking_notifier_call_chain(
- &msm_aud_evt_blocking_notifier_list, val, v);
- }
- EXPORT_SYMBOL_GPL(msm_aud_evt_blocking_notifier_call_chain);
|