From 6f4285c583fce52f4e0c949cebdb715df617b4af Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Tue, 29 Oct 2019 16:17:00 -0700 Subject: [PATCH] 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 --- asoc/msm-pcm-routing-v2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c index c47a6c9452c8..8bbf48b957cd 100644 --- a/asoc/msm-pcm-routing-v2.c +++ b/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[] = {