AudDrv_Gpio.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (C) 2007 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*******************************************************************************
  17. *
  18. * Filename:
  19. * ---------
  20. * AudDrv_Gpio.h
  21. *
  22. * Project:
  23. * --------
  24. * MT6735 Audio Driver Gpio control
  25. *
  26. * Description:
  27. * ------------
  28. * Audio gpio control
  29. *
  30. * Author:
  31. * -------
  32. * George
  33. *
  34. *------------------------------------------------------------------------------
  35. *
  36. *
  37. *******************************************************************************/
  38. #ifndef _AUDDRV_GPIO_H_
  39. #define _AUDDRV_GPIO_H_
  40. /*****************************************************************************
  41. * C O M P I L E R F L A G S
  42. *****************************************************************************/
  43. /*****************************************************************************
  44. * E X T E R N A L R E F E R E N C E S
  45. *****************************************************************************/
  46. #include "AudDrv_Common.h"
  47. #include "AudDrv_Def.h"
  48. /*****************************************************************************
  49. * D A T A T Y P E S
  50. *****************************************************************************/
  51. /*****************************************************************************
  52. * M A C R O
  53. *****************************************************************************/
  54. /*****************************************************************************
  55. * FUNCTION D E F I N I T I O N
  56. *****************************************************************************/
  57. #if !defined(CONFIG_MTK_LEGACY)
  58. #include <linux/gpio.h>
  59. #else
  60. #include <mt-plat/mt_gpio.h>
  61. #endif
  62. #if !defined(CONFIG_MTK_LEGACY)
  63. void AudDrv_GPIO_probe(void *dev);
  64. int AudDrv_GPIO_PMIC_Select(int bEnable);
  65. int AudDrv_GPIO_I2S_Select(int bEnable);
  66. int AudDrv_GPIO_EXTAMP_Select(int bEnable);
  67. int AudDrv_GPIO_EXTAMP2_Select(int bEnable);
  68. int AudDrv_GPIO_RCVSPK_Select(int bEnable);
  69. #endif
  70. #endif