From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEA9CC28EBD for ; Sun, 9 Jun 2019 17:14:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDFBD2067C for ; Sun, 9 Jun 2019 17:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560100450; bh=IXkIlCqkCaRjuYvfMMsgCVOb7+uyMRZbWTQdJx58+r4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DRrCyrmfIKBrZDB7StvpM3kDIKP5mLaRGl7ogXTQhLp/Q36E9Yn4qnqgmhOYHXQrU UZeesy9p3PTGkvD8y4cufHtC+OnfT6LYC1BaEBAzX73rZOC8i4EIEmgjA48Qv3mtPJ 7uFOnwdDnmEClNPrxb8EsAMieAbJ+fNuMcw0wZyk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732176AbfFIROF (ORCPT ); Sun, 9 Jun 2019 13:14:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733182AbfFIQ52 (ORCPT ); Sun, 9 Jun 2019 12:57:28 -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 4E1F7205ED; Sun, 9 Jun 2019 16:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560099447; bh=IXkIlCqkCaRjuYvfMMsgCVOb7+uyMRZbWTQdJx58+r4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OCyD+7HdndDCZi2lUfds2CtyWNnMb8EuQ9cBtDP3rjI+8Pd0ffF5NWwg8FTnCqAuq AQtVbmN3f9/NYpZkZ//35jCPxiFlSZGzKNrQ7L0meABOgVXjeVH4psHXrINzcHIwFe r1AY40sM6hDXeJtccZIUUs+YzcZjxPP2cxFRvRu8= 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.4 009/241] ALSA: hda/realtek - EAPD turn on later Date: Sun, 9 Jun 2019 18:39:11 +0200 Message-Id: <20190609164148.056165787@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164147.729157653@linuxfoundation.org> References: <20190609164147.729157653@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 @@ -772,11 +772,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;