Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2273514pxb; Mon, 11 Jan 2021 05:46:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxP++OKlDaW68QowV/Y1z9LkXX3Q0wEsaBlqxEUspHNtXJYqf0G3lZPUaxH87a7Ip8FrZmK X-Received: by 2002:a17:906:7f13:: with SMTP id d19mr11390170ejr.54.1610372770755; Mon, 11 Jan 2021 05:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610372770; cv=none; d=google.com; s=arc-20160816; b=0BNLbAhFcDVXmMf9NMButTMAVV5tpooOrEFvGK6jwDxxTlXPFDDpc+dRLgNSbt3jRF DpdErfxyzZj00HqZ/vm2Hs5E5RRbfQEId7Cf2kZRcV5t6EalJksExHTZrUnFgDMjrufy 9C1XYweMtYOSUFb1lH/yPs3LwOal1DtIXfEZu3YPk1M3Mcq9CulETtMW4y9uOAMBCsKV DE8w2YRhDtLEPaBAJPzZ96QOIWPwezU+mQf5owRLFFUcg4G2IdFuNrLHglYWOniggHl3 i9npywgYAvWqypyloJy95wAUPyG24sOQ7epv2fpdpSsSp41Z7e4FFgzn98n1mF9FRPL1 oHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xA16VqqmtOOJjVyTOt2fdBF2etlZCOzxEWmoKJCXRwc=; b=RPjaKhgS+lKsF1GFUbYzpHapPtQzP62YxomCngyau5CyTh18yjHpY1iOnKzpCDn9FX yw2/9ZzESsS1CwxWG/fZCjoSHccd9VRA19x/+4C0ctEmTpFLaWjOf4JZM90fV9LMXFSM Tneh7UHBZGRGqd6akPLk6vrT1anoIElaZ45UN6Delh0yv+t8NhsHFZ9Ulu9tD1cyrg3G SouxGa9r6QNgNQqnO0QW3/t1uCOqCZf8EJ9/OrAH/NjJhc4a5inAD7hDlV6J0Eip2M3V J8Yr82cCoixMtzxYLf0/1SLjQoJ2e5pUfcoLnPC1X2QQZAm+Jw/TRleCruSa8CgsLI0w CxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LS632cAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oh19si6796205ejb.553.2021.01.11.05.45.46; Mon, 11 Jan 2021 05:46:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LS632cAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733173AbhAKNl3 (ORCPT + 99 others); Mon, 11 Jan 2021 08:41:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:58908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731043AbhAKNMh (ORCPT ); Mon, 11 Jan 2021 08:12:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21F7521534; Mon, 11 Jan 2021 13:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370741; bh=6oYeBbxmcIwtSIoJvuKO7E95e3znV0E+ecg6FXvDM8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LS632cAqJtBwV0r1pJbK6DMWz9hmqHLxijkpWcCmXHkxRHjeAwZBqj7TYscc5CeWb sHDDzvh+r2e8lLJF+uLM66QrwEIlIqQEg8HBnTL9Mgst0BSel9cEa2QDK/Fa7C+NfI aOa1T+k+luqHLMzH3tWnq3HWq0q20yfZxmSeSb9I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Labisch , Takashi Iwai Subject: [PATCH 5.4 78/92] ALSA: hda/via: Fix runtime PM for Clevo W35xSS Date: Mon, 11 Jan 2021 14:02:22 +0100 Message-Id: <20210111130042.913637333@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit 4bfd6247fa9164c8e193a55ef9c0ea3ee22f82d8 upstream. Clevo W35xSS_370SS with VIA codec has had the runtime PM problem that looses the power state of some nodes after the runtime resume. This was worked around by disabling the default runtime PM via a denylist entry. Since 5.10.x made the runtime PM applied (casually) even though it's disabled in the denylist, this problem was revisited. The result was that disabling power_save_node feature suffices for the runtime PM problem. This patch implements the disablement of power_save_node feature in VIA codec for the device. It also drops the former denylist entry, too, as the runtime PM should work in the codec side properly now. Fixes: b529ef2464ad ("ALSA: hda: Add Clevo W35xSS_370SS to the power_save blacklist") Reported-by: Christian Labisch Cc: Link: https://lore.kernel.org/r/20210104153046.19993-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 2 -- sound/pci/hda/patch_via.c | 13 +++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2186,8 +2186,6 @@ static struct snd_pci_quirk power_save_b SND_PCI_QUIRK(0x1849, 0x7662, "Asrock H81M-HDS", 0), /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ SND_PCI_QUIRK(0x1043, 0x8733, "Asus Prime X370-Pro", 0), - /* https://bugzilla.redhat.com/show_bug.cgi?id=1581607 */ - SND_PCI_QUIRK(0x1558, 0x3501, "Clevo W35xSS_370SS", 0), /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ SND_PCI_QUIRK(0x1558, 0x6504, "Clevo W65_67SB", 0), /* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -1002,6 +1002,7 @@ static const struct hda_verb vt1802_init enum { VIA_FIXUP_INTMIC_BOOST, VIA_FIXUP_ASUS_G75, + VIA_FIXUP_POWER_SAVE, }; static void via_fixup_intmic_boost(struct hda_codec *codec, @@ -1011,6 +1012,13 @@ static void via_fixup_intmic_boost(struc override_mic_boost(codec, 0x30, 0, 2, 40); } +static void via_fixup_power_save(struct hda_codec *codec, + const struct hda_fixup *fix, int action) +{ + if (action == HDA_FIXUP_ACT_PRE_PROBE) + codec->power_save_node = 0; +} + static const struct hda_fixup via_fixups[] = { [VIA_FIXUP_INTMIC_BOOST] = { .type = HDA_FIXUP_FUNC, @@ -1025,11 +1033,16 @@ static const struct hda_fixup via_fixups { } } }, + [VIA_FIXUP_POWER_SAVE] = { + .type = HDA_FIXUP_FUNC, + .v.func = via_fixup_power_save, + }, }; static const struct snd_pci_quirk vt2002p_fixups[] = { SND_PCI_QUIRK(0x1043, 0x1487, "Asus G75", VIA_FIXUP_ASUS_G75), SND_PCI_QUIRK(0x1043, 0x8532, "Asus X202E", VIA_FIXUP_INTMIC_BOOST), + SND_PCI_QUIRK(0x1558, 0x3501, "Clevo W35xSS_370SS", VIA_FIXUP_POWER_SAVE), {} };