omap-twl4030.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /**
  3. * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030
  4. * codec, header.
  5. *
  6. * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
  7. * All rights reserved.
  8. *
  9. * Author: Peter Ujfalusi <[email protected]>
  10. */
  11. #ifndef _OMAP_TWL4030_H_
  12. #define _OMAP_TWL4030_H_
  13. /* To select if only one channel is connected in a stereo port */
  14. #define OMAP_TWL4030_LEFT (1 << 0)
  15. #define OMAP_TWL4030_RIGHT (1 << 1)
  16. struct omap_tw4030_pdata {
  17. const char *card_name;
  18. /* Voice port is connected to McBSP3 */
  19. bool voice_connected;
  20. /* The driver will parse the connection flags if this flag is set */
  21. bool custom_routing;
  22. /* Flags to indicate connected audio ports. */
  23. u8 has_hs;
  24. u8 has_hf;
  25. u8 has_predriv;
  26. u8 has_carkit;
  27. bool has_ear;
  28. bool has_mainmic;
  29. bool has_submic;
  30. bool has_hsmic;
  31. bool has_carkitmic;
  32. bool has_digimic0;
  33. bool has_digimic1;
  34. u8 has_linein;
  35. /* Jack detect GPIO or <= 0 if it is not implemented */
  36. int jack_detect;
  37. };
  38. #endif /* _OMAP_TWL4030_H_ */