Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3053770imm; Sun, 1 Jul 2018 11:09:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpezcvRa4/LEeKovUC6URSgYqMVTBkt70rD4NwxAU2qYKNYFxPGHotBXtXWZaB+2a8l/mQmn X-Received: by 2002:a63:790b:: with SMTP id u11-v6mr17076287pgc.111.1530468571231; Sun, 01 Jul 2018 11:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468571; cv=none; d=google.com; s=arc-20160816; b=KfxsUGhlberzgW+/4XfJPWjLYlLFLvjkPm6dnnaVfRi3LXscmCSGV1uXOAZz59Xyg6 FuAlxv6YWOoTERsbavdyHuUOK6C11zMn0Hy5j5IZFZNFoVTH9DXsPclseWiGvsqMeOv6 fAuhSy2QXj3UhqqOgO+j6EYq6SyVdfBMXWdzM4PuUvP6ovRaUbKWYpcXRYFvn9QZAzNz vhMoE6JJ1wUizYy6dn5E6vVXdYTcTRCXc7gCaGn2EHwVUQs7FzQeZQdScdCdTPH3vUqx N66MVfcw62hdYIP4v0n7LdeuxwTvvlpx0Fd5YMsJF1Ptu6QkZwEox9w13mgt7gyVIsKM c09w== 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=nzt0CdSQE2aFSE5HeRBEBMtcQL9yCzGPx3z11pDO/O4=; b=TUY1ZmQH9tHFRk6IfH5TuvcghJagpEcojMX/9OhcusEgiX42nEmW8ThaoPrP4S0EEy rCuz1YMSDVfr3/7cUFzjxFh3qTOwJexQsrt18Hd8KCkkpC7iEs3IuRitPNC5UUaTbYVv dwTYaAbF5qSDFdOD/tY9xc5sJN/gY2yEKY3Jt9ysNK2xGmpu1+4oi8HrADfc82IrFoME Mnd/mxrAUtAW3+XYfwmfRMSm+3AtHZJ0Kjvugg3hcpIvManJ3c9Eu7DP8HG2ejHic8Ki ffxeCQ0gorC+4U75u3LOAM0SoT9j6cyl7uksPyMYJn7VHrxoPDvkA1lTDclEosknt6zk duNA== 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 v4-v6si11850411pgf.488.2018.07.01.11.09.17; Sun, 01 Jul 2018 11:09:31 -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 S933978AbeGASH0 (ORCPT + 99 others); Sun, 1 Jul 2018 14:07:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34366 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965716AbeGAQ2m (ORCPT ); Sun, 1 Jul 2018 12:28:42 -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 D25E192B; Sun, 1 Jul 2018 16:28:41 +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.9 097/101] ALSA: hda/realtek - Fix pop noise on Lenovo P50 & co Date: Sun, 1 Jul 2018 18:22:23 +0200 Message-Id: <20180701160801.036082559@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@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.9-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 @@ -4473,7 +4473,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 */ @@ -4835,6 +4834,13 @@ static void alc280_fixup_hp_9480m(struct /* 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" @@ -5350,7 +5356,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, },