rt5665.h 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * linux/sound/rt5665.h -- Platform data for RT5665
  3. *
  4. * Copyright 2016 Realtek Microelectronics
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __LINUX_SND_RT5665_H
  11. #define __LINUX_SND_RT5665_H
  12. enum rt5665_dmic1_data_pin {
  13. RT5665_DMIC1_NULL,
  14. RT5665_DMIC1_DATA_GPIO4,
  15. RT5665_DMIC1_DATA_IN2N,
  16. };
  17. enum rt5665_dmic2_data_pin {
  18. RT5665_DMIC2_NULL,
  19. RT5665_DMIC2_DATA_GPIO5,
  20. RT5665_DMIC2_DATA_IN2P,
  21. };
  22. enum rt5665_jd_src {
  23. RT5665_JD_NULL,
  24. RT5665_JD1,
  25. };
  26. struct rt5665_platform_data {
  27. bool in1_diff;
  28. bool in2_diff;
  29. bool in3_diff;
  30. bool in4_diff;
  31. int ldo1_en; /* GPIO for LDO1_EN */
  32. enum rt5665_dmic1_data_pin dmic1_data_pin;
  33. enum rt5665_dmic2_data_pin dmic2_data_pin;
  34. enum rt5665_jd_src jd_src;
  35. unsigned int sar_hs_type;
  36. };
  37. #endif