Browse Source

Merge "asoc: dynamically set mclk for monaco based on interface"

qctecmdr 1 year ago
parent
commit
b9d37cb885
1 changed files with 10 additions and 1 deletions
  1. 10 1
      asoc/auto_spf_dummy.c

+ 10 - 1
asoc/auto_spf_dummy.c

@@ -195,12 +195,21 @@ struct snd_soc_card sa7255_snd_soc_card_auto_msm = {
 static enum msm_mclk_index msm_get_mclk_index(int intf_idx)
 {
 	switch (intf_idx) {
-	/* for sa8255 */
+/* for sa8255 */
+#ifdef CONFIG_SND_SOC_SA8255_AUTO_SPF
 	case TDM_HSIF2:
 		return MCLK1;
+#endif
+/* for sa7255 */
+#ifdef CONFIG_SND_SOC_SA7255_AUTO_SPF
+	case TDM_HSIF0:
+		return MCLK1;
+#endif
 
 	default: return MCLK_NONE;
 	}
+
+	return MCLK_NONE;
 }
 
 static int msm_tdm_get_intf_idx(u16 id)