summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorAbhijeet Kumar <abhijeet.kumar@intel.com>2017-12-12 00:40:25 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-03 10:23:22 +0100
commit1ec97b2a4475e6157ec84b2a5d14530861badd0c (patch)
tree13aba1972861bca92a23e4cfb7ed17f2d63bf636 /sound/soc
parent90f7d14cef9bd30214dd7e56fc3c7a468cef6228 (diff)
ASoC: nau8825: fix issue that pop noise when start capture
[ Upstream commit d070f7c703ef26e3db613f24206823f916272fc6 ] 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 <abhijeet.kumar@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/nau8825.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c
index f9f2737c4ad2..a4871c4adcb0 100644
--- a/sound/soc/codecs/nau8825.c
+++ b/sound/soc/codecs/nau8825.c
@@ -882,6 +882,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;