rt5645.h 738 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * linux/sound/rt5645.h -- Platform data for RT5645
  3. *
  4. * Copyright 2013 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_RT5645_H
  11. #define __LINUX_SND_RT5645_H
  12. struct rt5645_platform_data {
  13. /* IN2 can optionally be differential */
  14. bool in2_diff;
  15. unsigned int dmic1_data_pin;
  16. /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
  17. unsigned int dmic2_data_pin;
  18. /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */
  19. unsigned int jd_mode;
  20. /* Use level triggered irq */
  21. bool level_trigger_irq;
  22. /* Invert JD1_1 status polarity */
  23. bool inv_jd1_1;
  24. };
  25. #endif