msm-audio-defs-v2.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #ifndef _MSM_AUDIO_DEFS_V2_H
  5. #define _MSM_AUDIO_DEFS_V2_H
  6. /*
  7. * These names are used by HAL to specify the BE. If any changes are
  8. * made to the string names or the max name length corresponding
  9. * changes need to be made in the HAL to ensure they still match.
  10. */
  11. #define LPASS_BE_NAME_MAX_LENGTH 24
  12. #define LPASS_BE_PRI_I2S_RX "PRIMARY_I2S_RX"
  13. #define LPASS_BE_PRI_I2S_TX "PRIMARY_I2S_TX"
  14. #define LPASS_BE_SLIMBUS_0_RX "SLIMBUS_0_RX"
  15. #define LPASS_BE_SLIMBUS_0_TX "SLIMBUS_0_TX"
  16. #define LPASS_BE_HDMI "HDMI"
  17. #define LPASS_BE_DISPLAY_PORT "DISPLAY_PORT"
  18. #define LPASS_BE_DISPLAY_PORT1 "DISPLAY_PORT1"
  19. #define LPASS_BE_INT_BT_SCO_RX "INT_BT_SCO_RX"
  20. #define LPASS_BE_INT_BT_SCO_TX "INT_BT_SCO_TX"
  21. #define LPASS_BE_INT_BT_A2DP_RX "INT_BT_A2DP_RX"
  22. #define LPASS_BE_INT_FM_RX "INT_FM_RX"
  23. #define LPASS_BE_INT_FM_TX "INT_FM_TX"
  24. #define LPASS_BE_AFE_PCM_RX "RT_PROXY_DAI_001_RX"
  25. #define LPASS_BE_AFE_PCM_TX "RT_PROXY_DAI_002_TX"
  26. #define LPASS_BE_AUXPCM_RX "AUX_PCM_RX"
  27. #define LPASS_BE_AUXPCM_TX "AUX_PCM_TX"
  28. #define LPASS_BE_SEC_AUXPCM_RX "SEC_AUX_PCM_RX"
  29. #define LPASS_BE_SEC_AUXPCM_TX "SEC_AUX_PCM_TX"
  30. #define LPASS_BE_TERT_AUXPCM_RX "TERT_AUX_PCM_RX"
  31. #define LPASS_BE_TERT_AUXPCM_TX "TERT_AUX_PCM_TX"
  32. #define LPASS_BE_QUAT_AUXPCM_RX "QUAT_AUX_PCM_RX"
  33. #define LPASS_BE_QUAT_AUXPCM_TX "QUAT_AUX_PCM_TX"
  34. #define LPASS_BE_QUIN_AUXPCM_RX "QUIN_AUX_PCM_RX"
  35. #define LPASS_BE_QUIN_AUXPCM_TX "QUIN_AUX_PCM_TX"
  36. #define LPASS_BE_SEN_AUXPCM_RX "SEN_AUX_PCM_RX"
  37. #define LPASS_BE_SEN_AUXPCM_TX "SEN_AUX_PCM_TX"
  38. #define LPASS_BE_VOICE_PLAYBACK_TX "VOICE_PLAYBACK_TX"
  39. #define LPASS_BE_VOICE2_PLAYBACK_TX "VOICE2_PLAYBACK_TX"
  40. #define LPASS_BE_INCALL_RECORD_RX "INCALL_RECORD_RX"
  41. #define LPASS_BE_INCALL_RECORD_TX "INCALL_RECORD_TX"
  42. #define LPASS_BE_SEC_I2S_RX "SECONDARY_I2S_RX"
  43. #define LPASS_BE_PRI_SPDIF_RX "PRI_SPDIF_RX"
  44. #define LPASS_BE_PRI_SPDIF_TX "PRI_SPDIF_TX"
  45. #define LPASS_BE_SEC_SPDIF_RX "SEC_SPDIF_RX"
  46. #define LPASS_BE_SEC_SPDIF_TX "SEC_SPDIF_TX"
  47. #define LPASS_BE_MI2S_RX "MI2S_RX"
  48. #define LPASS_BE_MI2S_TX "MI2S_TX"
  49. #define LPASS_BE_QUAT_MI2S_RX "QUAT_MI2S_RX"
  50. #define LPASS_BE_QUAT_MI2S_TX "QUAT_MI2S_TX"
  51. #define LPASS_BE_SEC_MI2S_RX "SEC_MI2S_RX"
  52. #define LPASS_BE_SEC_MI2S_RX_SD1 "SEC_MI2S_RX_SD1"
  53. #define LPASS_BE_SEC_MI2S_TX "SEC_MI2S_TX"
  54. #define LPASS_BE_PRI_MI2S_RX "PRI_MI2S_RX"
  55. #define LPASS_BE_PRI_MI2S_TX "PRI_MI2S_TX"
  56. #define LPASS_BE_TERT_MI2S_RX "TERT_MI2S_RX"
  57. #define LPASS_BE_TERT_MI2S_TX "TERT_MI2S_TX"
  58. #define LPASS_BE_AUDIO_I2S_RX "AUDIO_I2S_RX"
  59. #define LPASS_BE_STUB_RX "STUB_RX"
  60. #define LPASS_BE_STUB_TX "STUB_TX"
  61. #define LPASS_BE_SLIMBUS_1_RX "SLIMBUS_1_RX"
  62. #define LPASS_BE_SLIMBUS_1_TX "SLIMBUS_1_TX"
  63. #define LPASS_BE_STUB_1_TX "STUB_1_TX"
  64. #define LPASS_BE_SLIMBUS_2_RX "SLIMBUS_2_RX"
  65. #define LPASS_BE_SLIMBUS_2_TX "SLIMBUS_2_TX"
  66. #define LPASS_BE_SLIMBUS_3_RX "SLIMBUS_3_RX"
  67. #define LPASS_BE_SLIMBUS_3_TX "SLIMBUS_3_TX"
  68. #define LPASS_BE_SLIMBUS_4_RX "SLIMBUS_4_RX"
  69. #define LPASS_BE_SLIMBUS_4_TX "SLIMBUS_4_TX"
  70. #define LPASS_BE_SLIMBUS_TX_VI "SLIMBUS_TX_VI"
  71. #define LPASS_BE_SLIMBUS_5_RX "SLIMBUS_5_RX"
  72. #define LPASS_BE_SLIMBUS_5_TX "SLIMBUS_5_TX"
  73. #define LPASS_BE_SLIMBUS_6_RX "SLIMBUS_6_RX"
  74. #define LPASS_BE_SLIMBUS_6_TX "SLIMBUS_6_TX"
  75. #define LPASS_BE_QUIN_MI2S_RX "QUIN_MI2S_RX"
  76. #define LPASS_BE_QUIN_MI2S_TX "QUIN_MI2S_TX"
  77. #define LPASS_BE_SENARY_MI2S_TX "SENARY_MI2S_TX"
  78. #define LPASS_BE_SENARY_MI2S_RX "SENARY_MI2S_RX"
  79. #define LPASS_BE_PRI_META_MI2S_RX "PRI_META_MI2S_RX"
  80. #define LPASS_BE_SEC_META_MI2S_RX "SEC_META_MI2S_RX"
  81. #define LPASS_BE_PRI_TDM_RX_0 "PRI_TDM_RX_0"
  82. #define LPASS_BE_PRI_TDM_TX_0 "PRI_TDM_TX_0"
  83. #define LPASS_BE_PRI_TDM_RX_1 "PRI_TDM_RX_1"
  84. #define LPASS_BE_PRI_TDM_TX_1 "PRI_TDM_TX_1"
  85. #define LPASS_BE_PRI_TDM_RX_2 "PRI_TDM_RX_2"
  86. #define LPASS_BE_PRI_TDM_TX_2 "PRI_TDM_TX_2"
  87. #define LPASS_BE_PRI_TDM_RX_3 "PRI_TDM_RX_3"
  88. #define LPASS_BE_PRI_TDM_TX_3 "PRI_TDM_TX_3"
  89. #define LPASS_BE_PRI_TDM_RX_4 "PRI_TDM_RX_4"
  90. #define LPASS_BE_PRI_TDM_TX_4 "PRI_TDM_TX_4"
  91. #define LPASS_BE_PRI_TDM_RX_5 "PRI_TDM_RX_5"
  92. #define LPASS_BE_PRI_TDM_TX_5 "PRI_TDM_TX_5"
  93. #define LPASS_BE_PRI_TDM_RX_6 "PRI_TDM_RX_6"
  94. #define LPASS_BE_PRI_TDM_TX_6 "PRI_TDM_TX_6"
  95. #define LPASS_BE_PRI_TDM_RX_7 "PRI_TDM_RX_7"
  96. #define LPASS_BE_PRI_TDM_TX_7 "PRI_TDM_TX_7"
  97. #define LPASS_BE_SEC_TDM_RX_0 "SEC_TDM_RX_0"
  98. #define LPASS_BE_SEC_TDM_TX_0 "SEC_TDM_TX_0"
  99. #define LPASS_BE_SEC_TDM_RX_1 "SEC_TDM_RX_1"
  100. #define LPASS_BE_SEC_TDM_TX_1 "SEC_TDM_TX_1"
  101. #define LPASS_BE_SEC_TDM_RX_2 "SEC_TDM_RX_2"
  102. #define LPASS_BE_SEC_TDM_TX_2 "SEC_TDM_TX_2"
  103. #define LPASS_BE_SEC_TDM_RX_3 "SEC_TDM_RX_3"
  104. #define LPASS_BE_SEC_TDM_TX_3 "SEC_TDM_TX_3"
  105. #define LPASS_BE_SEC_TDM_RX_4 "SEC_TDM_RX_4"
  106. #define LPASS_BE_SEC_TDM_TX_4 "SEC_TDM_TX_4"
  107. #define LPASS_BE_SEC_TDM_RX_5 "SEC_TDM_RX_5"
  108. #define LPASS_BE_SEC_TDM_TX_5 "SEC_TDM_TX_5"
  109. #define LPASS_BE_SEC_TDM_RX_6 "SEC_TDM_RX_6"
  110. #define LPASS_BE_SEC_TDM_TX_6 "SEC_TDM_TX_6"
  111. #define LPASS_BE_SEC_TDM_RX_7 "SEC_TDM_RX_7"
  112. #define LPASS_BE_SEC_TDM_TX_7 "SEC_TDM_TX_7"
  113. #define LPASS_BE_TERT_TDM_RX_0 "TERT_TDM_RX_0"
  114. #define LPASS_BE_TERT_TDM_TX_0 "TERT_TDM_TX_0"
  115. #define LPASS_BE_TERT_TDM_RX_1 "TERT_TDM_RX_1"
  116. #define LPASS_BE_TERT_TDM_TX_1 "TERT_TDM_TX_1"
  117. #define LPASS_BE_TERT_TDM_RX_2 "TERT_TDM_RX_2"
  118. #define LPASS_BE_TERT_TDM_TX_2 "TERT_TDM_TX_2"
  119. #define LPASS_BE_TERT_TDM_RX_3 "TERT_TDM_RX_3"
  120. #define LPASS_BE_TERT_TDM_TX_3 "TERT_TDM_TX_3"
  121. #define LPASS_BE_TERT_TDM_RX_4 "TERT_TDM_RX_4"
  122. #define LPASS_BE_TERT_TDM_TX_4 "TERT_TDM_TX_4"
  123. #define LPASS_BE_TERT_TDM_RX_5 "TERT_TDM_RX_5"
  124. #define LPASS_BE_TERT_TDM_TX_5 "TERT_TDM_TX_5"
  125. #define LPASS_BE_TERT_TDM_RX_6 "TERT_TDM_RX_6"
  126. #define LPASS_BE_TERT_TDM_TX_6 "TERT_TDM_TX_6"
  127. #define LPASS_BE_TERT_TDM_RX_7 "TERT_TDM_RX_7"
  128. #define LPASS_BE_TERT_TDM_TX_7 "TERT_TDM_TX_7"
  129. #define LPASS_BE_QUAT_TDM_RX_0 "QUAT_TDM_RX_0"
  130. #define LPASS_BE_QUAT_TDM_TX_0 "QUAT_TDM_TX_0"
  131. #define LPASS_BE_QUAT_TDM_RX_1 "QUAT_TDM_RX_1"
  132. #define LPASS_BE_QUAT_TDM_TX_1 "QUAT_TDM_TX_1"
  133. #define LPASS_BE_QUAT_TDM_RX_2 "QUAT_TDM_RX_2"
  134. #define LPASS_BE_QUAT_TDM_TX_2 "QUAT_TDM_TX_2"
  135. #define LPASS_BE_QUAT_TDM_RX_3 "QUAT_TDM_RX_3"
  136. #define LPASS_BE_QUAT_TDM_TX_3 "QUAT_TDM_TX_3"
  137. #define LPASS_BE_QUAT_TDM_RX_4 "QUAT_TDM_RX_4"
  138. #define LPASS_BE_QUAT_TDM_TX_4 "QUAT_TDM_TX_4"
  139. #define LPASS_BE_QUAT_TDM_RX_5 "QUAT_TDM_RX_5"
  140. #define LPASS_BE_QUAT_TDM_TX_5 "QUAT_TDM_TX_5"
  141. #define LPASS_BE_QUAT_TDM_RX_6 "QUAT_TDM_RX_6"
  142. #define LPASS_BE_QUAT_TDM_TX_6 "QUAT_TDM_TX_6"
  143. #define LPASS_BE_QUAT_TDM_RX_7 "QUAT_TDM_RX_7"
  144. #define LPASS_BE_QUAT_TDM_TX_7 "QUAT_TDM_TX_7"
  145. #define LPASS_BE_AFE_LOOPBACK_TX "AFE_LOOPBACK_TX"
  146. #define LPASS_BE_QUIN_TDM_RX_0 "QUIN_TDM_RX_0"
  147. #define LPASS_BE_QUIN_TDM_TX_0 "QUIN_TDM_TX_0"
  148. #define LPASS_BE_QUIN_TDM_RX_1 "QUIN_TDM_RX_1"
  149. #define LPASS_BE_QUIN_TDM_TX_1 "QUIN_TDM_TX_1"
  150. #define LPASS_BE_QUIN_TDM_RX_2 "QUIN_TDM_RX_2"
  151. #define LPASS_BE_QUIN_TDM_TX_2 "QUIN_TDM_TX_2"
  152. #define LPASS_BE_QUIN_TDM_RX_3 "QUIN_TDM_RX_3"
  153. #define LPASS_BE_QUIN_TDM_TX_3 "QUIN_TDM_TX_3"
  154. #define LPASS_BE_QUIN_TDM_RX_4 "QUIN_TDM_RX_4"
  155. #define LPASS_BE_QUIN_TDM_TX_4 "QUIN_TDM_TX_4"
  156. #define LPASS_BE_QUIN_TDM_RX_5 "QUIN_TDM_RX_5"
  157. #define LPASS_BE_QUIN_TDM_TX_5 "QUIN_TDM_TX_5"
  158. #define LPASS_BE_QUIN_TDM_RX_6 "QUIN_TDM_RX_6"
  159. #define LPASS_BE_QUIN_TDM_TX_6 "QUIN_TDM_TX_6"
  160. #define LPASS_BE_QUIN_TDM_RX_7 "QUIN_TDM_RX_7"
  161. #define LPASS_BE_QUIN_TDM_TX_7 "QUIN_TDM_TX_7"
  162. #define LPASS_BE_SEN_TDM_RX_0 "SEN_TDM_RX_0"
  163. #define LPASS_BE_SEN_TDM_TX_0 "SEN_TDM_TX_0"
  164. #define LPASS_BE_SEN_TDM_RX_1 "SEN_TDM_RX_1"
  165. #define LPASS_BE_SEN_TDM_TX_1 "SEN_TDM_TX_1"
  166. #define LPASS_BE_SEN_TDM_RX_2 "SEN_TDM_RX_2"
  167. #define LPASS_BE_SEN_TDM_TX_2 "SEN_TDM_TX_2"
  168. #define LPASS_BE_SEN_TDM_RX_3 "SEN_TDM_RX_3"
  169. #define LPASS_BE_SEN_TDM_TX_3 "SEN_TDM_TX_3"
  170. #define LPASS_BE_SEN_TDM_RX_4 "SEN_TDM_RX_4"
  171. #define LPASS_BE_SEN_TDM_TX_4 "SEN_TDM_TX_4"
  172. #define LPASS_BE_SEN_TDM_RX_5 "SEN_TDM_RX_5"
  173. #define LPASS_BE_SEN_TDM_TX_5 "SEN_TDM_TX_5"
  174. #define LPASS_BE_SEN_TDM_RX_6 "SEN_TDM_RX_6"
  175. #define LPASS_BE_SEN_TDM_TX_6 "SEN_TDM_TX_6"
  176. #define LPASS_BE_SEN_TDM_RX_7 "SEN_TDM_RX_7"
  177. #define LPASS_BE_SEN_TDM_TX_7 "SEN_TDM_TX_7"
  178. #define LPASS_BE_SLIMBUS_7_RX "SLIMBUS_7_RX"
  179. #define LPASS_BE_SLIMBUS_7_TX "SLIMBUS_7_TX"
  180. #define LPASS_BE_SLIMBUS_8_RX "SLIMBUS_8_RX"
  181. #define LPASS_BE_SLIMBUS_8_TX "SLIMBUS_8_TX"
  182. #define LPASS_BE_SLIMBUS_9_RX "SLIMBUS_9_RX"
  183. #define LPASS_BE_SLIMBUS_9_TX "SLIMBUS_9_TX"
  184. #define LPASS_BE_USB_AUDIO_RX "USB_AUDIO_RX"
  185. #define LPASS_BE_USB_AUDIO_TX "USB_AUDIO_TX"
  186. #define LPASS_BE_INT0_MI2S_RX "INT0_MI2S_RX"
  187. #define LPASS_BE_INT0_MI2S_TX "INT0_MI2S_TX"
  188. #define LPASS_BE_INT1_MI2S_RX "INT1_MI2S_RX"
  189. #define LPASS_BE_INT1_MI2S_TX "INT1_MI2S_TX"
  190. #define LPASS_BE_INT2_MI2S_RX "INT2_MI2S_RX"
  191. #define LPASS_BE_INT2_MI2S_TX "INT2_MI2S_TX"
  192. #define LPASS_BE_INT3_MI2S_RX "INT3_MI2S_RX"
  193. #define LPASS_BE_INT3_MI2S_TX "INT3_MI2S_TX"
  194. #define LPASS_BE_INT4_MI2S_RX "INT4_MI2S_RX"
  195. #define LPASS_BE_INT4_MI2S_TX "INT4_MI2S_TX"
  196. #define LPASS_BE_INT5_MI2S_RX "INT5_MI2S_RX"
  197. #define LPASS_BE_INT5_MI2S_TX "INT5_MI2S_TX"
  198. #define LPASS_BE_INT6_MI2S_RX "INT6_MI2S_RX"
  199. #define LPASS_BE_INT6_MI2S_TX "INT6_MI2S_TX"
  200. #define LPASS_BE_WSA_CDC_DMA_RX_0 "WSA_CDC_DMA_RX_0"
  201. #define LPASS_BE_WSA_CDC_DMA_TX_0 "WSA_CDC_DMA_TX_0"
  202. #define LPASS_BE_WSA_CDC_DMA_RX_1 "WSA_CDC_DMA_RX_1"
  203. #define LPASS_BE_WSA_CDC_DMA_TX_1 "WSA_CDC_DMA_TX_1"
  204. #define LPASS_BE_WSA_CDC_DMA_TX_2 "WSA_CDC_DMA_TX_2"
  205. #define LPASS_BE_VA_CDC_DMA_TX_0 "VA_CDC_DMA_TX_0"
  206. #define LPASS_BE_VA_CDC_DMA_TX_1 "VA_CDC_DMA_TX_1"
  207. #define LPASS_BE_VA_CDC_DMA_TX_2 "VA_CDC_DMA_TX_2"
  208. #define LPASS_BE_RX_CDC_DMA_RX_0 "RX_CDC_DMA_RX_0"
  209. #define LPASS_BE_RX_CDC_DMA_RX_1 "RX_CDC_DMA_RX_1"
  210. #define LPASS_BE_RX_CDC_DMA_RX_2 "RX_CDC_DMA_RX_2"
  211. #define LPASS_BE_RX_CDC_DMA_RX_3 "RX_CDC_DMA_RX_3"
  212. #define LPASS_BE_RX_CDC_DMA_RX_4 "RX_CDC_DMA_RX_4"
  213. #define LPASS_BE_RX_CDC_DMA_RX_5 "RX_CDC_DMA_RX_5"
  214. #define LPASS_BE_RX_CDC_DMA_RX_6 "RX_CDC_DMA_RX_6"
  215. #define LPASS_BE_RX_CDC_DMA_RX_7 "RX_CDC_DMA_RX_7"
  216. #define LPASS_BE_TX_CDC_DMA_TX_0 "TX_CDC_DMA_TX_0"
  217. #define LPASS_BE_TX_CDC_DMA_TX_1 "TX_CDC_DMA_TX_1"
  218. #define LPASS_BE_TX_CDC_DMA_TX_2 "TX_CDC_DMA_TX_2"
  219. #define LPASS_BE_TX_CDC_DMA_TX_3 "TX_CDC_DMA_TX_3"
  220. #define LPASS_BE_TX_CDC_DMA_TX_4 "TX_CDC_DMA_TX_4"
  221. #define LPASS_BE_TX_CDC_DMA_TX_5 "TX_CDC_DMA_TX_5"
  222. /* For multimedia front-ends, asm session is allocated dynamically.
  223. * Hence, asm session/multimedia front-end mapping has to be maintained.
  224. * Due to this reason, additional multimedia front-end must be placed before
  225. * non-multimedia front-ends.
  226. */
  227. enum {
  228. MSM_FRONTEND_DAI_MULTIMEDIA1 = 0,
  229. MSM_FRONTEND_DAI_MULTIMEDIA2,
  230. MSM_FRONTEND_DAI_MULTIMEDIA3,
  231. MSM_FRONTEND_DAI_MULTIMEDIA4,
  232. MSM_FRONTEND_DAI_MULTIMEDIA5,
  233. MSM_FRONTEND_DAI_MULTIMEDIA6,
  234. MSM_FRONTEND_DAI_MULTIMEDIA7,
  235. MSM_FRONTEND_DAI_MULTIMEDIA8,
  236. MSM_FRONTEND_DAI_MULTIMEDIA9,
  237. MSM_FRONTEND_DAI_MULTIMEDIA10,
  238. MSM_FRONTEND_DAI_MULTIMEDIA11,
  239. MSM_FRONTEND_DAI_MULTIMEDIA12,
  240. MSM_FRONTEND_DAI_MULTIMEDIA13,
  241. MSM_FRONTEND_DAI_MULTIMEDIA14,
  242. MSM_FRONTEND_DAI_MULTIMEDIA15,
  243. MSM_FRONTEND_DAI_MULTIMEDIA16,
  244. MSM_FRONTEND_DAI_MULTIMEDIA17,
  245. MSM_FRONTEND_DAI_MULTIMEDIA18,
  246. MSM_FRONTEND_DAI_MULTIMEDIA19,
  247. MSM_FRONTEND_DAI_MULTIMEDIA20,
  248. MSM_FRONTEND_DAI_MULTIMEDIA21,
  249. MSM_FRONTEND_DAI_MULTIMEDIA22,
  250. MSM_FRONTEND_DAI_MULTIMEDIA26,
  251. MSM_FRONTEND_DAI_MULTIMEDIA27,
  252. MSM_FRONTEND_DAI_MULTIMEDIA28,
  253. MSM_FRONTEND_DAI_MULTIMEDIA29,
  254. MSM_FRONTEND_DAI_MULTIMEDIA30,
  255. MSM_FRONTEND_DAI_VOIP,
  256. MSM_FRONTEND_DAI_AFE_RX,
  257. MSM_FRONTEND_DAI_AFE_TX,
  258. MSM_FRONTEND_DAI_VOICE_STUB,
  259. MSM_FRONTEND_DAI_DTMF_RX,
  260. MSM_FRONTEND_DAI_QCHAT,
  261. MSM_FRONTEND_DAI_VOLTE_STUB,
  262. MSM_FRONTEND_DAI_LSM1,
  263. MSM_FRONTEND_DAI_LSM2,
  264. MSM_FRONTEND_DAI_LSM3,
  265. MSM_FRONTEND_DAI_LSM4,
  266. MSM_FRONTEND_DAI_LSM5,
  267. MSM_FRONTEND_DAI_LSM6,
  268. MSM_FRONTEND_DAI_LSM7,
  269. MSM_FRONTEND_DAI_LSM8,
  270. MSM_FRONTEND_DAI_VOICE2_STUB,
  271. MSM_FRONTEND_DAI_VOICEMMODE1,
  272. MSM_FRONTEND_DAI_VOICEMMODE2,
  273. MSM_FRONTEND_DAI_MAX,
  274. };
  275. #define MSM_FRONTEND_DAI_MM_SIZE (MSM_FRONTEND_DAI_MULTIMEDIA30 + 1)
  276. #define MSM_FRONTEND_DAI_MM_MAX_ID MSM_FRONTEND_DAI_MULTIMEDIA30
  277. enum {
  278. MSM_BACKEND_DAI_PRI_I2S_RX = 0,
  279. MSM_BACKEND_DAI_PRI_I2S_TX,
  280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  281. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  282. MSM_BACKEND_DAI_HDMI_RX,
  283. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  284. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  285. MSM_BACKEND_DAI_INT_FM_RX,
  286. MSM_BACKEND_DAI_INT_FM_TX,
  287. MSM_BACKEND_DAI_AFE_PCM_RX,
  288. MSM_BACKEND_DAI_AFE_PCM_TX,
  289. MSM_BACKEND_DAI_AUXPCM_RX,
  290. MSM_BACKEND_DAI_AUXPCM_TX,
  291. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  292. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  293. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  294. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  295. MSM_BACKEND_DAI_MI2S_RX,
  296. MSM_BACKEND_DAI_MI2S_TX,
  297. MSM_BACKEND_DAI_SEC_I2S_RX,
  298. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  299. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  300. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  301. MSM_BACKEND_DAI_SLIMBUS_2_TX,
  302. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  303. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  304. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  305. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  306. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  307. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  308. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  309. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  310. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  311. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  312. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  313. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  314. MSM_BACKEND_DAI_EXTPROC_RX,
  315. MSM_BACKEND_DAI_EXTPROC_TX,
  316. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  318. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  319. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  320. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  321. MSM_BACKEND_DAI_PRI_MI2S_RX,
  322. MSM_BACKEND_DAI_PRI_MI2S_TX,
  323. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  324. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  325. MSM_BACKEND_DAI_AUDIO_I2S_RX,
  326. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  327. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  328. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  329. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  330. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  331. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  332. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  333. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  334. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  335. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  336. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  337. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  338. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  339. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  340. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  341. MSM_BACKEND_DAI_PRI_TDM_RX_4,
  342. MSM_BACKEND_DAI_PRI_TDM_TX_4,
  343. MSM_BACKEND_DAI_PRI_TDM_RX_5,
  344. MSM_BACKEND_DAI_PRI_TDM_TX_5,
  345. MSM_BACKEND_DAI_PRI_TDM_RX_6,
  346. MSM_BACKEND_DAI_PRI_TDM_TX_6,
  347. MSM_BACKEND_DAI_PRI_TDM_RX_7,
  348. MSM_BACKEND_DAI_PRI_TDM_TX_7,
  349. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  350. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  351. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  352. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  353. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  354. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  355. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  356. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  357. MSM_BACKEND_DAI_SEC_TDM_RX_4,
  358. MSM_BACKEND_DAI_SEC_TDM_TX_4,
  359. MSM_BACKEND_DAI_SEC_TDM_RX_5,
  360. MSM_BACKEND_DAI_SEC_TDM_TX_5,
  361. MSM_BACKEND_DAI_SEC_TDM_RX_6,
  362. MSM_BACKEND_DAI_SEC_TDM_TX_6,
  363. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  364. MSM_BACKEND_DAI_SEC_TDM_TX_7,
  365. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  366. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  367. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  368. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  369. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  370. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  372. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  373. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  374. MSM_BACKEND_DAI_TERT_TDM_TX_4,
  375. MSM_BACKEND_DAI_TERT_TDM_RX_5,
  376. MSM_BACKEND_DAI_TERT_TDM_TX_5,
  377. MSM_BACKEND_DAI_TERT_TDM_RX_6,
  378. MSM_BACKEND_DAI_TERT_TDM_TX_6,
  379. MSM_BACKEND_DAI_TERT_TDM_RX_7,
  380. MSM_BACKEND_DAI_TERT_TDM_TX_7,
  381. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  382. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  383. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  384. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  386. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  387. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  388. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  389. MSM_BACKEND_DAI_QUAT_TDM_RX_4,
  390. MSM_BACKEND_DAI_QUAT_TDM_TX_4,
  391. MSM_BACKEND_DAI_QUAT_TDM_RX_5,
  392. MSM_BACKEND_DAI_QUAT_TDM_TX_5,
  393. MSM_BACKEND_DAI_QUAT_TDM_RX_6,
  394. MSM_BACKEND_DAI_QUAT_TDM_TX_6,
  395. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  396. MSM_BACKEND_DAI_QUAT_TDM_TX_7,
  397. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  398. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  399. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  401. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  402. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  403. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  404. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  405. MSM_BACKEND_DAI_QUIN_TDM_RX_4,
  406. MSM_BACKEND_DAI_QUIN_TDM_TX_4,
  407. MSM_BACKEND_DAI_QUIN_TDM_RX_5,
  408. MSM_BACKEND_DAI_QUIN_TDM_TX_5,
  409. MSM_BACKEND_DAI_QUIN_TDM_RX_6,
  410. MSM_BACKEND_DAI_QUIN_TDM_TX_6,
  411. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  412. MSM_BACKEND_DAI_QUIN_TDM_TX_7,
  413. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  414. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  415. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  416. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  417. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  418. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  419. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  420. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  421. MSM_BACKEND_DAI_SEN_TDM_RX_4,
  422. MSM_BACKEND_DAI_SEN_TDM_TX_4,
  423. MSM_BACKEND_DAI_SEN_TDM_RX_5,
  424. MSM_BACKEND_DAI_SEN_TDM_TX_5,
  425. MSM_BACKEND_DAI_SEN_TDM_RX_6,
  426. MSM_BACKEND_DAI_SEN_TDM_TX_6,
  427. MSM_BACKEND_DAI_SEN_TDM_RX_7,
  428. MSM_BACKEND_DAI_SEN_TDM_TX_7,
  429. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  430. MSM_BACKEND_DAI_USB_RX,
  431. MSM_BACKEND_DAI_USB_TX,
  432. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  433. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  434. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  435. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  436. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  437. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  438. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  439. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  440. MSM_BACKEND_DAI_INT0_MI2S_RX,
  441. MSM_BACKEND_DAI_INT0_MI2S_TX,
  442. MSM_BACKEND_DAI_INT1_MI2S_RX,
  443. MSM_BACKEND_DAI_INT1_MI2S_TX,
  444. MSM_BACKEND_DAI_INT2_MI2S_RX,
  445. MSM_BACKEND_DAI_INT2_MI2S_TX,
  446. MSM_BACKEND_DAI_INT3_MI2S_RX,
  447. MSM_BACKEND_DAI_INT3_MI2S_TX,
  448. MSM_BACKEND_DAI_INT4_MI2S_RX,
  449. MSM_BACKEND_DAI_INT4_MI2S_TX,
  450. MSM_BACKEND_DAI_INT5_MI2S_RX,
  451. MSM_BACKEND_DAI_INT5_MI2S_TX,
  452. MSM_BACKEND_DAI_INT6_MI2S_RX,
  453. MSM_BACKEND_DAI_INT6_MI2S_TX,
  454. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  455. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  456. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  461. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  462. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  463. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  465. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  467. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  469. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  475. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  479. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  480. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  481. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  482. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  483. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  484. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  485. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  486. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  487. MSM_BACKEND_DAI_MAX,
  488. };
  489. #endif /*_MSM_PCM_H*/