]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
asoc: tegra: ALC5640 machine: Turn off ext_mic by default
authorDaniel Solomon <daniels@nvidia.com>
Mon, 12 Mar 2012 22:55:16 +0000 (15:55 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:12:30 +0000 (01:12 -0700)
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>
Rebase-Id: R97dca78bce264ec489b9bbd7eda137c0bc92b289

sound/soc/tegra/tegra_rt5640.c

index 5adf8be4fdefe9b0d8eeeaf0a49b77527bfe5749..7173ab511d404f303952d69c98b233036e8cb60e 100644 (file)
@@ -510,8 +510,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)) {