浏览代码

ASoC: add echo ref support for SEN MI2S

Add SEN_MI2S_RX to echo_ref_rx so it can be used for
Audio EC reference.

CRs-Fixed: 2553377
Change-Id: Id326c6f80b0553bd1031b2c4a641d6bc716d03a7
Signed-off-by: Vignesh Kulothungan <[email protected]>
Vignesh Kulothungan 5 年之前
父节点
当前提交
6f4285c583
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      asoc/msm-pcm-routing-v2.c

+ 5 - 1
asoc/msm-pcm-routing-v2.c

@@ -5450,6 +5450,10 @@ static int get_ec_ref_port_id(int value, int *index)
 		*index = 37;
 		port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
 		break;
+	case 38:
+		*index = 38;
+		port_id = AFE_PORT_ID_SENARY_MI2S_RX;
+		break;
 	default:
 		*index = 0; /* NONE */
 		pr_err("%s: Invalid value %d\n", __func__, value);
@@ -5507,7 +5511,7 @@ static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
 	"WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
 	"SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
 	"RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
-	"DISPLAY_PORT1",
+	"DISPLAY_PORT1", "SEN_MI2S_RX",
 };
 
 static const struct soc_enum msm_route_ec_ref_rx_enum[] = {