Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2422763rdh; Sun, 29 Oct 2023 15:58:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUiS+sp9TQ8CPQqrS00eHRq2CUmWjHmvoZP1wmVBQfnW86GZflnltGXBOI2HeXqQiRqt4o X-Received: by 2002:a17:902:cec7:b0:1c1:f6d1:3118 with SMTP id d7-20020a170902cec700b001c1f6d13118mr10667718plg.27.1698620288799; Sun, 29 Oct 2023 15:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698620288; cv=none; d=google.com; s=arc-20160816; b=L4UlfReKSryFTZOv1sE6Fc4BgD0d7XZheTgV+DDxHSa/EvLS8Gga8PuddguAAeW2ak Z9sW+EKq5RJYHda4e6haTfCNT5g/hsNUIYDrQtWzMCLKSk4YtjYdvh/5nAx96MyvJdy/ 04RrFoS6KC8NbG9ztiqxqzXqEbcyziqe42sDO4if0kI/+Je+TXvpV9Ky48pE9+itMuhs FuOjJwIBdxnsRIcn71SXZtj+fS8kLmkbQ5j1iwZSyQpV6gXOlVr78tw0TlIiCmXpw9uE /KAXVX5IRZon1hvQOf5uW/A5AHNMt6Mj5niW3jUzHnGr3DTuRvfe0lfShqKQrOqHR3Au I+kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+zK6vNwF3cqTExxcQXktz6OILXAvl1QvnAzt+OMFJvM=; fh=kcpdZ0ERWcQUPa15HzbZ1MgTAlwat5kD7nBy7TZNmzE=; b=zKTP66sLmVCQlmW/LIDUU0UjKAgCOE9EEeJmMkSzJe60wqv4wFEduPQG8ntIWZdkFn gCTN1gFLHIsPLvp7iagqCGlH5Inj5Xwitlt+u5u8VMY8TFkn/tNFiIp878IksR60dnGR 9KmUqo8aaOq2KxViJsN3kx1X4YESwsGLX0xBZpNIFnUogwn/pckFGgR0aeIFzcaLRruN 1qZNZyijvnJEISwyR4q+0ggqjKV0g/YWR1EKEq9c0ai87mIZ+PDFTNNaLgzjZs8+vKMN 8xLgsg7XIl5RtE6imbthYLnCV8S00lS94cSfnabd3ED5WFX5d3bjRE51ZKvIgtAv1xXY xlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DD2ZqOPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u6-20020a170902e80600b001c746b986e2si4262475plg.346.2023.10.29.15.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DD2ZqOPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AA9F7808751E; Sun, 29 Oct 2023 15:57:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbjJ2W5S (ORCPT + 99 others); Sun, 29 Oct 2023 18:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231203AbjJ2W5A (ORCPT ); Sun, 29 Oct 2023 18:57:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57F21FFF; Sun, 29 Oct 2023 15:55:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CEB6C43395; Sun, 29 Oct 2023 22:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620139; bh=+bbdb76ajqheViTiDz9DJe1J0LziQ/6Wy3/LI6rVYx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DD2ZqOPUQ4dWNHmQvLW7m9YQkFr3zIxKM79zwtOjvKxD13Oofe/RO0FZhGBkehaXu yP9bpWLfpIBJnGX4LTBQ+PWbd2B74GcSXbmK7N5auXTXYIBgv4eDgoRtGFvZVAL1u0 bkRiEBAD+P1LzTBhYvuxte4jAr03dn3juUjtynLCtpJeC/1rnlheuh+FecWFLhsSi6 7iCoPUQvhGPrS4AveT2T3GPNzaC00vhVBf4pwtbpeDkpB1CHXvBNYqiKKgCrYB/EzE 1R/l5caqEO0cfn2VHU5nYsITDH1q1WxyxdF2yBWhlRB4hSkxKD0x6SoGvOgR80s0Rh 1WGEBAYKVVefQ== 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 6.5 28/52] ASoC: rt5650: fix the wrong result of key button Date: Sun, 29 Oct 2023 18:53:15 -0400 Message-ID: <20231029225441.789781-28-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225441.789781-1-sashal@kernel.org> References: <20231029225441.789781-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.9 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:57:55 -0700 (PDT) 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 a506d940a2ead..fae04e9fae4e7 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3251,6 +3251,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