|
@@ -113,6 +113,7 @@ enum {
|
|
|
#define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
|
|
|
#define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
|
|
|
#define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
|
|
|
+#define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
|
|
|
|
|
|
#define LSM_FUNCTION_TEXT "LSM Function"
|
|
|
static const char * const lsm_port_text[] = {
|
|
@@ -120,7 +121,8 @@ static const char * const lsm_port_text[] = {
|
|
|
SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
|
|
|
SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
|
|
|
TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
|
|
|
- INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
|
|
|
+ INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
|
|
|
+ TX_CDC_DMA_TX_3_TEXT
|
|
|
};
|
|
|
|
|
|
struct msm_pcm_route_bdai_pp_params {
|
|
@@ -2664,6 +2666,9 @@ static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
|
|
|
case 12:
|
|
|
lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
|
|
|
break;
|
|
|
+ case 13:
|
|
|
+ lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
|
|
|
+ break;
|
|
|
default:
|
|
|
pr_err("Default lsm port");
|
|
|
break;
|
|
@@ -2707,6 +2712,10 @@ static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
|
|
|
strlen(lsm_port_text[10])))
|
|
|
port_id = AFE_PORT_ID_INT3_MI2S_TX;
|
|
|
|
|
|
+ if (strnstr(kcontrol->id.name, lsm_port_text[13],
|
|
|
+ strlen(lsm_port_text[13])))
|
|
|
+ port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
|
|
|
+
|
|
|
mad_type = afe_port_get_mad_type(port_id);
|
|
|
pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
|
|
|
mad_type);
|
|
@@ -2786,6 +2795,10 @@ static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
|
|
|
strlen(lsm_port_text[10])))
|
|
|
port_id = AFE_PORT_ID_INT3_MI2S_TX;
|
|
|
|
|
|
+ if (strnstr(kcontrol->id.name, lsm_port_text[13],
|
|
|
+ strlen(lsm_port_text[13])))
|
|
|
+ port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
|
|
|
+
|
|
|
pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
|
|
|
mad_type);
|
|
|
return afe_port_set_mad_type(port_id, mad_type);
|
|
@@ -11370,6 +11383,58 @@ static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_QUIN_TDM_TX_3,
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_PRI_SPDIF_TX,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
+ SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_SEC_SPDIF_TX,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
|
|
@@ -11462,62 +11527,56 @@ static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
|
|
|
MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
|
|
|
- MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0,
|
|
|
- msm_routing_get_audio_mixer,
|
|
|
- msm_routing_put_audio_mixer),
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
|
|
|
MSM_BACKEND_DAI_PRI_SPDIF_TX,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
|
|
|
MSM_BACKEND_DAI_SEC_SPDIF_TX,
|
|
|
- MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
|
|
|
+ MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
|
|
|
msm_routing_put_audio_mixer),
|
|
|
};
|
|
|
|
|
@@ -15949,6 +16008,10 @@ static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
|
|
@@ -15993,6 +16056,10 @@ static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
|
|
@@ -16036,6 +16103,10 @@ static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
|
|
@@ -16079,6 +16150,10 @@ static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
|
|
@@ -16122,6 +16197,10 @@ static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
|
|
@@ -16165,6 +16244,10 @@ static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
|
|
@@ -16208,6 +16291,10 @@ static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
|
|
@@ -16251,6 +16338,10 @@ static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
|
|
|
MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
|
|
|
MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
|
|
|
msm_routing_put_listen_mixer),
|
|
|
+ SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
|
|
|
+ MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
|
|
|
+ MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
|
|
|
+ msm_routing_put_listen_mixer),
|
|
|
};
|
|
|
|
|
|
static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
|
|
@@ -16387,6 +16478,8 @@ static const struct snd_kcontrol_new lsm_controls[] = {
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
+ SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
|
|
|
+ msm_routing_lsm_func_get, msm_routing_lsm_func_put),
|
|
|
/* kcontrol of lsm_port */
|
|
|
SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
|
|
|
msm_routing_lsm_port_get,
|
|
@@ -20369,7 +20462,6 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
|
|
|
{"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
- {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
|
|
@@ -20396,7 +20488,6 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
|
|
|
{"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
- {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
|
|
@@ -20451,7 +20542,6 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
|
|
|
{"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
- {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
|
|
@@ -20483,6 +20573,19 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
|
|
|
{"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
|
|
|
{"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
|
|
|
+ {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
|
|
|
+ {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
|
|
|
+ {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
|
|
|
+ {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
+ {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
|
|
|
+ {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
|
|
|
+ {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
|
|
|
+ {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
|
|
|
|
|
|
{"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
|
|
|
{"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
|
|
@@ -20514,7 +20617,6 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
|
|
|
{"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
- {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
|
|
|
{"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
|
|
|
{"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
|
|
@@ -21170,6 +21272,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
|
|
|
{"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM1_UL_HL", NULL, "LSM1 Mixer"},
|
|
|
|
|
|
{"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
@@ -21182,6 +21285,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
|
|
|
{"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM2_UL_HL", NULL, "LSM2 Mixer"},
|
|
|
|
|
|
|
|
@@ -21195,6 +21299,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
|
|
|
{"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM3_UL_HL", NULL, "LSM3 Mixer"},
|
|
|
|
|
|
|
|
@@ -21208,6 +21313,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
|
|
|
{"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM4_UL_HL", NULL, "LSM4 Mixer"},
|
|
|
|
|
|
{"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
@@ -21220,6 +21326,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
|
|
|
{"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM5_UL_HL", NULL, "LSM5 Mixer"},
|
|
|
|
|
|
{"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
@@ -21230,6 +21337,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
{"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM6_UL_HL", NULL, "LSM6 Mixer"},
|
|
|
|
|
|
{"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
@@ -21240,6 +21348,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
{"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM7_UL_HL", NULL, "LSM7 Mixer"},
|
|
|
|
|
|
{"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
|
|
@@ -21250,6 +21359,7 @@ static const struct snd_soc_dapm_route intercon[] = {
|
|
|
{"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
|
|
|
{"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
|
|
|
{"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
|
|
|
+ {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
|
|
|
{"LSM8_UL_HL", NULL, "LSM8 Mixer"},
|
|
|
|
|
|
|