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

Commit 74934756 authored by Vikram Panduranga's avatar Vikram Panduranga Committed by Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: Enable AFE sidetone based on mixer ctl setting



AFE sidetone is currently enabled based on a combination
of mixer control setting and default config in ACDB.
This change will limit enablement to mixer control setting alone.

Change-Id: I038d51177adc3e1da45ea7fdf9386362390f181d
Signed-off-by: default avatarVikram Panduranga <vpandura@codeaurora.org>
parent ac62c5e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5191,7 +5191,7 @@ static int afe_sidetone(u16 tx_port_id, u16 rx_port_id, bool enable)
					AFE_API_VERSION_LOOPBACK_CONFIG;
	cmd_sidetone.cfg_data.dst_port_id = rx_port_id;
	cmd_sidetone.cfg_data.routing_mode = LB_MODE_SIDETONE;
	cmd_sidetone.cfg_data.enable = ((enable == 1) ? sidetone_enable : 0);
	cmd_sidetone.cfg_data.enable = enable;

	pr_debug("%s rx(0x%x) tx(0x%x) enable(%d) mid(0x%x) gain(%d) sidetone_enable(%d)\n",
		  __func__, rx_port_id, tx_port_id,