wm8993.h 1.2 KB

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