Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp108366yba; Mon, 20 May 2019 05:51:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK8iXBvUX/OXqanseI3+Ogx9GJDxiZfPRyz5Z+D+fw0Bg8vbK+ZWXNp1YCMbSG2SLhh/Pl X-Received: by 2002:a17:902:56a:: with SMTP id 97mr37021063plf.20.1558356716105; Mon, 20 May 2019 05:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558356716; cv=none; d=google.com; s=arc-20160816; b=H110xSbYv/k+aZDfBOAyD5BAZh/xwMDZ0ocFTSui5C5eMZSLqtIJBhJg2IUmwfPF1V 0hzCBDbkS0kjH1RYY5tOtrkz6JGx3VaFgMfI0BCgL8vEOe79OGFpcP4Lua9H6QD4TD8r 0kd9+GANcy6I/MFaEa5Km31lxk6WeCbs/kPpjNWr1FuXqhq6cwPIzQ+8AD/6ZefVRg3a kx4MZIfM1nShCwo1NvjRgCbGrKojcvG/HqaNirTXeTFWIrF7x9NKNXM3nYFfWYSxdx6o gD13UV7j4gO1vg4Y61yc4/2+VeSU9h9I2X0CQEwAxAIzRi0e9OyHR/PESpD+ZxOQli6I LNdA== 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=AfxHaqcZRpW3RhidDTHX/vxWbMfXNpRImQzaLJLrXQo=; b=YBeG3r4gRdk8IrgdUyU61l6a2rAn+66XOHT5HeQ0Yp+WhMovziJQfX8GQAL8wminqA TVvsjofHL4pXfaZBVy42Wy1xvPe0OaJL9OBPZh5gZUdvFNKw7SWgoNoqrjTyu3IfOc1Q Z9MIk0/xNixuRt6zOJQKlO1MgM9/ZqsvdpO677d36A9SA5QglKCCEycoIx7tPJKZ7rVR gBbDEefvUC79+BNcro7RaS8i8ibwlwOIqkRx+wz/VTbVYhTH6rsiQHy4ncRHU8uhgYCv Qvjyc3Booh+CIsdwFrorESVe6OFgzM48/wQO/lNTJVLgwHkMO6qbngAtH08qAtbiZKCN OqOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GwnuAaJS; 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 u9si18858684pfn.253.2019.05.20.05.51.41; Mon, 20 May 2019 05:51:56 -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=GwnuAaJS; 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 S2388416AbfETMW3 (ORCPT + 99 others); Mon, 20 May 2019 08:22:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732404AbfETMW0 (ORCPT ); Mon, 20 May 2019 08:22:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 80014205ED; Mon, 20 May 2019 12:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558354946; bh=Y5gLgaKUCRhk57m/UXAViF0p7JGbNm1P9I90M+EkMGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GwnuAaJSdQARw36SOiOi8e28MjmvKxw4yUL4VYIeYpqTlRJcMrEPWGO+OPCRIX4rI NnZ6OOmiRT20rP7/eHPyjCCNaapmTfPx8Rz3DSmUPSNs3YgT7esFLsEy5rYw8ZBZbA IeigvSwWhmu+s7RvwBtyq2F/f0xgFytkItCKqo+w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 4.19 037/105] ALSA: hda/realtek - EAPD turn on later Date: Mon, 20 May 2019 14:13:43 +0200 Message-Id: <20190520115249.596686160@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@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: Kailang Yang commit 607ca3bd220f4022e6f5356026b19dafc363863a upstream. Let EAPD turn on after set pin output. [ NOTE: This change is supposed to reduce the possible click noises at (runtime) PM resume. The functionality should be same (i.e. the verbs are executed correctly) no matter which order is, so this should be safe to apply for all codecs -- tiwai ] Signed-off-by: Kailang Yang Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -803,11 +803,10 @@ static int alc_init(struct hda_codec *co if (spec->init_hook) spec->init_hook(codec); + snd_hda_gen_init(codec); alc_fix_pll(codec); alc_auto_init_amp(codec, spec->init_amp); - snd_hda_gen_init(codec); - snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_INIT); return 0;