Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 072b6f64 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan Committed by Yunfei Zhang
Browse files

ASoC: add echo ref support for SENARY MI2S TX



Add SENARY_MI2S_TX to ec_ref_rx and ext_ec_ref_rx so
it can be used for Audio EC reference and Voice
external EC reference.

CRs-Fixed: 2576685
Change-Id: I08253e705f26293255eea41140fd3461ee300b6b
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent 52eab92d
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 */
#include <linux/init.h>
@@ -5471,6 +5471,10 @@ static int get_ec_ref_port_id(int value, int *index)
		*index = 38;
		port_id = AFE_PORT_ID_SENARY_MI2S_RX;
		break;
	case 39:
		*index = 39;
		port_id = AFE_PORT_ID_SENARY_MI2S_TX;
		break;
	default:
		*index = 0; /* NONE */
		pr_err("%s: Invalid value %d\n", __func__, value);
@@ -5528,7 +5532,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", "SEN_MI2S_RX",
	"DISPLAY_PORT1", "SEN_MI2S_RX", "SENARY_MI2S_TX",
};
static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
@@ -5761,7 +5765,7 @@ static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
					"SEC_MI2S_TX", "TERT_MI2S_TX",
					"QUAT_MI2S_TX", "QUIN_MI2S_TX",
					"SLIM_1_TX", "PRI_TDM_TX",
					"SEC_TDM_TX"};
					"SEC_TDM_TX", "SENARY_MI2S_TX"};
static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
	SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),