summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jhautbois@gmail.com>2015-12-17 11:07:23 +0100
committerStefan Agner <stefan.agner@toradex.com>2017-05-30 13:49:05 -0700
commitabbdc0a6a494a6525fc5613a736257a1ae9abced (patch)
tree62112570f7c4da058a8296c3d4f4053f1a0968b6 /sound
parent198628db28985f56517928930b42b0aef28a7ee2 (diff)
ASoC: sgtl5000: fix VAG power up timing
When power up, a "pop" is heard on line-in and mic-in. An analysis of the PCM shows it lasts ~400ms and looks like a filter response. VAG power up should be delayed by 400ms as VAG power down is. Signed-off-by: Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit c803cc2dcd722e08020c1ba63bb5ceece4a19fdb)
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/sgtl5000.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 7d6b5655e1ae..1dff5e723c36 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -194,6 +194,7 @@ static int power_vag_event(struct snd_soc_dapm_widget *w,
case SND_SOC_DAPM_POST_PMU:
snd_soc_update_bits(codec, SGTL5000_CHIP_ANA_POWER,
SGTL5000_VAG_POWERUP, SGTL5000_VAG_POWERUP);
+ msleep(400);
break;
case SND_SOC_DAPM_PRE_PMD: