From: Jean-Michel Hautbois Date: Thu, 17 Dec 2015 10:07:23 +0000 (+0100) Subject: ASoC: sgtl5000: fix VAG power up timing X-Git-Tag: MMI-PSA29.97-13-9~8799^2~3^2^6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c803cc2dcd722e08020c1ba63bb5ceece4a19fdb;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index f540f82b1f27..08b40460663c 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -189,6 +189,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: