From e90779216bacf8dcd76efd8e167e9cc3e4b46d28 Mon Sep 17 00:00:00 2001 From: Daniel Solomon Date: Mon, 12 Mar 2012 15:55:16 -0700 Subject: 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 (cherry picked from commit de806c193fde5cd8c5b0285efeeaef4adb7be611) Change-Id: Idd72830d89ebe080739694d7f2c8f6ad80d5cdf5 Reviewed-on: http://git-master/r/93955 Reviewed-by: Simone Willett Tested-by: Simone Willett --- sound/soc/tegra/tegra_rt5640.c | 4 ++-- 1 file 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)) { -- cgit v1.2.3