summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDaniel Solomon <daniels@nvidia.com>2012-03-12 15:55:16 -0700
committerSimone Willett <swillett@nvidia.com>2012-04-06 13:40:13 -0700
commite90779216bacf8dcd76efd8e167e9cc3e4b46d28 (patch)
treedc293f5a44844c122e7364a6ca4550b0db668617 /sound
parent27047715b617087b93e2b7f8d12a51e5a48eb53c (diff)
asoc: tegra: ALC5640 machine: Turn off ext_mic by default
Drive ext mic gpio (active low) to 1 during init. It will be toggled as needed by ext mic events. Bug 949026 Signed-off-by: Daniel Solomon <daniels@nvidia.com> (cherry picked from commit de806c193fde5cd8c5b0285efeeaef4adb7be611) Change-Id: Idd72830d89ebe080739694d7f2c8f6ad80d5cdf5 Reviewed-on: http://git-master/r/93955 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_rt5640.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra_rt5640.c b/sound/soc/tegra/tegra_rt5640.c
index f6f4ed3d4212..9fed84be8d50 100644
--- a/sound/soc/tegra/tegra_rt5640.c
+++ b/sound/soc/tegra/tegra_rt5640.c
@@ -505,8 +505,8 @@ static int tegra_rt5640_init(struct snd_soc_pcm_runtime *rtd)
}
machine->gpio_requested |= GPIO_EXT_MIC_EN;
- /* Enable ext mic; enable signal is active-low */
- gpio_direction_output(pdata->gpio_ext_mic_en, 0);
+ /* Disable ext mic; enable signal is active-low */
+ gpio_direction_output(pdata->gpio_ext_mic_en, 1);
}
if (gpio_is_valid(pdata->gpio_hp_det)) {