summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/tegra/tegra_soc_wm8903.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_soc_wm8903.c b/sound/soc/tegra/tegra_soc_wm8903.c
index ee5b0af8d3ac..2483d2efb115 100644
--- a/sound/soc/tegra/tegra_soc_wm8903.c
+++ b/sound/soc/tegra/tegra_soc_wm8903.c
@@ -419,6 +419,11 @@ static int tegra_dapm_event_int_spk(struct snd_soc_dapm_widget* w,
gpio_set_value_cansleep(tegra_wired_jack_conf.en_spkr,
SND_SOC_DAPM_EVENT_ON(event) ? 1 : 0);
+
+ /* the amplifier needs 100ms to enable. wait 100ms after
+ * gpio EN triggered */
+ if (SND_SOC_DAPM_EVENT_ON(event))
+ msleep(100);
}
return 0;