diff options
author | Jean-Michel Hautbois <jhautbois@gmail.com> | 2015-12-17 05:07:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-17 07:13:40 -0500 |
commit | c803cc2dcd722e08020c1ba63bb5ceece4a19fdb (patch) | |
tree | 5251111ff7bacd76b1a858af27478cf58ea15f2c | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (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>
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
189 | case SND_SOC_DAPM_POST_PMU: | 189 | case SND_SOC_DAPM_POST_PMU: |
190 | snd_soc_update_bits(codec, SGTL5000_CHIP_ANA_POWER, | 190 | snd_soc_update_bits(codec, SGTL5000_CHIP_ANA_POWER, |
191 | SGTL5000_VAG_POWERUP, SGTL5000_VAG_POWERUP); | 191 | SGTL5000_VAG_POWERUP, SGTL5000_VAG_POWERUP); |
192 | msleep(400); | ||
192 | break; | 193 | break; |
193 | 194 | ||
194 | case SND_SOC_DAPM_PRE_PMD: | 195 | case SND_SOC_DAPM_PRE_PMD: |