audio_ocmem.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (c) 2012, 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. #ifndef _AUDIO_OCMEM_H_
  13. #define _AUDIO_OCMEM_H_
  14. #include <linux/module.h>
  15. #include <linux/notifier.h>
  16. #include <mach/ocmem.h>
  17. #define AUDIO 0
  18. #define VOICE 1
  19. #ifdef CONFIG_AUDIO_OCMEM
  20. int audio_ocmem_process_req(int id, bool enable);
  21. int voice_ocmem_process_req(int cid, bool enable);
  22. int enable_ocmem_after_voice(int cid);
  23. int disable_ocmem_for_voice(int cid);
  24. #else
  25. static inline int audio_ocmem_process_req(int id, bool enable)\
  26. { return 0; }
  27. static inline int voice_ocmem_process_req(int cid, bool enable)\
  28. { return 0; }
  29. static inline int enable_ocmem_after_voice(int cid) { return 0; }
  30. static inline int disable_ocmem_for_voice(int cid) { return 0; }
  31. #endif
  32. #endif