msm-dai-q6.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Copyright (c) 2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __MSM_DAI_Q6_PDATA_H__
  13. #define __MSM_DAI_Q6_PDATA_H__
  14. #define MSM_MI2S_SD0 (1 << 0)
  15. #define MSM_MI2S_SD1 (1 << 1)
  16. #define MSM_MI2S_SD2 (1 << 2)
  17. #define MSM_MI2S_SD3 (1 << 3)
  18. #define MSM_MI2S_CAP_RX 0
  19. #define MSM_MI2S_CAP_TX 1
  20. struct msm_dai_auxpcm_config {
  21. u16 mode;
  22. u16 sync;
  23. u16 frame;
  24. u16 quant;
  25. u16 slot;
  26. u16 data;
  27. int pcm_clk_rate;
  28. };
  29. struct msm_mi2s_pdata {
  30. u16 rx_sd_lines;
  31. u16 tx_sd_lines;
  32. };
  33. struct msm_dai_auxpcm_pdata {
  34. const char *clk;
  35. struct msm_dai_auxpcm_config mode_8k;
  36. struct msm_dai_auxpcm_config mode_16k;
  37. };
  38. #endif