msm-audio-event-notify.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (c) 2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __MSM_AUDIO_EVENT_NOTIFY_H_
  14. #define __MSM_AUDIO_EVENT_NOTIFY_H_
  15. #include <linux/notifier.h>
  16. #if IS_ENABLED(CONFIG_SND_SOC_MSM_QDSP6V2_INTF)
  17. int msm_aud_evt_register_client(struct notifier_block *nb);
  18. int msm_aud_evt_unregister_client(struct notifier_block *nb);
  19. int msm_aud_evt_notifier_call_chain(unsigned long val, void *v);
  20. #else
  21. static inline int msm_aud_evt_register_client(struct notifier_block *nb)
  22. {
  23. return -ENOSYS;
  24. }
  25. static inline int msm_aud_evt_unregister_client(struct notifier_block *nb)
  26. {
  27. return -ENOSYS;
  28. }
  29. static inline int msm_aud_evt_notifier_call_chain(unsigned long val, void *v)
  30. {
  31. return -ENOSYS;
  32. }
  33. #endif
  34. enum {
  35. MSM_AUD_DC_EVENT = 1,
  36. };
  37. #endif