da9055.h 914 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * DA9055 ALSA Soc codec driver
  3. *
  4. * Copyright (c) 2012 Dialog Semiconductor
  5. *
  6. * Tested on (Samsung SMDK6410 board + DA9055 EVB) using I2S and I2C
  7. * Written by David Chen <david.chen@diasemi.com> and
  8. * Ashish Chavan <ashish.chavan@kpitcummins.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. #ifndef __SOUND_DA9055_H__
  16. #define __SOUND_DA9055_H__
  17. enum da9055_micbias_voltage {
  18. DA9055_MICBIAS_1_6V = 0,
  19. DA9055_MICBIAS_1_8V = 1,
  20. DA9055_MICBIAS_2_1V = 2,
  21. DA9055_MICBIAS_2_2V = 3,
  22. };
  23. struct da9055_platform_data {
  24. /* Selects which of the two MicBias pins acts as the bias source */
  25. bool micbias_source;
  26. /* Selects the micbias voltage */
  27. enum da9055_micbias_voltage micbias;
  28. };
  29. #endif