From: Abhijeet Kumar Date: Mon, 11 Dec 2017 19:10:25 +0000 (+0530) Subject: ASoC: nau8825: fix issue that pop noise when start capture X-Git-Tag: v4.19~1839^2~17^2~1^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d070f7c703ef26e3db613f24206823f916272fc6;p=platform%2Fkernel%2Flinux-rpi.git ASoC: nau8825: fix issue that pop noise when start capture In skylake platform, we hear a loud pop noise(0 dB) at start of audio capture power up sequence. This patch removes the pop noise from the recording by adding a delay before enabling ADC. Signed-off-by: Abhijeet Kumar Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index 714ce17..e853a6d 100644 --- a/sound/soc/codecs/nau8825.c +++ b/sound/soc/codecs/nau8825.c @@ -905,6 +905,7 @@ static int nau8825_adc_event(struct snd_soc_dapm_widget *w, switch (event) { case SND_SOC_DAPM_POST_PMU: + msleep(125); regmap_update_bits(nau8825->regmap, NAU8825_REG_ENA_CTRL, NAU8825_ENABLE_ADC, NAU8825_ENABLE_ADC); break;