max98095.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Platform data for MAX98095
  3. *
  4. * Copyright 2011 Maxim Integrated Products
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifndef __SOUND_MAX98095_PDATA_H__
  13. #define __SOUND_MAX98095_PDATA_H__
  14. /* Equalizer filter response configuration */
  15. struct max98095_eq_cfg {
  16. const char *name;
  17. unsigned int rate;
  18. u16 band1[5];
  19. u16 band2[5];
  20. u16 band3[5];
  21. u16 band4[5];
  22. u16 band5[5];
  23. };
  24. /* Biquad filter response configuration */
  25. struct max98095_biquad_cfg {
  26. const char *name;
  27. unsigned int rate;
  28. u16 band1[5];
  29. u16 band2[5];
  30. };
  31. /* codec platform data */
  32. struct max98095_pdata {
  33. /* Equalizers for DAI1 and DAI2 */
  34. struct max98095_eq_cfg *eq_cfg;
  35. unsigned int eq_cfgcnt;
  36. /* Biquad filter for DAI1 and DAI2 */
  37. struct max98095_biquad_cfg *bq_cfg;
  38. unsigned int bq_cfgcnt;
  39. /* Analog/digital microphone configuration:
  40. * 0 = analog microphone input (normal setting)
  41. * 1 = digital microphone input
  42. */
  43. unsigned int digmic_left_mode:1;
  44. unsigned int digmic_right_mode:1;
  45. /* Pin5 is the mechanical method of sensing jack insertion
  46. * but it is something that might not be supported.
  47. * 0 = PIN5 not supported
  48. * 1 = PIN5 supported
  49. */
  50. unsigned int jack_detect_pin5en:1;
  51. /* Slew amount for jack detection. Calculated as 4 * (delay + 1).
  52. * Default delay is 24 to get a time of 100ms.
  53. */
  54. unsigned int jack_detect_delay;
  55. };
  56. #endif