ASoc: msm8960: Enable Physical DMIC1(on Fluid and MTP) and DMIC4(on Fluid).
Physical Digital MIC 1 on Fluid and MTP is there on Front Bottom Left.
It is connected D_DMIC1_2_data pin on Tabla and drives data on right
channel which is treated as DMIC2 input. Physical Digital MIC 4 on
Fluid is there on Back top. It is connected D_DMIC3_4_data pin on
Tabla and drives data on left channel which is treated as DMIC3 input.
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
diff --git a/sound/soc/msm/msm8960.c b/sound/soc/msm/msm8960.c
index e234554..d9017e5 100644
--- a/sound/soc/msm/msm8960.c
+++ b/sound/soc/msm/msm8960.c
@@ -173,6 +173,15 @@
SND_SOC_DAPM_MIC("Digital Mic1", NULL),
SND_SOC_DAPM_MIC("ANCRight Headset Mic", NULL),
SND_SOC_DAPM_MIC("ANCLeft Headset Mic", NULL),
+
+ /* Digital Mic1. Front Bottom left Digital Mic on Fluid and MTP. */
+ SND_SOC_DAPM_MIC("Digital Mic1", NULL),
+
+ /* Digital Mic2. Front Bottom right Digital Mic on Fluid and MTP. */
+ SND_SOC_DAPM_MIC("Digital Mic2", NULL),
+
+ /* Digital Mic4. Back Top Digital Mic on Fluid. */
+ SND_SOC_DAPM_MIC("Digital Mic4", NULL),
};
static const struct snd_soc_dapm_route audio_map[] = {
@@ -192,8 +201,26 @@
{"AMIC4", NULL, "MIC BIAS4 External"},
{"MIC BIAS4 External", NULL, "ANCLeft Headset Mic"},
- {"DMIC1 IN", NULL, "MIC BIAS1 External"},
+ /**
+ * Digital Mic1. Front Bottom left Digital Mic on Fluid and MTP.
+ * Conncted to DMIC2 Input on Tabla codec.
+ */
+ {"DMIC2", NULL, "MIC BIAS1 External"},
{"MIC BIAS1 External", NULL, "Digital Mic1"},
+
+ /**
+ * Digital Mic2. Front Bottom right Digital Mic on Fluid and MTP.
+ * Conncted to DMIC1 Input on Tabla codec.
+ */
+ {"DMIC1", NULL, "MIC BIAS1 External"},
+ {"MIC BIAS1 External", NULL, "Digital Mic2"},
+
+ /**
+ * Digital Mic4. Back top Digital Mic on Fluid.
+ * Conncted to DMIC3 Input on Tabla codec.
+ */
+ {"DMIC3", NULL, "MIC BIAS3 External"},
+ {"MIC BIAS3 External", NULL, "Digital Mic4"},
};
static const char *spk_function[] = {"Off", "On"};