Skip to contentSkip to conversation

Remove depop delay for suspend and resume

PATCH Kailang 3 participants 7 messages Nov 29, 2013 Sound

lore
Share & tools
lore

Kailang

author
#0 lore raw

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Thanks.
Kailang

Quoted 1 line

From 11a85d67e65326065bc0648f0750fe14925b2a03 Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Thu, 28 Nov 2013 13:55:26 +0800
Subject: [PATCH] ALSA: hda/realtek - Remove depop delay for suspend and resume

Remove common alc_suspend for alc_eapd_shutup and alc_resume delay. We could add the depop functions like ALC283.

sound/pci/hda/patch_realtek.c +0 -2
index c4ad9d1..fbb32d1 100644
@@ -281,7 +281,6 @@ static void alc_auto_setup_eapd(struct hda_codec *codec, bool on)
 static void alc_eapd_shutup(struct hda_codec *codec)
 {
 	alc_auto_setup_eapd(codec, false);
-	msleep(200);
 	snd_hda_shutup_pins(codec);
 }
 
@@ -863,7 +862,6 @@ static int alc_suspend(struct hda_codec *codec)
 #ifdef CONFIG_PM
 static int alc_resume(struct hda_codec *codec)
 {
-	msleep(150); /* to avoid pop noise */
 	codec->patch_ops.init(codec);
 	snd_hda_codec_resume_amp(codec);
 	snd_hda_codec_resume_cache(codec);
#1 lore raw

At Fri, 29 Nov 2013 10:48:20 +0800,

Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks,

Takashi

author
#2 lore raw

Hi Takashi,

I know your concerm.
Thanks.

Hi Mengdong,

Could you only remove it on you test image?

Thanks.
Kailang.

Quoted 24 lines

At Fri, 29 Nov 2013 10:48:20 +0800,

Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks,

Takashi

------Please consider the environment before printing this e-mail.

#3 lore raw
Quoted 5 lines

-----Original Message-----
From: Kailang [mailto:[email protected]]
Sent: Friday, November 29, 2013 3:08 PM
To: Takashi Iwai; Lin, Mengdong

Quoted 8 lines

Hi Takashi,

I know your concerm.
Thanks.

Hi Mengdong,

Could you only remove it on you test image?

Thank you for the info! I only tested Baytrail-M platform.

Is it possible to add a flag and set the flag a in board-specific fixup?

Regards
Mengdong

Quoted 24 lines
Quoted 24 lines

At Fri, 29 Nov 2013 10:48:20 +0800,

Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks,

Takashi

------Please consider the environment before printing this e-mail.

#4 lore raw

At Fri, 29 Nov 2013 08:13:05 +0000,

Quoted 11 lines · Mengdong
Quoted 11 lines

-----Original Message-----
From: Kailang [mailto:[email protected]]
Sent: Friday, November 29, 2013 3:08 PM
To: Takashi Iwai; Lin, Mengdong

Hi Takashi,

I know your concerm.
Thanks.

Quoted 7 lines
Quoted 3 lines

Hi Mengdong,

Could you only remove it on you test image?

Thank you for the info! I only tested Baytrail-M platform.

Is it possible to add a flag and set the flag a in board-specific fixup?

Yes, feel free to hack struct alc_spec.

Takashi

Quoted 30 lines

Regards
Mengdong

Quoted 24 lines
Quoted 24 lines

At Fri, 29 Nov 2013 10:48:20 +0800,

Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks,

Takashi

------Please consider the environment before printing this e-mail.

#5 lore raw
Quoted 10 lines

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Friday, November 29, 2013 4:23 PM

Quoted 3 lines

Thank you for the info! I only tested Baytrail-M platform.

Is it possible to add a flag and set the flag a in board-specific fixup?

Yes, feel free to hack struct alc_spec.

Okay. I'll modify the patch as you suggested, and add a board fixup for Baytrail.

Thanks
Mengdong

Quoted 24 lines
Quoted 24 lines
Quoted 23 lines
Quoted 23 lines
Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks,

Takashi

------Please consider the environment before printing this e-mail.

#6 lore raw

Hi Kailang/Takashi,

I revised and submitted the patches. Please have a review.

[PATCH 1/2] ALSA: hda/realtek - Remove depop delay for suspend and resume if applicable [PATCH 2/2] ALSA: hda - fixup ALC262 to remove depop delay on Intel BayleyBay board

Thanks
Mengdong

Quoted 45 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lin, Mengdong
Sent: Friday, November 29, 2013 5:10 PM
To: Takashi Iwai
Cc: [email protected]; Kailang
Subject: Re: [alsa-devel] Remove depop delay for suspend and resume

Quoted 10 lines

-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Friday, November 29, 2013 4:23 PM

Quoted 3 lines

Thank you for the info! I only tested Baytrail-M platform.

Is it possible to add a flag and set the flag a in board-specific fixup?

Yes, feel free to hack struct alc_spec.

Okay. I'll modify the patch as you suggested, and add a board fixup for Baytrail.

Thanks
Mengdong

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 7 lines · Kailang

Hi Takashi,

Intel test alc262.
They find the suspend and resume time were > 50ms. So, I delete the delay for alc_eapd_shutup and alc_resume. If we want to have depop functions, we will follow like alc283.

Which delay value to take is pretty specific to machine. Removing delay will likely cause problem on other machines.

So, if we'd remove delays, do it only for tested machines, not do blindly to all machines using the same codec chips. The pop noise isn't only determined by a codec chip but rather influenced by the whole hardware analog design.

thanks, > > > >
Takashi