wm8993.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/sound/wm8993.h -- Platform data for WM8993
  4. *
  5. * Copyright 2009 Wolfson Microelectronics. PLC.
  6. */
  7. #ifndef __LINUX_SND_WM8993_H
  8. #define __LINUX_SND_WM8993_H
  9. /* Note that EQ1 only contains the enable/disable bit so will be
  10. ignored but is included for simplicity.
  11. */
  12. struct wm8993_retune_mobile_setting {
  13. const char *name;
  14. unsigned int rate;
  15. u16 config[24];
  16. };
  17. struct wm8993_platform_data {
  18. struct wm8993_retune_mobile_setting *retune_configs;
  19. int num_retune_configs;
  20. /* LINEOUT can be differential or single ended */
  21. unsigned int lineout1_diff:1;
  22. unsigned int lineout2_diff:1;
  23. /* Common mode feedback */
  24. unsigned int lineout1fb:1;
  25. unsigned int lineout2fb:1;
  26. /* Delay to add for microphones to stabalise after power up */
  27. int micbias1_delay;
  28. int micbias2_delay;
  29. /* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
  30. unsigned int micbias1_lvl:1;
  31. unsigned int micbias2_lvl:1;
  32. /* Jack detect threshold levels, see datasheet for values */
  33. unsigned int jd_scthr:2;
  34. unsigned int jd_thr:2;
  35. };
  36. #endif