Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp223019ybl; Thu, 22 Aug 2019 23:19:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0Zt7oAYgXztFXNBhrbjw6d6NiRp3LB56Gb65hYQimN5JEax0NijuTMp1AplL2hb6L6k54 X-Received: by 2002:a17:902:e85:: with SMTP id 5mr864908plx.16.1566541175683; Thu, 22 Aug 2019 23:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566541175; cv=none; d=google.com; s=arc-20160816; b=MqvQn0E6kGQgT2YJ+f/G4/htv8ZVcreT1fQ+TOqjcOPjJHnjjvmjeKOCrizA5XQynz ZahwXy0FnV4M/JL179T/1EpNLXvuyQ0Zmet90rqfdgCxM7+KDrhkIjWlkU4RfOt678VJ TJ8dFTphGgXerM0wpzezFBTVNDwMeKSAwBdyEuunn7Oxtp3RBw6xI6BAuQCNeOXvQScG bi667R8/FKpChVX347yFNTFPWu9YYNimTFGpZdu2dYGpI4DsdW3YQrFYNDPS1wF1dLmP M6beniOExZbJfouucfwSgs0XFfX9XkdjxNZWT1y0QHPRJT8dBxQ9LDR2Oo/ZxMDJo281 ekSA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Js54D8HXAX8MBv3rS65DJl6dml6DQYXUCkaP40mp5Sk=; b=z1n7LqqFJLTo5TqfID/wrxJWG0Q/dNRDXqqoyph8BFK5JoFpJjy884SkHy3UDM+aK9 iEhw6CcExqYxiMfIdMn8Bqo5J0KtTWkvFrzkH7eih0lnEdbXsRo9a5qYXXUWV7VkUQgr tJWOq0cHCVm19SilGjcdNt2l9SnXTMs+xkM74XQuRA8G8RwnGEGYiKcX/ud9SuXDNiEq ge6F6HwTuFkxR/6dNhK75XOjLNQUZvZmE1DipeiAbiY60BONPV4TloSqzd9C8o5PgDjD fgY/OpWCTCK2A/j7aILPHLP0dfKtUTdR0gOzBjnO4FHiW6icokkg6EodhCENzf+LOpx1 icyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nQbgD27C; 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 b42si1524257pjc.18.2019.08.22.23.19.20; Thu, 22 Aug 2019 23:19:35 -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=nQbgD27C; 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 S2391329AbfHVRmP (ORCPT + 99 others); Thu, 22 Aug 2019 13:42:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390427AbfHVRXu (ORCPT ); Thu, 22 Aug 2019 13:23:50 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C63BA2342A; Thu, 22 Aug 2019 17:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494629; bh=7MolTu/QaV4G78Ol8wsTvSGUS5eZKY0VigIqvUjN41o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nQbgD27CYT+Qe3xxQjeUKa6DtHEPKPfaI5QTarIxxNb3TlFpR++3YfiyBuXZHEJxs rNyihPz7Greip9I9Y6oVO2QqEYIX4lFPQzdZ1Hz3rxf87JKcNlmMEAo8NTyxtOrXZN Sfx/LpGG8f4WZpKfejYRH3KGHlubcWQryQI/7GtY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Takashi Iwai Subject: [PATCH 4.9 061/103] ALSA: hda - Let all conexant codec enter D3 when rebooting Date: Thu, 22 Aug 2019 10:18:49 -0700 Message-Id: <20190822171731.258616541@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171728.445189830@linuxfoundation.org> References: <20190822171728.445189830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -204,15 +204,6 @@ static void cx_auto_reboot_notify(struct { 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);