All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: nau8825: fix issue that pop noise when start capture
@ 2017-12-11 19:10 abhijeet.kumar
  2017-12-15  7:16   ` John Hsu
  2017-12-19 10:58   ` Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: abhijeet.kumar @ 2017-12-11 19:10 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	John Hsu, Abhijeet Kumar, Bhumika Goyal, alsa-devel, linux-kernel

From: Abhijeet Kumar <abhijeet.kumar@intel.com>

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>
---
 sound/soc/codecs/nau8825.c | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-19 10:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-11 19:10 [PATCH] ASoC: nau8825: fix issue that pop noise when start capture abhijeet.kumar
2017-12-15  7:16 ` John Hsu
2017-12-15  7:16   ` John Hsu
2017-12-15  8:21   ` Kumar, Abhijeet
2017-12-19 10:58 ` Applied "ASoC: nau8825: fix issue that pop noise when start capture" to the asoc tree Mark Brown
2017-12-19 10:58   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.