Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2555774lqp; Mon, 25 Mar 2024 02:27:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyHwW4sm2WMS8AkOutGmIABB73jqGkXyZs0EIOqS/hpBEN+G6j6+zX0RgE8xxteekMGENRmuZxLzs2NYPGricFoLuhhPzb0/J01Dnlwg== X-Google-Smtp-Source: AGHT+IGgKXpcNYZHhvznzdO+CyZidm2BYAUv+V3PGf7vv83hcSjf+ZGyXGqid/tmz0Tu+J5MXtL/ X-Received: by 2002:a17:906:aac4:b0:a45:231:9b4b with SMTP id kt4-20020a170906aac400b00a4502319b4bmr4353859ejb.20.1711358848694; Mon, 25 Mar 2024 02:27:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358848; cv=pass; d=google.com; s=arc-20160816; b=YwqWIwVrUtUdO3zfyuIVX4pcBnE6KYGyyQN9r60b5AsnK60RVLygU7q1f7X/dDuFOe 7QjioJW1qILXoInh8E3Cx06Rqt4Rmt8kHXAtTU+0RvwJHqoHkmw2NPeXgwjiocvBKNEv SSz8ZqBLvTbL6avgwTLX4odeObSBsgLeIXJS2ikXzd1E1B5lLzokez8SgIEIyKIOR+cB w4Ll/OUJawI2ut0KJNktOiXzYE9HWAVyv+GcglayBdcF6mjQNAXlWKW4K1j0B1ym/REs BMaX8MBzD/GipQlYxk6p+zulT9dZuX4DbE+eEOOkSNchSLbOY5MQgMJrJRho6h4fu75Q Nx+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/fJ2QL1wozrVzjQWuebwHz5kGAHgPonxL7B1kqkfB0I=; fh=OgbOGZewEz3CaEdHWBPLRuDjNCA5m+mCusAG+Hhr3Z8=; b=ZiArpJkKb70ElTfkGGpW2D17KhBpL8A144f/j1BtB1ur7/Tt4hZ7lG/TxEipUon7fH SIay9Ba4R+24N80RV2OARNfkU2IgbXJbkc6RQFM69bv7vmP3CuDbmxSGzKbVndBQkG3/ 9tFmfJZI9vTOnNqY3lo7m99Z0j20qG7RcG1jhegSEOvuqXN136SuD50oqKIO2+jME+5+ s6zin8dX1iT26bBEPuupcCaNlW44cSug3UrKH3RuqVZtdk8WwV0rtL8KvpVFDGTcsQj9 /jF6JqSb3B711AROVfA++vtiPpQZ2uD/U8+8tq8qxh5fjn/pnntroLXP9HUJThqBC8q9 UPEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kMQBbWs7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id rv21-20020a17090710d500b00a4725e6b8aesi2342309ejb.18.2024.03.25.02.27.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kMQBbWs7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 90E541F29B7E for ; Mon, 25 Mar 2024 09:20:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BC0C26204D; Mon, 25 Mar 2024 03:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kMQBbWs7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8835D14532A; Sun, 24 Mar 2024 23:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321975; cv=none; b=QSbzYWs+sk5va0aqDzaFOO2WVyDhp30uQPxtpNVw5A66aVqIsnExNXwe7hofKMix6IcaGaFMfgAUdSXRcB3vhsUkjaADO1z5qs+2bjQFjc6Z6UU76ahLoa6LiEDCbz8yWxeQpl16y4QLC/5MT0Uh5F4kkAdFScuSADBW/PkVU/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321975; c=relaxed/simple; bh=RGrOirHE3j084FyDubnAZGEumOuMaqgWe3b9VZ19Iww=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dgIkJmjouQs1RJ5PL3eYB/SXjLSAqzfzQv0AC7/C/3UKvO5Sk6uP4JVipVlqkHLYrFGV937QqbHDuSWgLpb6lRlp3ornfGcyf6pqqF91ZOMKe9Q8bUUXMT4fs1G8n4gnK0GwZntpMLKyQLLLUSNhIkGoVGNfLMLndP885y+ZUb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kMQBbWs7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AA8CC43390; Sun, 24 Mar 2024 23:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321974; bh=RGrOirHE3j084FyDubnAZGEumOuMaqgWe3b9VZ19Iww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kMQBbWs7d+/Ix+Tnf7TpRNcKAP43FE7J+yCpWQHhuO9NI3ZzPnYE40VnYRBp6/0+3 Y5HS5MSyMpAfE5Dz9hHPwRDxwnDmYBvEAjY+o0kb/j4OS1q0OZNc45GBWK2eoyf7NE Fu83u/v4udAq+YfRJQjRdH7KqXMT9b6vUbSq1GVEPkMEnzwrFZcZA3f/VHGQPv9ocD uV1DCEDs+vAt8YwWBq96pQH/5P4IzU8a5TbkM3Y9yZdMGA1ImbbauiKyQwDe8wkCOT rcWAW01681DyaaPLI9U/AZOj8DONwSwGWHbuyju+wDocVJxA7qnD//tQjwtAZCR3of LqFA3su1dgJHA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kailang Yang , Takashi Iwai , Sasha Levin Subject: [PATCH 6.1 046/451] ALSA: hda/realtek - ALC285 reduce pop noise from Headphone port Date: Sun, 24 Mar 2024 19:05:22 -0400 Message-ID: <20240324231207.1351418-47-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Kailang Yang [ Upstream commit b34bf65838f7c6e785f62681605a538b73c2808c ] It had pop noise from Headphone port when system reboot state. If NID 58h Index 0x0 to fill default value, it will reduce pop noise. Signed-off-by: Kailang Yang Link: https://lore.kernel.org/r/7493e207919a4fb3a0599324fd010e3e@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 75bd7b2fa4ee6..ede3f8b273d79 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3681,6 +3681,7 @@ static void alc285_hp_init(struct hda_codec *codec) int i, val; int coef38, coef0d, coef36; + alc_write_coefex_idx(codec, 0x58, 0x00, 0x1888); /* write default value */ alc_update_coef_idx(codec, 0x4a, 1<<15, 1<<15); /* Reset HP JD */ coef38 = alc_read_coef_idx(codec, 0x38); /* Amp control */ coef0d = alc_read_coef_idx(codec, 0x0d); /* Digital Misc control */ -- 2.43.0