summaryrefslogtreecommitdiff
path: root/sound
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:24:25 +0100
commit56d80186a5ac8af22dc583f9db043a1a0c54c435 (patch)
treef2dbfcc2b4672d17f3854215295836986a6910ea /sound
parent3cf652bedcb9acd5491715adc7996f35d33c409a (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@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-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 714ce17da717..e853a6dfd33b 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;