sdm660-cdc-irq.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) 2015-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. #ifndef __WCD9XXX_SPMI_IRQ_H__
  13. #define __WCD9XXX_SPMI_IRQ_H__
  14. #include <sound/soc.h>
  15. #include <linux/spmi.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/irq.h>
  18. #include <linux/pm_qos.h>
  19. extern void wcd9xxx_spmi_enable_irq(int irq);
  20. extern void wcd9xxx_spmi_disable_irq(int irq);
  21. extern int wcd9xxx_spmi_request_irq(int irq, irq_handler_t handler,
  22. const char *name, void *priv);
  23. extern int wcd9xxx_spmi_free_irq(int irq, void *priv);
  24. extern void wcd9xxx_spmi_set_codec(struct snd_soc_codec *codec);
  25. extern void wcd9xxx_spmi_set_dev(struct platform_device *spmi, int i);
  26. extern int wcd9xxx_spmi_irq_init(void);
  27. extern void wcd9xxx_spmi_irq_exit(void);
  28. extern int wcd9xxx_spmi_suspend(pm_message_t pmesg);
  29. extern int wcd9xxx_spmi_resume(void);
  30. bool wcd9xxx_spmi_lock_sleep(void);
  31. void wcd9xxx_spmi_unlock_sleep(void);
  32. #endif