From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - Remove speaker clicks on CX20549 Date: Thu, 14 Feb 2013 12:00:19 +0100 Message-ID: References: <1360838199-3906-1-git-send-email-david.henningsson@canonical.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 12C502652EE for ; Thu, 14 Feb 2013 12:00:20 +0100 (CET) In-Reply-To: <1360838199-3906-1-git-send-email-david.henningsson@canonical.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: David Henningsson Cc: alsa-devel@alsa-project.org, 886975@bugs.launchpad.net List-Id: alsa-devel@alsa-project.org At Thu, 14 Feb 2013 11:36:39 +0100, David Henningsson wrote: > > This chip needs the speaker pin to go to D3 to avoid clicks, > so default_power_filter does not work here. > > This was found on Thinkpad R61i/T61i but I guess it applies to > the entire chip. If not, quirks should be set for at least > PCI SSID 17aa:20ac. > > Thanks to c4pp4 for testing. > > BugLink: https://bugs.launchpad.net/bugs/886975 > Signed-off-by: David Henningsson Thanks, applied now. Just wonder, though, whether rather setting spec->gen.power_down_unused = 1 works. When it's set, the generic parser applies the own power filter, and it doesn't have the EAPD check either (plus it does more aggressive power-down of unused widgets). Or, maybe we just drop the EAPD check, and move it to specific fixup. AFAIK, it was required only for old Gateway laptops. Takashi > --- > sound/pci/hda/patch_conexant.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c > index 7d941ef..941bf6c 100644 > --- a/sound/pci/hda/patch_conexant.c > +++ b/sound/pci/hda/patch_conexant.c > @@ -3350,6 +3350,7 @@ static int patch_conexant_auto(struct hda_codec *codec) > switch (codec->vendor_id) { > case 0x14f15045: > codec->single_adc_amp = 1; > + codec->power_filter = NULL; /* Needs speaker amp to D3 to avoid click */ > break; > case 0x14f15047: > codec->pin_amp_workaround = 1; > -- > 1.7.9.5 >