omap-abe-twl6040.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * omap-abe-twl6040.h - ASoC machine driver OMAP4+ devices, header.
  3. *
  4. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
  5. * All rights reserved.
  6. *
  7. * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. * 02110-1301 USA
  22. */
  23. #ifndef _OMAP_ABE_TWL6040_H_
  24. #define _OMAP_ABE_TWL6040_H_
  25. /* To select if only one channel is connected in a stereo port */
  26. #define ABE_TWL6040_LEFT (1 << 0)
  27. #define ABE_TWL6040_RIGHT (1 << 1)
  28. struct omap_abe_twl6040_data {
  29. char *card_name;
  30. /* Feature flags for connected audio pins */
  31. u8 has_hs;
  32. u8 has_hf;
  33. bool has_ep;
  34. u8 has_aux;
  35. u8 has_vibra;
  36. bool has_dmic;
  37. bool has_hsmic;
  38. bool has_mainmic;
  39. bool has_submic;
  40. u8 has_afm;
  41. /* Other features */
  42. bool jack_detection; /* board can detect jack events */
  43. int mclk_freq; /* MCLK frequency speed for twl6040 */
  44. };
  45. #endif /* _OMAP_ABE_TWL6040_H_ */