Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1524564ybl; Thu, 22 Aug 2019 16:24:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy63cOUsF0EA9g9aR+2F44qlens5UHs5SFYty3UnTEZerBB19Z/ZhXuVsrDz+oOjWgFiPwz X-Received: by 2002:aa7:9293:: with SMTP id j19mr1952124pfa.90.1566516292029; Thu, 22 Aug 2019 16:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566516292; cv=none; d=google.com; s=arc-20160816; b=m/KWbqw9Eb4AZgX/AXfjeJ8mmEu8nFB7JSc4N3Y7NUDv59HZEsWvzxAXr39SLTxBnf C7LiJvLNrA0Dec8+7X9RAED0K+qyB6UI8r/1Y9JlIgf6S7To3Bhe66cdY3Q/2EtRoIOU SUirTOwYFMo8flQDq4LL4ar+62y9RqbLt+822rZYjYUMqu3xTl+tfppbYqA+zQvAtwn0 QQwsT//bMo5HFrhNwimycEXgGa+osDUMmeDIkq/TwC98b445PXkW+QCdG4eJ3T0D68Ml il7ER0v8SW8/7a9MO/9P2Ol4EwZctQSGQjCqiLQGNuhHmlM+K5YGPgmc26cH2Nm1q9vs rMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ytAne6YF2i1c8CovMhIpTz2p68gvLBWcsB+Myax3LDw=; b=SAaEYuX80XTcFcvFS8Yk3dB2Is6ikvDmO3GKlZPONIRr2b7L7HYqvv6xFBoXR+hd9z lZHo85iSIG9psRPQZumuvFZeXqmMIwdIjXpgRkTcjD+5PCyzgYqDjLmOG+KcYovGX4eF rrC3doaqnZN2uNjxzvsf3acpAYr0hmKCHj6E4UbPWf7ddFiaTyH1UxZVh3cUPqzYEIxG kbOmilZDPwrLVG67d5VEMmgVHhvXTaEo0rU9NHDG+L7p9VidewrJY6Ma5kHPkmqsZ28C I7tBn5ZPM0sg2MaIHxlgebmF2WNHBo/MbDY3YwqYvz26CrY2Hvtuo49dd3mIhts7gLo9 o/BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hQkHWtET; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si536815pgp.19.2019.08.22.16.24.37; Thu, 22 Aug 2019 16:24:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hQkHWtET; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391286AbfHVRRZ (ORCPT + 99 others); Thu, 22 Aug 2019 13:17:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:58078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390336AbfHVRI2 (ORCPT ); Thu, 22 Aug 2019 13:08:28 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C677F2341B; Thu, 22 Aug 2019 17:08:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493707; bh=6ZRKZTDtFpcHuGYbyiowH588bgrykE4wVjMA0sDld/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hQkHWtETU03TKiVl4Z5lITjU//Ti6wxQvFkPzHh5/1Ljyxu/qTioIU9mo9jhUdrJP TBLryTeM+iP5OmLMNnNzzFOy43/hxmii+MMnWJhmoCQ9RVFBSWcYVMprziRWaVZGXz a/GX5X2k56GmzHx/wAhxX21C6vZiNLd8WAvIgSPg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hui Wang , Takashi Iwai , Greg Kroah-Hartman Subject: [PATCH 5.2 023/135] ALSA: hda - Let all conexant codec enter D3 when rebooting Date: Thu, 22 Aug 2019 13:06:19 -0400 Message-Id: <20190822170811.13303-24-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hui Wang commit 401714d9534aad8c24196b32600da683116bbe09 upstream. We have 3 new lenovo laptops which have conexant codec 0x14f11f86, these 3 laptops also have the noise issue when rebooting, after letting the codec enter D3 before rebooting or poweroff, the noise disappers. Instead of adding a new ID again in the reboot_notify(), let us make this function apply to all conexant codec. In theory make codec enter D3 before rebooting or poweroff is harmless, and I tested this change on a couple of other Lenovo laptops which have different conexant codecs, there is no side effect so far. Cc: stable@vger.kernel.org Signed-off-by: Hui Wang Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_conexant.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 0b0f24d24f8fd..14298ef45b21b 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -163,15 +163,6 @@ static void cx_auto_reboot_notify(struct hda_codec *codec) { struct conexant_spec *spec = codec->spec; - switch (codec->core.vendor_id) { - case 0x14f12008: /* CX8200 */ - case 0x14f150f2: /* CX20722 */ - case 0x14f150f4: /* CX20724 */ - break; - default: - return; - } - /* Turn the problematic codec into D3 to avoid spurious noises from the internal speaker during (and after) reboot */ cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, false); -- 2.20.1