mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
asoc: reduce AUXPCM widget connection when it's disabled
Add CONFIG_AUXPCM_DISABLE config to reduce AUXPCM widget connections when it's disabled. Change-Id: I29cde6641a0bcec4a718d64fbfdf5023c2cc4a19 Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
1f152bcd76
commit
210bdddd4b
1 changed files with 12 additions and 0 deletions
|
|
@ -21962,6 +21962,7 @@ static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
|
|||
MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
||||
MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
|
||||
msm_routing_put_port_mixer),
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
|
||||
MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
||||
MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
||||
|
|
@ -21986,6 +21987,7 @@ static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
|
|||
MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
||||
MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
|
||||
msm_routing_put_port_mixer),
|
||||
#endif
|
||||
SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
|
||||
MSM_BACKEND_DAI_SLIMBUS_0_RX,
|
||||
MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
|
||||
|
|
@ -27289,12 +27291,14 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
{"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
|
||||
{"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
|
||||
#endif
|
||||
{"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
||||
{"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
|
||||
{"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
||||
|
|
@ -27320,7 +27324,9 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
|
||||
{"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
|
||||
{"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
{"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
||||
#endif
|
||||
{"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
|
||||
{"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
|
||||
{"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
|
||||
|
|
@ -27372,7 +27378,9 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
|
||||
{"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
|
||||
{"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
{"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
|
||||
#endif
|
||||
{"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
|
||||
{"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
|
||||
|
||||
|
|
@ -27452,7 +27460,9 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"BE_OUT", NULL, "STUB_RX"},
|
||||
{"STUB_TX", NULL, "BE_IN"},
|
||||
{"STUB_1_TX", NULL, "BE_IN"},
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
{"BE_OUT", NULL, "AUX_PCM_RX"},
|
||||
#endif
|
||||
{"INCALL_RECORD_TX", NULL, "BE_IN"},
|
||||
{"INCALL_RECORD_RX", NULL, "BE_IN"},
|
||||
{"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
|
||||
|
|
@ -29084,8 +29094,10 @@ static const struct snd_soc_dapm_route intercon_tdm[] = {
|
|||
{"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
||||
{"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
||||
{"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
|
||||
#ifndef CONFIG_AUXPCM_DISABLE
|
||||
{"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
|
||||
{"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
|
||||
#endif
|
||||
{"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
|
||||
{"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
|
||||
{"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue