adau1373.h 699 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Analog Devices ADAU1373 Audio Codec drive
  3. *
  4. * Copyright 2011 Analog Devices Inc.
  5. * Author: Lars-Peter Clausen <lars@metafoo.de>
  6. *
  7. * Licensed under the GPL-2 or later.
  8. */
  9. #ifndef __SOUND_ADAU1373_H__
  10. #define __SOUND_ADAU1373_H__
  11. enum adau1373_micbias_voltage {
  12. ADAU1373_MICBIAS_2_9V = 0,
  13. ADAU1373_MICBIAS_2_2V = 1,
  14. ADAU1373_MICBIAS_2_6V = 2,
  15. ADAU1373_MICBIAS_1_8V = 3,
  16. };
  17. #define ADAU1373_DRC_SIZE 13
  18. struct adau1373_platform_data {
  19. bool input_differential[4];
  20. bool lineout_differential;
  21. bool lineout_ground_sense;
  22. unsigned int num_drc;
  23. uint8_t drc_setting[3][ADAU1373_DRC_SIZE];
  24. enum adau1373_micbias_voltage micbias1;
  25. enum adau1373_micbias_voltage micbias2;
  26. };
  27. #endif