mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ASoc: msm: Add lowlatency playback and recording routing
controls - Add BT, FM, PROXY routing controls for lowlatency playback and recording Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
This commit is contained in:
parent
399beae92a
commit
ca5a274feb
1 changed files with 32 additions and 0 deletions
|
@ -1302,6 +1302,9 @@ static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
|
|||
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_BT_SCO_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
};
|
||||
|
||||
static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
|
||||
|
@ -1317,6 +1320,9 @@ static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
|
|||
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_INT_FM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_INT_FM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
};
|
||||
|
||||
static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
|
||||
|
@ -1332,6 +1338,9 @@ static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
|
|||
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AFE_PCM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AFE_PCM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
};
|
||||
|
||||
static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
|
||||
|
@ -1347,6 +1356,9 @@ static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
|
|||
SOC_SINGLE_EXT("MultiMedia4", MSM_BACKEND_DAI_AUXPCM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("MultiMedia5", MSM_BACKEND_DAI_AUXPCM_RX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
};
|
||||
|
||||
static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
|
||||
|
@ -1407,6 +1419,18 @@ static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
|
|||
SOC_SINGLE_EXT("SLIM_0_TX", MSM_BACKEND_DAI_SLIMBUS_0_TX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("INTERNAL_FM_TX", MSM_BACKEND_DAI_INT_FM_TX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("MI2S_TX", MSM_BACKEND_DAI_MI2S_TX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("AFE_PCM_TX", MSM_BACKEND_DAI_AFE_PCM_TX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
SOC_SINGLE_EXT("INTERNAL_BT_SCO_TX", MSM_BACKEND_DAI_INT_BT_SCO_TX,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
|
||||
msm_routing_put_audio_mixer),
|
||||
};
|
||||
|
||||
|
||||
|
@ -2322,6 +2346,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
||||
{"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
||||
{"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
||||
{"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
||||
{"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
|
||||
|
||||
{"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
|
||||
|
@ -2336,24 +2361,30 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
||||
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
||||
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
||||
{"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
||||
{"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
|
||||
|
||||
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
||||
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
||||
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
||||
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
||||
{"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
||||
{"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
|
||||
|
||||
{"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
||||
{"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
||||
{"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
||||
{"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
||||
{"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
||||
{"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
|
||||
|
||||
{"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
||||
{"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
|
||||
{"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
||||
{"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
||||
|
||||
{"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
||||
{"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
|
||||
{"MM_UL1", NULL, "MultiMedia1 Mixer"},
|
||||
{"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
|
||||
{"MM_UL2", NULL, "MultiMedia2 Mixer"},
|
||||
|
@ -2364,6 +2395,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|||
{"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
|
||||
{"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
|
||||
{"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
|
||||
{"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
|
||||
{"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
|
||||
|
||||
{"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
|
||||
|
|
Loading…
Reference in a new issue