asoc: support source tracking with TDM interface
Add mixer controls and port id for PRIMARY_TDM interface
to support source tracking with TDM mics.
CRs-Fixed: 2193330
Change-Id: I62fd250e0feb3fbc190fb63d1398fc3082506f47
Signed-off-by: Surendar karka <sukark@codeaurora.org>
diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c
index 5a75609..e4964e9 100644
--- a/asoc/msm-pcm-routing-v2.c
+++ b/asoc/msm-pcm-routing-v2.c
@@ -18088,6 +18088,9 @@
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
"QUIN_TDM_TX_0")) {
*port_id = AFE_PORT_ID_QUINARY_TDM_TX;
+ } else if (!strcmp(kcontrol->id.name + strlen(prefix),
+ "PRIMARY_TDM")) {
+ *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
} else {
pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
__func__, kcontrol->id.name);
@@ -18466,6 +18469,21 @@
.get = msm_audio_source_tracking_get,
},
{
+ .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+ .name = "Sound Focus Audio Tx PRIMARY_TDM",
+ .info = msm_sound_focus_info,
+ .get = msm_audio_sound_focus_get,
+ .put = msm_audio_sound_focus_put,
+ },
+ {
+ .access = SNDRV_CTL_ELEM_ACCESS_READ,
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+ .name = "Source Tracking Audio Tx PRIMARY_TDM",
+ .info = msm_source_tracking_info,
+ .get = msm_audio_source_tracking_get,
+ },
+ {
.access = SNDRV_CTL_ELEM_ACCESS_READ,
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
.name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",