asoc: tegra: Disable MIC_BIAS route
Simon Je [Mon, 22 Apr 2013 12:06:29 +0000 (21:06 +0900)]
Tegratab doesn't have circuit to control MIC_BIAS by GPIO.
Diable MIC_BIAS route in codec when built-in MIC(DMIC) is used
to prevent noise.

Bug 1273574

Change-Id: Iecc1f0e6a0f9b508d14acdf1c7dac9107c8748d9
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/221580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_rt5640.c

index faa45d9..0e5c2a5 100644 (file)
@@ -2,7 +2,7 @@
  * tegra_rt5640.c - Tegra machine ASoC driver for boards using ALC5640 codec.
  *
  * Author: Johnny Qiu <joqiu@nvidia.com>
- * Copyright (C) 2011-2012, NVIDIA, Inc.
+ * Copyright (C) 2011-2013, NVIDIA, Inc.
  *
  * Based on code copyright/by:
  *
@@ -551,9 +551,11 @@ static const struct snd_soc_dapm_route cardhu_audio_map[] = {
        {"Int Spk", NULL, "SPOLP"},
        {"Int Spk", NULL, "SPOLN"},
        {"micbias1", NULL, "Mic Jack"},
+#if !defined(CONFIG_MACH_TEGRATAB)
        {"IN1P", NULL, "micbias1"},
        {"IN1N", NULL, "micbias1"},
        {"micbias1", NULL, "Int Mic"},
+#endif
        {"IN2P", NULL, "micbias1"},
        {"DMIC L1", NULL, "Int Mic"},
        {"DMIC L2", NULL, "Int Mic"},