Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9A9FC2B9F8 for ; Tue, 25 May 2021 06:20:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A16161413 for ; Tue, 25 May 2021 06:20:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A16161413 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C77DB15E2; Tue, 25 May 2021 08:20:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C77DB15E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1621923655; bh=2bGtXOpzSi0KZIl1NI+UE4b8ZJUAlyojhow4cr4ChxM=; h=Subject:From:To:References:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NsKGhKZ4miNFvYCIpVmQLbYSITxsY6vMzbVDUOTbA2gjzn6sMWC2jTwXG+Z+sbUtx +izpR9T7B56J5Z2MP3btTVNbMZ/6F+L6OF83d8OcxAzf5Une3wk7bcwshvhhIpSiuI hnK1lBIc/klz06pZlFrj0lgX9OhvYUCVdsauNosY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 30D13F8011B; Tue, 25 May 2021 08:20:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C691CF801EB; Tue, 25 May 2021 08:20:03 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9C5D0F8011B for ; Tue, 25 May 2021 08:19:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9C5D0F8011B IronPort-SDR: tfZM2lp/gh4BWr46vPDNBglRyLXdZTDRX2azlENLmpPC5rxedtznoz/Y8rD+GgTUbSMHOck8of qYBjvif0wIAQ== X-IronPort-AV: E=McAfee;i="6200,9189,9994"; a="266010388" X-IronPort-AV: E=Sophos;i="5.82,327,1613462400"; d="scan'208";a="266010388" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 23:19:50 -0700 IronPort-SDR: 3/D2g46xbq8trLPwMiGEdMfs7O6SHk3Ioz7bz8yNhj3H+w72uBK+JtnxP5YL8Ur0Y4n6R7QOKI 21X/byLapLdg== X-IronPort-AV: E=Sophos;i="5.82,327,1613462400"; d="scan'208";a="476259943" Received: from pujfalus-mobl.ger.corp.intel.com (HELO [10.252.39.140]) ([10.252.39.140]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 23:19:49 -0700 Subject: Re: [RFC] ALSA: hda: Add Lenovo ThinkStation P340 to power_save_denylist From: "Ujfalusi, Peter" To: tiwai@suse.de References: <20210524112740.19330-1-peter.ujfalusi@linux.intel.com> Message-ID: Date: Tue, 25 May 2021 09:19:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210524112740.19330-1-peter.ujfalusi@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Cc: alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi, On 5/24/2021 2:27 PM, Peter Ujfalusi wrote: > On playback start there is a huge plock/pop noise via the green jack used > in Line out mode. > > The only way I was able to fix it to set the power_save to 0 for the > snd_hda_intel. > > Signed-off-by: Peter Ujfalusi > --- > Hi Takashi, > > ever since I have this workstation the plock/pop noise on playback start bugged > me. So far the only solution I have found is to disable the power_save which > I find acceptable on a desktop compared to the pops. > > The alsa-info.sh output is can be found here: > http://alsa-project.org/db/?f=414b1b236fc73db386ad4f938bc3b304f6b30b05 > > The machine have ALC623 codec and the jacks are correctly discovered and they > do what they supposed to be. > When I have the headset connected to the front and audio is routed there the > line out (green jack) from the back still prodices the plock/pop. > > Is there a known quirk for similar issue or a better way to handle it? > > Thanks you, > Peter Ujfalusi > > sound/pci/hda/hda_intel.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c > index 79ade335c8a0..e16d93d8291f 100644 > --- a/sound/pci/hda/hda_intel.c > +++ b/sound/pci/hda/hda_intel.c > @@ -2213,6 +2213,8 @@ static const struct snd_pci_quirk power_save_denylist[] = { > SND_PCI_QUIRK(0x17aa, 0x36a7, "Lenovo C50 All in one", 0), > /* https://bugs.launchpad.net/bugs/1821663 */ > SND_PCI_QUIRK(0x1631, 0xe017, "Packard Bell NEC IMEDIA 5204", 0), > + /* Loud pluck/pop noise via the green jack on playback start */ > + SND_PCI_QUIRK(0x8086, 0x06c8, "Lenovo ThinkStation P340", 0), The PCI ID might be wrong here: # lspci -nnk | grep -A2 Audio 00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8]        DeviceName: Onboard - Sound        Subsystem: Lenovo Device [17aa:1048] 0x17aa:0x1048 is the correct one. alsa-info failed to pick up the CPU, it is i9-10900k > {} > }; > #endif /* CONFIG_PM */ > -- Péter