ASoc: Tegra: max98090: secondary mic only for t14x
Naveen Kumar S [Wed, 9 Apr 2014 11:41:03 +0000 (16:41 +0530)]
Secondary MIC available in tegra14x platforms only. Hence adding
appropriate conditions.
Also, DMIC3 and DMIC4 are declared for max98091 and not max98090.

bug 1457218

Change-Id: Ieeaff6890a195a4620f80b17ea9a9e0a1ff975c9
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/394119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

sound/soc/tegra/tegra_max98090.c

index 14e02e2..3423ed8 100644 (file)
@@ -978,8 +978,10 @@ static const struct snd_soc_dapm_route tegra_max98090_audio_map[] = {
        {"IN56", NULL, "MICBIAS"},
        {"DMICL", NULL, "DMic Pri"},
        {"DMICR", NULL, "DMic Pri"},
+#ifdef CONFIG_ARCH_TEGRA_14x_SOC
        {"DMIC3", NULL, "DMic Sec"},
        {"DMIC4", NULL, "DMic Sec"},
+#endif
 };
 
 static const struct snd_kcontrol_new tegra_max98090_controls[] = {
@@ -990,7 +992,9 @@ static const struct snd_kcontrol_new tegra_max98090_controls[] = {
        SOC_DAPM_PIN_SWITCH("Int Mic"),
        SOC_DAPM_PIN_SWITCH("Ext Mic"),
        SOC_DAPM_PIN_SWITCH("DMic Pri"),
+#ifdef CONFIG_ARCH_TEGRA_14x_SOC
        SOC_DAPM_PIN_SWITCH("DMic Sec"),
+#endif
 };
 
 static int tegra_max98090_init(struct snd_soc_pcm_runtime *rtd)