Received: by 10.213.65.68 with SMTP id h4csp893140imn; Tue, 27 Mar 2018 10:43:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bUhXGdcf+kySGLzBs87tDu8EiKFVLDxrU01SmBaki66um+FpIsTe2tDcC/V1yrqToslnK X-Received: by 10.101.93.17 with SMTP id e17mr161531pgr.239.1522172584205; Tue, 27 Mar 2018 10:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522172584; cv=none; d=google.com; s=arc-20160816; b=wTiyxsCdCUwflYofFzMusSMFefU9PAoVfKmIWrrKVZpECIeZwXhjaJOCjX+neSHImC TW5wAvGYS4Gt5gQv9EJxKBOeD9yJXUDOS42AcwGBDDmPxYQjWB9L/TOPFlfzQxM1MvD4 Y3ded4OkOHYick5U4ABqalxx5viRj964r6jGjhlDcDpY7i4v6LnRo31P5u14/oOlujvh QJpSOXi4jm0h48GeP87IWAs29ihjc2GItNV8/JQaLGTRKGMK5Vv20/U5rxLCji5ZdFih V7DrbyLTVRYy1W8sIeg7CzMtRpThhiznT2h0ZrNGAyeoCHAi21h1OjVMY/iuGe6mg2d2 9ztg== 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=wCTTHZor2osvjCegWZr5rf6GZay9riyctHlM7JmNdwY=; b=jJR/0JQ7OxcKhtWgAAduBYvVqJ6ogHf/w8UoIi6I9LS1Dw9R7l2Paaqrr166zUQRJb Sdtfuxr4HlPGjoLJ4ldO+F/AoUT766loABpjzlfZIWoJ7QsOC2FkDBX5XmMG8HbDYi7B KwWRJEsDEj7c2o2M2VAXO1Y017aiagufwrwf1hPyewTbAf84ee7Sn+USavvQrIj6/iMT g2C2gXjizK1voLmgGoJdeVWgHfwLBJz+3VIJkJ8sitasDw/buLM+q9UE0L/qpRPBiFxc OabAL12pm0+HQVYi1wyKB+C8/kdAnehwpoVnuLo9qbenVMVLlz7w23HGLJ30J5Qa34Jx laUA== 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 85si1099232pfo.234.2018.03.27.10.42.49; Tue, 27 Mar 2018 10:43:04 -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 S1754140AbeC0QeD (ORCPT + 99 others); Tue, 27 Mar 2018 12:34:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44138 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754120AbeC0QeA (ORCPT ); Tue, 27 Mar 2018 12:34:00 -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 665FF11C0; Tue, 27 Mar 2018 16:33:59 +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.14 013/101] ALSA: hda/realtek - Fix speaker no sound after system resume Date: Tue, 27 Mar 2018 18:26:45 +0200 Message-Id: <20180327162750.799407678@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-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 @@ -3107,6 +3107,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) @@ -7004,6 +7006,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: