Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp832697ybi; Fri, 12 Jul 2019 05:24:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw65kAmKQV5H0pl8p2HdUBdjB+bgvTHOiLNF5mdQHm8ve+tpYP8xpTTELj5JThMKv9qn4Tt X-Received: by 2002:a63:4c14:: with SMTP id z20mr10521281pga.360.1562934254426; Fri, 12 Jul 2019 05:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562934254; cv=none; d=google.com; s=arc-20160816; b=IxpeJRl7ewZoTfqRrVTPSFpVl5rpTdld/F+/jDCrrcDZjW5RncICabC8iLvVavc7hK IualtBRQtEeaxekG/cgORLO+0aP0ILfnZcjpzr2jWJ6rMzxqhwyD1S2yOh1ypLAccKWZ Tm2vAEstvNoBvsFC0HLPqg0aipvBLqADM/qKyRrdpPjc5D57HENKN615mfiHOXjp8XD2 vGU0QBOU+LibvZGL9MikFe6kg8Gx+KtfoD7ZDJMlgN2/AMI8R31AekITt2CdTYu/dtkB KTSLI29ZjIyrazCPqMD5q0MtEbgDYCAwjW9fsjKE9CJmIzztkVY81L+3lu6aPRhUmFyY oorw== 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=1IRoWaxdFm4CipxxiSHLBRFk4tyESt16/9w4LSw/keQ=; b=iYKeWvnvzVzMCM2UTQLxArgCyqxu5G2QiSbdnc/h3MBqDy2Vg6qyuxXBqsaqMQLOlm zoDNwXWyWAIwg6cRdJaoxu6gc3QqCkEjtUy3qIyJ35XkFU82szF0XLOgfE5OOWvw9Ezh 3GkmaG5DrKZg3YqzB2qnUZiB12CT//FkdkAc/bYFJyF8XB24eU1RnVH3PzIFJr7cwgpy wNwdYZpnvLqkW8Oo1c9J5g/Vv0loSb8zmPaXTe1VEcdmwz5ImK61rFgevULyEE7Q/KGI Lbm7ECvfp7xbDoCnXNg5sss6uxZC327cn48SgqmjSj9K5TuHIXr2kfaRGDXBhjXHdF2M B/VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WLJ5H8k9; 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 100si7750004pla.158.2019.07.12.05.23.59; Fri, 12 Jul 2019 05:24:14 -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=WLJ5H8k9; 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 S1727810AbfGLMWy (ORCPT + 99 others); Fri, 12 Jul 2019 08:22:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727797AbfGLMWx (ORCPT ); Fri, 12 Jul 2019 08:22:53 -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 1A37F2084B; Fri, 12 Jul 2019 12:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934172; bh=EMojlX+IUcL8fA+GgsbxYKBtbRtuE78Fhm8+7MCCKS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WLJ5H8k9eUIO8aDAuIaJ8flNwdn0Agy4GGHpwdQvOssD9QFJOiypZTvHm0lDxkn98 vw9HsISzy4JBfPtlU7ej/mDf9in5haGlftqNvuDfy3eF++u2LRs8zL1V/N4R8V/sfb 9FlbbFSBkMBo/dNp+A5al9/OhEeXeT98Bsw4+vk8= 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 60/91] ALSA: hda/realtek - Headphone Mic cant record after S3 Date: Fri, 12 Jul 2019 14:19:03 +0200 Message-Id: <20190712121625.058296244@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121621.422224300@linuxfoundation.org> References: <20190712121621.422224300@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 d07a9a4f66e944fcc900812cbc2f6817bde6a43d upstream. Dell headset mode platform with ALC236. It doesn't recording after system resume from S3. S3 mode was deep. s2idle was not has this issue. S3 deep will cut of codec power. So, the register will back to default after resume back. This patch will solve this issue. Signed-off-by: Kailang Yang Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3236,6 +3236,7 @@ static void alc256_init(struct hda_codec 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); + alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/ } static void alc256_shutup(struct hda_codec *codec) @@ -7686,7 +7687,6 @@ static int patch_alc269(struct hda_codec spec->shutup = alc256_shutup; spec->init_hook = alc256_init; spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ - alc_update_coef_idx(codec, 0x36, 1 << 13, 1 << 5); /* Switch pcbeep path to Line in path*/ break; case 0x10ec0257: spec->codec_variant = ALC269_TYPE_ALC257;