OSDN Git Service

ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink
authorHonghao Liu <honghaol@codeaurora.org>
Fri, 24 Mar 2017 19:40:19 +0000 (15:40 -0400)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 6 Apr 2017 18:10:48 +0000 (11:10 -0700)
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.

CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c

index 7ce7348..08c78f9 100644 (file)
@@ -7933,6 +7933,9 @@ static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
        SOC_SINGLE_EXT("SEC_AUX_PCM_UL_TX", MSM_BACKEND_DAI_AUXPCM_RX,
        MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
        msm_routing_put_port_mixer),
+       SOC_SINGLE_EXT("QUAT_TDM_TX_0", MSM_BACKEND_DAI_AUXPCM_RX,
+       MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
+       msm_routing_put_port_mixer),
 };
 
 static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
@@ -13325,6 +13328,7 @@ static const struct snd_soc_dapm_route intercon[] = {
        {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
        {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
        {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
+       {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
        {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
        {"MI2S_RX", NULL, "MI2S_DL_HL"},
        {"MI2S_UL_HL", NULL, "MI2S_TX"},
@@ -13729,6 +13733,7 @@ static const struct snd_soc_dapm_route intercon[] = {
        {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
        {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
        {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
+       {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
        {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
 
        {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},