Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp771984ybl; Wed, 11 Dec 2019 07:17:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyuhDCmr7/yRdcTWWpECI9Cmz8wWnPx9+vgLEq6VIykNHcW8Ca2fOC2YUdXxJaQA2obpwRe X-Received: by 2002:a05:6830:1d6:: with SMTP id r22mr2778780ota.196.1576077454105; Wed, 11 Dec 2019 07:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576077454; cv=none; d=google.com; s=arc-20160816; b=fU0K9NFK6BuHY4hMX+HfdiegR3Pw22zKhdQ7OkgmsRvZAvI3WbVgkLjJX1zCfU3Pap Ns2ScgW1buSf4JcLitW+o1qNvbcYN9H2Ua9jUvrFk8NLGhIM9RB8BmrXG9NevMO6Uemv kJnTi1QMqG2MloS8q/ZVQPVmAbdz2GBsuI0sDn4AHiGOU8o/bJQvEIpILUk7E2JKE2c1 0TUG3WrvxBURapPCRAeXLWSbXsNR1udtT8QYkM9gp3SZwd8xmuTqCw4HChx3p5NpLm4y AURdJF1nxPQ9Xg24mJhOGeFMnAbbGzYYOZm58iWfLU7/ioQbxtAo3GW0J4G8YvCZAdsd jjvQ== 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=6bBul5z91SBqy1GK09itzMY9+VmvNrxyUqmXCKDeu3g=; b=ZoxKWTLkrB4TcATlLyk5kunmZ65ATyEpvmFq0EIXM1OxCxy/uvmwFFxIJmaLkqMbyv K1h81ogKDmDzxNQCZd7plPf9znana03UV/WifThDayoZxApSIYiwe37aYofw5IxbPt4J Y8CiLhEO9uB9qDIbitOkjnIh0bDg8rwsisxAoApDU5IbYiaW8x+SqrT83zhZtcKfLB8y hc+8FJ5ooE6scl8dE0a7LRcx9pXVGPfH2sFcGxQUjwB4FunkxbfL940qaPiiaQAHOpTN 9TvXVne9UMjEzKbq40Qq1gdao7N5Ztqv0kyUR84fB5tpzavlPqv7RXm4UzWl6qyeyXY7 RcEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tt03TsEl; 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 m26si1138891otn.307.2019.12.11.07.17.21; Wed, 11 Dec 2019 07:17:34 -0800 (PST) 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=tt03TsEl; 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 S1731806AbfLKPPd (ORCPT + 99 others); Wed, 11 Dec 2019 10:15:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:40478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730557AbfLKPOt (ORCPT ); Wed, 11 Dec 2019 10:14:49 -0500 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 D45BA20663; Wed, 11 Dec 2019 15:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077289; bh=LeAPWS1q/KOLDpGgVEacQrTfjk9Ai/9gmAc+kjSCoTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tt03TsElVNQgJmvaWCFtNx4mhuQInA4JMR2ZsV4Yv03Y3K6MSbj1tJ+DZiSyeD3ux e5Yt/rD6r8hEQwg6fcycmbAnNqK/zyHe8RN4AvMz930zcy/1voHF+RMwY07t0ei2TZ jLzpz3IR4feSHfxCfTg/ogncmJO1yOAhpTBFsgUE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 5.3 051/105] ALSA: hda/realtek - Dell headphone has noise on unmute for ALC236 Date: Wed, 11 Dec 2019 16:05:40 +0100 Message-Id: <20191211150242.248145590@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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 e1e8c1fdce8b00fce08784d9d738c60ebf598ebc upstream. headphone have noise even the volume is very small. Let it fill up pcbeep hidden register to default value. The issue was gone. Fixes: 4344aec84bd8 ("ALSA: hda/realtek - New codec support for ALC256") Fixes: 736f20a70608 ("ALSA: hda/realtek - Add support for ALC236/ALC3204") Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/9ae47f23a64d4e41a9c81e263cd8a250@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -367,9 +367,7 @@ static void alc_fill_eapd_coef(struct hd case 0x10ec0215: case 0x10ec0233: case 0x10ec0235: - case 0x10ec0236: case 0x10ec0255: - case 0x10ec0256: case 0x10ec0257: case 0x10ec0282: case 0x10ec0283: @@ -381,6 +379,11 @@ static void alc_fill_eapd_coef(struct hd case 0x10ec0300: alc_update_coef_idx(codec, 0x10, 1<<9, 0); break; + case 0x10ec0236: + case 0x10ec0256: + alc_write_coef_idx(codec, 0x36, 0x5757); + alc_update_coef_idx(codec, 0x10, 1<<9, 0); + break; case 0x10ec0275: alc_update_coef_idx(codec, 0xe, 0, 1<<0); break;