瀏覽代碼

asoc: msm: routing: Add support for codec dma interfaces in routing driver

New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add support routing for codec dma
interface backends and their corresponding front ends.

Change-Id: I8145921559457c50408d35c90b13d018e1c32c8a
Signed-off-by: Mangesh Kunchamwar <[email protected]>
Mangesh Kunchamwar 7 年之前
父節點
當前提交
a21bef610b
共有 2 個文件被更改,包括 729 次插入4 次删除
  1. 712 4
      asoc/msm-pcm-routing-v2.c
  2. 17 0
      asoc/msm-pcm-routing-v2.h

文件差異過大導致無法顯示
+ 712 - 4
asoc/msm-pcm-routing-v2.c


+ 17 - 0
asoc/msm-pcm-routing-v2.h

@@ -185,6 +185,16 @@
 #define LPASS_BE_INT5_MI2S_TX "INT5_MI2S_TX"
 #define LPASS_BE_INT6_MI2S_RX "INT6_MI2S_RX"
 #define LPASS_BE_INT6_MI2S_TX "INT6_MI2S_TX"
+
+#define LPASS_BE_WSA_CDC_DMA_RX_0 "WSA_CDC_DMA_RX_0"
+#define LPASS_BE_WSA_CDC_DMA_TX_0 "WSA_CDC_DMA_TX_0"
+#define LPASS_BE_WSA_CDC_DMA_RX_1 "WSA_CDC_DMA_RX_1"
+#define LPASS_BE_WSA_CDC_DMA_TX_1 "WSA_CDC_DMA_TX_1"
+#define LPASS_BE_WSA_CDC_DMA_TX_2 "WSA_CDC_DMA_TX_2"
+#define LPASS_BE_VA_CDC_DMA_TX_0 "VA_CDC_DMA_TX_0"
+#define LPASS_BE_VA_CDC_DMA_TX_1 "VA_CDC_DMA_TX_1"
+
+
 /* For multimedia front-ends, asm session is allocated dynamically.
  * Hence, asm session/multimedia front-end mapping has to be maintained.
  * Due to this reason, additional multimedia front-end must be placed before
@@ -399,6 +409,13 @@ enum {
 	MSM_BACKEND_DAI_INT5_MI2S_TX,
 	MSM_BACKEND_DAI_INT6_MI2S_RX,
 	MSM_BACKEND_DAI_INT6_MI2S_TX,
+	MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
+	MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
+	MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
+	MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
+	MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
+	MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
+	MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
 	MSM_BACKEND_DAI_MAX,
 };
 

部分文件因文件數量過多而無法顯示