浏览代码

dsp: afe: add missing codec dma port indices

Add codec dma port indices in get port index function.

CRs-Fixed: 2248380
Change-Id: I62fcf502ce997e1537c0ea47dd0292612cb297ad
Signed-off-by: Mangesh Kunchamwar <[email protected]>
Mangesh Kunchamwar 6 年之前
父节点
当前提交
1274b76c1d
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      dsp/q6afe.c

+ 14 - 0
dsp/q6afe.c

@@ -4086,6 +4086,20 @@ int afe_get_port_index(u16 port_id)
 		return IDX_AFE_PORT_ID_INT6_MI2S_RX;
 	case AFE_PORT_ID_INT6_MI2S_TX:
 		return IDX_AFE_PORT_ID_INT6_MI2S_TX;
+	case AFE_PORT_ID_VA_CODEC_DMA_TX_0:
+		return IDX_AFE_PORT_ID_VA_CODEC_DMA_TX_0;
+	case AFE_PORT_ID_VA_CODEC_DMA_TX_1:
+		return IDX_AFE_PORT_ID_VA_CODEC_DMA_TX_1;
+	case AFE_PORT_ID_WSA_CODEC_DMA_RX_0:
+		return IDX_AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
+	case AFE_PORT_ID_WSA_CODEC_DMA_TX_0:
+		return IDX_AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
+	case AFE_PORT_ID_WSA_CODEC_DMA_RX_1:
+		return IDX_AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
+	case AFE_PORT_ID_WSA_CODEC_DMA_TX_1:
+		return IDX_AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
+	case AFE_PORT_ID_WSA_CODEC_DMA_TX_2:
+		return IDX_AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
 	default:
 		pr_err("%s: port 0x%x\n", __func__, port_id);
 		return -EINVAL;