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

Commit 8e1e6fa1 authored by Helen Zeng's avatar Helen Zeng
Browse files

ASoC: msm: qdsp6v2: Add support for AFE loopback on PRI MI2S interface



Add routing control to loopback afe tx port to afe tx port on
primary MI2S interface.

Change-Id: I0470ceb1b7bab3b1ff39d28e0ade85df75962697
Signed-off-by: default avatarHelen Zeng <xiaoyunz@codeaurora.org>
parent d1702b4b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3277,6 +3277,9 @@ static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
	SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
	MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
	msm_routing_put_port_mixer),
	SOC_SINGLE_EXT("PRI_MI2S_TX", MSM_BACKEND_DAI_PRI_MI2S_RX,
	MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
	msm_routing_put_port_mixer),
};

static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
@@ -4866,6 +4869,7 @@ static const struct snd_soc_dapm_route intercon[] = {
	{"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
	{"MI2S_RX", NULL, "MI2S_RX Port Mixer"},

	{"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
	{"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
	{"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
	{"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},