Received: by 10.213.65.68 with SMTP id h4csp869870imn; Tue, 27 Mar 2018 10:16:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49yN5cIEBHLvctFOkRb2ubzSDTtgkPGQTL+9YYpeTF+cFbukMUL83J/5F5HUBn6WTYBTror X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr140858plo.357.1522170984268; Tue, 27 Mar 2018 10:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522170984; cv=none; d=google.com; s=arc-20160816; b=MgdTIcWRgUx1y7HSG38QsHlaD90gABPoH4oh9jc73Y2qCqy+6RqaYA6z0C83dPKEOJ 62pUPRCzgtfRKPS/ENU9o57Lf93GhMAvlK/KfCIM7CidDWLvcYL102PkijZ74BDs68n5 8yOgQ4EbRJ9nhXdQy7e4Ucea+xrkfG1uacYSNq4kYe/TdbV7etwhKdPStTsU8i/gy06f semeHrb0GHoIcFn6YfYCwWoEQws8SwI8qoGhuiCS8wT7vuh9VyNlppzEPvzMVL1QvhIN mMDeZu5b1er8VqYCnul5qPXnbGRRwKm3t2rw9dITPTY4dAXqXyheXj/Igrwn/Sx2OE5h kNqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Pff6IhsjKSa+QxyvnvWHe/uj5bL9yjnnYDXg7597yIY=; b=WFkrl1GRNYcWbo6tEymqokmEvL58ZVe9AgDVKY/FnMbeQ7LuKiBHQfXYpdzfEYw/x0 lcS2WhVnkcIlZYa1CUMCPBPyi/EqZ+nvrkW0Wl3Uny7UpfxlYYEV6/3o/W0ULY29Que7 cDhg5vA51Q5+pEnJDF6I1o30kSeixWgWQkwz1/xq2NIWg+hZpTehQ1XlAoASM9D0qNUs EUOcbKL6IffI75whVJUtETHi2VsXu61kyC7Q8FUWDFIzy5rDHSog+QxSPkt8gmGwkfl9 CObM7FqF8ztOjeNkf440GU9wxiTg64VqfPZOmDzI8Z0hltogCuBH0yL6YUoYadGjVTXC EN1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 t28si1205032pfk.187.2018.03.27.10.16.10; Tue, 27 Mar 2018 10:16:24 -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; 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 S1755323AbeC0Qi4 (ORCPT + 99 others); Tue, 27 Mar 2018 12:38:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46970 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754645AbeC0Qix (ORCPT ); Tue, 27 Mar 2018 12:38:53 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4A365102D; Tue, 27 Mar 2018 16:38:53 +0000 (UTC) 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.15 013/105] ALSA: hda/realtek - Fix speaker no sound after system resume Date: Tue, 27 Mar 2018 18:26:53 +0200 Message-Id: <20180327162758.401789965@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kailang Yang commit 88d42b2b45d7208cc872c2c9dec0b1ae6c6008d7 upstream. It will have a chance speaker no sound after system resume. To toggle NID 0x53 index 0x2 bit 15 will solve this issue. This usage will also suitable with ALC256. Fixes: 4a219ef8f370 ("ALSA: hda/realtek - Add ALC256 HP depop function") Signed-off-by: Kailang Yang Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3130,6 +3130,8 @@ static void alc256_init(struct hda_codec alc_update_coef_idx(codec, 0x46, 3 << 12, 0); alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x4); /* Hight power */ + alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 1 << 15); /* Clear bit */ + alc_update_coefex_idx(codec, 0x53, 0x02, 0x8000, 0 << 15); } static void alc256_shutup(struct hda_codec *codec) @@ -7032,6 +7034,8 @@ static int patch_alc269(struct hda_codec break; case 0x10ec0257: spec->codec_variant = ALC269_TYPE_ALC257; + spec->shutup = alc256_shutup; + spec->init_hook = alc256_init; spec->gen.mixer_nid = 0; break; case 0x10ec0215: