ASoC: Tegra: Enable Kaen HP_MUTE at boot
authorStephen Warren <swarren@nvidia.com>
Thu, 26 May 2011 18:46:50 +0000 (12:46 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 27 May 2011 14:13:54 +0000 (22:13 +0800)
We want the default state of the HP_MUTE signal to be asserted, so that
the headphones are muted before the first audio playback. Without this,
the headphones are left unmuted until shortly after the first audio
playback completes.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra_wm8903.c

index 0d6738a8b29a14b8469b7550a2b57d0ed04af87c..a42e9ac30f2810ce7f65f2cdc8f1f56c87c4809f 100644 (file)
@@ -267,7 +267,7 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
                }
                machine->gpio_requested |= GPIO_HP_MUTE;
 
-               gpio_direction_output(pdata->gpio_hp_mute, 0);
+               gpio_direction_output(pdata->gpio_hp_mute, 1);
        }
 
        if (gpio_is_valid(pdata->gpio_int_mic_en)) {