Browse Source

audio-kernel: I2S/TDM backend dai-links tertiary MI2S

Change-Id: I56cb744c0399b3f8e049c13c68ad0dbd7ead94a6
Srijan Magapu 3 years ago
parent
commit
77363afeba
2 changed files with 10 additions and 8 deletions
  1. 4 4
      asoc/msm-audio-defs.h
  2. 6 4
      asoc/msm_common.c

+ 4 - 4
asoc/msm-audio-defs.h

@@ -37,8 +37,8 @@
 #define LPASS_BE_PRI_MI2S_TX "MI2S-LPAIF-TX-PRIMARY"
 #define LPASS_BE_SEC_MI2S_RX "MI2S-LPAIF-RX-SECONDARY"
 #define LPASS_BE_SEC_MI2S_TX "MI2S-LPAIF-TX-SECONDARY"
-#define LPASS_BE_TERT_MI2S_RX "MI2S-LPAIF-RX-TERTIARY"
-#define LPASS_BE_TERT_MI2S_TX "MI2S-LPAIF-TX-TERTIARY"
+#define LPASS_BE_TERT_MI2S_RX "MI2S-LPAIF_AUD-RX-SECONDARY"
+#define LPASS_BE_TERT_MI2S_TX "MI2S-LPAIF_AUD-TX-SECONDARY"
 #define LPASS_BE_QUAT_MI2S_RX "MI2S-LPAIF_RXTX-RX-PRIMARY"
 #define LPASS_BE_QUAT_MI2S_TX "MI2S-LPAIF_RXTX-TX-PRIMARY"
 #define LPASS_BE_QUIN_MI2S_RX "MI2S-LPAIF_VA-RX-PRIMARY"
@@ -69,8 +69,8 @@
 #define LPASS_BE_PRI_TDM_TX_0 "TDM-LPAIF-TX-PRIMARY"
 #define LPASS_BE_SEC_TDM_RX_0 "TDM-LPAIF-RX-SECONDARY"
 #define LPASS_BE_SEC_TDM_TX_0 "TDM-LPAIF-TX-SECONDARY"
-#define LPASS_BE_TERT_TDM_RX_0 "TDM-LPAIF-RX-TERTIARY"
-#define LPASS_BE_TERT_TDM_TX_0 "TDM-LPAIF-TX-TERTIARY"
+#define LPASS_BE_TERT_TDM_RX_0 "TDM-LPAIF_AUD-RX-SECONDARY"
+#define LPASS_BE_TERT_TDM_TX_0 "TDM-LPAIF_AUD-TX-SECONDARY"
 #define LPASS_BE_SEN_TDM_RX_0 "TDM-LPAIF_WSA-RX-PRIMARY"
 #define LPASS_BE_SEN_TDM_TX_0 "TDM-LPAIF_WSA-TX-PRIMARY"
 #define LPASS_BE_QUAT_TDM_RX_0 "TDM-LPAIF_RXTX-RX-PRIMARY"

+ 6 - 4
asoc/msm_common.c

@@ -256,13 +256,15 @@ static int get_mi2s_tdm_auxpcm_intf_index(const char *stream_name)
 		return SEN_MI2S_TDM_AUXPCM;
 	else if (strnstr(stream_name, "LPAIF_VA", strlen(stream_name)))
 		return QUIN_MI2S_TDM_AUXPCM;
-	else if (strnstr(stream_name, "LPAIF_AUD", strlen(stream_name)))
-		return SEP_MI2S_TDM_AUXPCM;
+	else if (strnstr(stream_name, "LPAIF_AUD", strlen(stream_name))){
+		if (strnstr(stream_name, "PRIMARY", strlen(stream_name)))
+			return SEP_MI2S_TDM_AUXPCM;
+		else if (strnstr(stream_name, "SECONDARY", strlen(stream_name)))
+			return TER_MI2S_TDM_AUXPCM;
+	}
 	else if (strnstr(stream_name, "LPAIF", strlen(stream_name))) {
 		if (strnstr(stream_name, "PRIMARY", strlen(stream_name)))
 			return PRI_MI2S_TDM_AUXPCM;
-		else if (strnstr(stream_name, "TERTIARY", strlen(stream_name)))
-			return TER_MI2S_TDM_AUXPCM;
 		else if (strnstr(stream_name, "SECONDARY", strlen(stream_name)))
 			return SEC_MI2S_TDM_AUXPCM;
 	}