Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2988519imm; Sun, 1 Jul 2018 09:47:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVO3TtNDsyBwcCryDojWiY6BPjveyKYuE+H2Y/5LyiN9rMH7PDsTj8NHwGCPeleX2MlKqT X-Received: by 2002:a62:850d:: with SMTP id u13-v6mr14330792pfd.131.1530463677687; Sun, 01 Jul 2018 09:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463677; cv=none; d=google.com; s=arc-20160816; b=e/W1bwsvfesCc0poso10E5mdK8Ap/OYi89LUQZuU6ee/NAU2GoVNYuy7Ca5TIShYTw dZtQ7AP3lDMfu3OsBc1CQhXep3ZoAQR50PyEjToG50cG43SvaQlatAg0wbKnJN53rTb4 BgK9tYRDXd9EbYPfM2JokkOsbps1iObPviW/ZVHMxQQjaxDFqvIXLu7Dj9LvRrZ3oQhf 4qxVYIVtaZsb5i+lGq+pM1e60AUiKf32ni5EV0QKnLUjnDNYsKM9Ntq3lUv59ywMxLAT pIKYhK72n/YasCIyJ3zQWGainclMnQJuPUi+4O6OZK6I5ZA55QJEa45tRZ788I0kiD5H SdaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qOc59eDKTgH65z9rWYXc6s7OGIaRI/LEsKdmfqFul3Q=; b=SpJ6twZG/wH8zuPI369LMJqzkrSaRsNjm3rVtiTO3wRd0gCE3KcLVV7ZcAwqclHIMC tLRV5UZkj++oOHuGlfNRFqdAsCI15kvC1m51UggnZrQyYMn9JLPKa9giozYSRFHtZ+ou vAAejsXWUc2SP3XKUgu96c6bahuu6YbJLXjRhjMF+8CZIPq4fIu3PjxrneQC5m07+xD7 22/MAmh1ro1w8Zv+Fp/TdOXKBHyHi7ZDwMHRhS4Hg1bpSXGgOAGUmIA3NAodIB4oBF+u 81C+sHq+k4GSDm6tc3zcdHoBwvZ5ET8+Nk2x4ifry0nkcaMQvwWWglgf0hdpV/hD+PCj yKxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si14591479pld.40.2018.07.01.09.47.43; Sun, 01 Jul 2018 09:47:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965947AbeGAQp6 (ORCPT + 99 others); Sun, 1 Jul 2018 12:45:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38290 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032218AbeGAQpw (ORCPT ); Sun, 1 Jul 2018 12:45:52 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3EB43ACC; Sun, 1 Jul 2018 16:45:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Benjamin Berg , Takashi Iwai Subject: [PATCH 4.17 203/220] ALSA: hda/realtek - Fix pop noise on Lenovo P50 & co Date: Sun, 1 Jul 2018 18:23:47 +0200 Message-Id: <20180701160916.654275999@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit d5a6cabf02210b896a60eee7c04c670ee9ba6dca upstream. Some Lenovo laptops, e.g. Lenovo P50, showed the pop noise at resume or runtime resume. It turned out to be reduced by applying alc_no_shutup() just like TPT440 quirk does. Since there are many Lenovo models showing the same behavior, put this workaround in ALC269_FIXUP_THINKPAD_ACPI entry so that it's applied commonly to all such Lenovo machines. Reported-by: Hans de Goede Tested-by: Benjamin Berg Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4985,7 +4985,6 @@ static void alc_fixup_tpt440_dock(struct struct alc_spec *spec = codec->spec; if (action == HDA_FIXUP_ACT_PRE_PROBE) { - spec->shutup = alc_no_shutup; /* reduce click noise */ spec->reboot_notify = alc_d3_at_reboot; /* reduce noise */ spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; codec->power_save_node = 0; /* avoid click noises */ @@ -5384,6 +5383,13 @@ static void alc274_fixup_bind_dacs(struc /* for hda_fixup_thinkpad_acpi() */ #include "thinkpad_helper.c" +static void alc_fixup_thinkpad_acpi(struct hda_codec *codec, + const struct hda_fixup *fix, int action) +{ + alc_fixup_no_shutup(codec, fix, action); /* reduce click noise */ + hda_fixup_thinkpad_acpi(codec, fix, action); +} + /* for dell wmi mic mute led */ #include "dell_wmi_helper.c" @@ -5927,7 +5933,7 @@ static const struct hda_fixup alc269_fix }, [ALC269_FIXUP_THINKPAD_ACPI] = { .type = HDA_FIXUP_FUNC, - .v.func = hda_fixup_thinkpad_acpi, + .v.func = alc_fixup_thinkpad_acpi, .chained = true, .chain_id = ALC269_FIXUP_SKU_IGNORE, },