From: Stephen Warren Date: Thu, 26 May 2011 18:46:50 +0000 (-0600) Subject: ASoC: Tegra: Enable Kaen HP_MUTE at boot X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a5fe6be42e5cadac4c2aef2b3714cfa8fadb6092;p=linux-beck.git ASoC: Tegra: Enable Kaen HP_MUTE at boot 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 0d6738a8b29a..a42e9ac30f28 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c @@ -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)) {