msm_dailink.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #include <sound/soc.h>
  6. SND_SOC_DAILINK_DEFS(usb_audio_rx,
  7. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  8. DAILINK_COMP_ARRAY(COMP_DUMMY()),
  9. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  10. SND_SOC_DAILINK_DEFS(usb_audio_tx,
  11. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  12. DAILINK_COMP_ARRAY(COMP_DUMMY()),
  13. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  14. SND_SOC_DAILINK_DEFS(slimbus_7_rx,
  15. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  16. DAILINK_COMP_ARRAY(COMP_CODEC("btfmslim_slave",
  17. "btfm_bt_sco_a2dp_slim_rx")),
  18. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  19. SND_SOC_DAILINK_DEFS(slimbus_7_tx,
  20. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  21. DAILINK_COMP_ARRAY(COMP_CODEC("btfmslim_slave",
  22. "btfm_bt_sco_slim_tx")),
  23. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  24. SND_SOC_DAILINK_DEFS(display_port,
  25. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  26. DAILINK_COMP_ARRAY(COMP_CODEC("msm-ext-disp-audio-codec-rx",
  27. "msm_dp_audio_codec_rx_dai")),
  28. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  29. SND_SOC_DAILINK_DEFS(display_port1,
  30. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  31. DAILINK_COMP_ARRAY(COMP_CODEC("msm-ext-disp-audio-codec-rx",
  32. "msm_dp_audio_codec_rx1_dai")),
  33. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  34. SND_SOC_DAILINK_DEFS(auxpcm_rx,
  35. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  36. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-rx")),
  37. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  38. SND_SOC_DAILINK_DEFS(auxpcm_tx,
  39. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  40. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-tx")),
  41. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  42. SND_SOC_DAILINK_DEFS(wsa_dma_rx0,
  43. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  44. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa_macro_rx1"),
  45. COMP_CODEC("lpass-cdc", "wsa2_macro_rx1"),
  46. COMP_CODEC("wsa-codec1", "wsa_rx1"),
  47. COMP_CODEC("wsa-codec2", "wsa_rx2"),
  48. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  49. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  50. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  51. SND_SOC_DAILINK_DEFS(wsa_dma_rx1,
  52. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  53. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa_macro_rx_mix"),
  54. COMP_CODEC("lpass-cdc", "wsa2_macro_rx_mix"),
  55. COMP_CODEC("wsa-codec1", "wsa_rx1"),
  56. COMP_CODEC("wsa-codec2", "wsa_rx2"),
  57. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  58. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  59. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  60. SND_SOC_DAILINK_DEFS(wsa_dma_tx1,
  61. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  62. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa_macro_echo"),
  63. COMP_CODEC("lpass-cdc", "wsa2_macro_echo"),
  64. COMP_CODEC("wsa-codec1", "wsa_rx1"),
  65. COMP_CODEC("wsa-codec2", "wsa_rx2"),
  66. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  67. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  68. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  69. SND_SOC_DAILINK_DEFS(wsa2_dma_rx0,
  70. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  71. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa2_macro_rx1"),
  72. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  73. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  74. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  75. SND_SOC_DAILINK_DEFS(wsa2_dma_rx1,
  76. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  77. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa2_macro_rx_mix"),
  78. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  79. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  80. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  81. SND_SOC_DAILINK_DEFS(wsa2_dma_tx1,
  82. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  83. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa2_macro_echo"),
  84. COMP_CODEC("wsa-codec3", "wsa_rx3"),
  85. COMP_CODEC("wsa-codec4", "wsa_rx4")),
  86. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  87. SND_SOC_DAILINK_DEFS(rx_dma_rx0,
  88. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  89. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx1"),
  90. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  91. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  92. SND_SOC_DAILINK_DEFS(rx_dma_rx1,
  93. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  94. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx2"),
  95. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  96. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  97. SND_SOC_DAILINK_DEFS(rx_dma_rx2,
  98. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  99. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx3"),
  100. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  101. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  102. SND_SOC_DAILINK_DEFS(rx_dma_rx3,
  103. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  104. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx4"),
  105. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  106. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  107. SND_SOC_DAILINK_DEFS(rx_dma_rx5,
  108. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  109. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx5"),
  110. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  111. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  112. SND_SOC_DAILINK_DEFS(rx_dma_rx6,
  113. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  114. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "rx_macro_rx6"),
  115. COMP_CODEC("swr-haptics", "swr_haptics")),
  116. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  117. SND_SOC_DAILINK_DEFS(tx_dma_tx3,
  118. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  119. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "tx_macro_tx1"),
  120. COMP_CODEC("wcd938x_codec", "wcd938x_cdc")),
  121. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  122. SND_SOC_DAILINK_DEFS(tx_dma_tx4,
  123. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  124. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "tx_macro_tx2"),
  125. COMP_CODEC("wcd938x_codec", "wcd938x_cdc"),
  126. COMP_CODEC("swr-dmic.01", "swr_dmic_tx0"),
  127. COMP_CODEC("swr-dmic.02", "swr_dmic_tx1"),
  128. COMP_CODEC("swr-dmic.03", "swr_dmic_tx2"),
  129. COMP_CODEC("swr-dmic.04", "swr_dmic_tx3")),
  130. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  131. SND_SOC_DAILINK_DEFS(va_dma_tx0,
  132. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  133. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "va_macro_tx1")),
  134. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  135. SND_SOC_DAILINK_DEFS(va_dma_tx1,
  136. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  137. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "va_macro_tx2")),
  138. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  139. SND_SOC_DAILINK_DEFS(va_dma_tx2,
  140. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  141. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "va_macro_tx3")),
  142. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  143. SND_SOC_DAILINK_DEFS(proxy_tx,
  144. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  145. DAILINK_COMP_ARRAY(COMP_DUMMY()),
  146. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  147. SND_SOC_DAILINK_DEFS(proxy_rx,
  148. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  149. DAILINK_COMP_ARRAY(COMP_DUMMY()),
  150. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  151. SND_SOC_DAILINK_DEFS(quat_mi2s_rx,
  152. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  153. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-rx")),
  154. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  155. SND_SOC_DAILINK_DEFS(quat_mi2s_tx,
  156. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  157. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-tx")),
  158. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  159. SND_SOC_DAILINK_DEFS(pri_tdm_rx_0,
  160. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  161. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-rx")),
  162. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  163. SND_SOC_DAILINK_DEFS(pri_tdm_tx_0,
  164. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  165. DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-tx")),
  166. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  167. SND_SOC_DAILINK_DEFS(vi_feedback,
  168. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  169. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa_macro_vifeedback")),
  170. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  171. SND_SOC_DAILINK_DEFS(wsa2_vi_feedback,
  172. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  173. DAILINK_COMP_ARRAY(COMP_CODEC("lpass-cdc", "wsa2_macro_vifeedback")),
  174. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  175. SND_SOC_DAILINK_DEFS(tavil_i2s_rx1,
  176. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  177. DAILINK_COMP_ARRAY(COMP_CODEC("tavil_codec", "tavil_i2s_rx1")),
  178. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
  179. SND_SOC_DAILINK_DEFS(tavil_i2s_tx1,
  180. DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
  181. DAILINK_COMP_ARRAY(COMP_CODEC("tavil_codec", "tavil_i2s_tx1")),
  182. DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));