From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D6C4C4167B for ; Sun, 29 Oct 2023 23:02:32 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A3DE7E0F; Mon, 30 Oct 2023 00:01:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A3DE7E0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1698620550; bh=0qq37pZNkamsj1f9kajMgEzb3A3LJPSBUTXHvZwpWE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=A/QJ4eGMMRbSpjF1+FFUCzU08TDo8MIo2NxRVAv6Iv+0JmmiIVjB0FsRzzKfl5Ptn 7O1/C3N+os1oC0tUiddRuqhAyvSc7vkmvnGE0DPXfpWc3kcmTIPVaf5ad5VsA1q7sa RuQekG4vY5RhUsqQf00A8sEYS1VLgW/rnfhCFrWQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 76A42F80494; Mon, 30 Oct 2023 00:01:40 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8B4E5F80431; Mon, 30 Oct 2023 00:01:39 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6BC40F80425; Mon, 30 Oct 2023 00:01:36 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 092E7F80558 for ; Mon, 30 Oct 2023 00:01:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 092E7F80558 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=fQIVQZK9 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5C9BD60F38; Sun, 29 Oct 2023 23:01:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 255FCC4339A; Sun, 29 Oct 2023 23:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620471; bh=0qq37pZNkamsj1f9kajMgEzb3A3LJPSBUTXHvZwpWE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQIVQZK9Aa3voFUvd1J8A/gLm6FrMHeHZ/ZOFl5tqe61eG4andrgi6LmGDqKbdhGL i8oaWz8+t2FGIf9lgy5Ev92p4sZn9zXQtw9WAkYZTFQ7jdkBZfwyhoTbgBLUqtxD6M TsPE8FA3d8AQCGxxdKykLXvaApHJ2aPP9cE5Eht2lYfib8dsEyC7oUpR5yWEjQV3v1 5opSn4H3b7VkpBh8HxR+xScOyphS+IfvSQu+8gTmL0aTWXjtg2XS+CHfZA3Nx+MnNQ XCfkTKZr6AtZq4LnDfG3r5SQbX8+aDOqn5NumCh3P4mT5a2WU8b7ahihzY46qwTeAX YWVdEc67e1w5g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Shuming Fan , Mark Brown , Sasha Levin , oder_chiou@realtek.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4 07/13] ASoC: rt5650: fix the wrong result of key button Date: Sun, 29 Oct 2023 19:00:40 -0400 Message-ID: <20231029230057.792930-7-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029230057.792930-1-sashal@kernel.org> References: <20231029230057.792930-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.4.259 Content-Transfer-Encoding: 8bit Message-ID-Hash: BIEJDHIDPHM2WTLMNQFVR5X5N5RF6A7V X-Message-ID-Hash: BIEJDHIDPHM2WTLMNQFVR5X5N5RF6A7V X-MailFrom: sashal@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Shuming Fan [ Upstream commit f88dfbf333b3661faff996bb03af2024d907b76a ] The RT5650 should enable a power setting for button detection to avoid the wrong result. Signed-off-by: Shuming Fan Link: https://lore.kernel.org/r/20231013094525.715518-1-shumingf@realtek.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5645.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index a66e93a3af745..9fda0e5548dc6 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3241,6 +3241,8 @@ int rt5645_set_jack_detect(struct snd_soc_component *component, RT5645_GP1_PIN_IRQ, RT5645_GP1_PIN_IRQ); regmap_update_bits(rt5645->regmap, RT5645_GEN_CTRL1, RT5645_DIG_GATE_CTRL, RT5645_DIG_GATE_CTRL); + regmap_update_bits(rt5645->regmap, RT5645_DEPOP_M1, + RT5645_HP_CB_MASK, RT5645_HP_CB_PU); } rt5645_irq(0, rt5645); -- 2.42.0