Skip to contentSkip to conversation

ASoC: nau8825: fix issue that pop noise when start capture

PATCH In review [email protected] 3 participants 4 messages Dec 11, 2017 – Dec 19, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: nau8825: fix issue that pop noise when start capture

From: Abhijeet Kumar <[email protected]>

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.

---
 sound/soc/codecs/nau8825.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/nau8825.c +1 -0
index 714ce17da717..e853a6dfd33b 100644
@@ -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;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 16 lines · On 12/12/2017 3:10 AM, [email protected] wrote:

From: Abhijeet Kumar <[email protected]>

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.

---
 sound/soc/codecs/nau8825.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/nau8825.c +0 -0
index 714ce17da717..e853a6dfd33b 100644

sound/soc/codecs/nau8825.c static int nau8825_adc_event(struct snd_soc_dapm_widget *w, · line 911

Quoted 7 lines
sound/soc/codecs/nau8825.c +1 -0
@@ -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;

The solution is fine for me. It's verified in my device and indeed helps to reduce the capture pop noise. I think the little delay is acceptable.

===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

#2 lore raw

Need some help on next steps
Who will do the review and patch merge? Should i add any other mailing list to this thread?

-----Original Message-----
From: John Hsu [mailto:[email protected]]
Sent: Friday, December 15, 2017 12:47 PM
To: Kumar, Abhijeet <[email protected]>
Cc: Liam Girdwood <[email protected]>; Mark Brown <[email protected]>; Jaroslav Kysela <[email protected]>; Takashi Iwai <[email protected]>; Bhumika Goyal <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Chiang, Mac <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] ASoC: nau8825: fix issue that pop noise when start capture

Quoted 23 lines · On 12/12/2017 3:10 AM, [email protected] wrote:

From: Abhijeet Kumar <[email protected]>

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.

---
 sound/soc/codecs/nau8825.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/nau8825.c +1 -0
index 714ce17da717..e853a6dfd33b 100644
@@ -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);
Quoted 1 line
              break;

The solution is fine for me. It's verified in my device and indeed helps to reduce the capture pop noise. I think the little delay is acceptable.

===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

maintainer
#3 lore raw

Applied "ASoC: nau8825: fix issue that pop noise when start capture" to the asoc tree

In reply to [email protected]

The patch

ASoC: nau8825: fix issue that pop noise when start capture

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From d070f7c703ef26e3db613f24206823f916272fc6 Mon Sep 17 00:00:00 2001

From: Abhijeet Kumar <[email protected]>
Date: Tue, 12 Dec 2017 00:40:25 +0530
Subject: [PATCH] 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.

---
 sound/soc/codecs/nau8825.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/nau8825.c +1 -0
index 714ce17da717..e853a6dfd33b 100644
@@ -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;
Signature · 1 line
2.15.1