]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: rt721: fix FU33 Boost Volume control not working
authorShuming Fan <shumingf@realtek.com>
Fri, 8 Aug 2025 05:57:06 +0000 (13:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 14:55:31 +0000 (16:55 +0200)
[ Upstream commit 633e391d45bda3fc848d26bee6bbe57ef2935713 ]

This patch fixed FU33 Boost Volume control not working.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20250808055706.1110766-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt721-sdca.c
sound/soc/codecs/rt721-sdca.h

index ba080957e9336181dbba71df28b736a232ae7518..98d8ebc6607ff144fb7873d3ab462effb97a3f9f 100644 (file)
@@ -278,6 +278,8 @@ static void rt721_sdca_jack_preset(struct rt721_sdca_priv *rt721)
                RT721_ENT_FLOAT_CTL1, 0x4040);
        rt_sdca_index_write(rt721->mbq_regmap, RT721_HDA_SDCA_FLOAT,
                RT721_ENT_FLOAT_CTL4, 0x1201);
+       rt_sdca_index_write(rt721->mbq_regmap, RT721_BOOST_CTRL,
+               RT721_BST_4CH_TOP_GATING_CTRL1, 0x002a);
        regmap_write(rt721->regmap, 0x2f58, 0x07);
 }
 
index 0a82c107b19a2037f9b735bdc97407d755a16b6e..71fac9cd87394ef19eaeaa2afa7d2de0f02c8687 100644 (file)
@@ -56,6 +56,7 @@ struct rt721_sdca_dmic_kctrl_priv {
 #define RT721_CBJ_CTRL                         0x0a
 #define RT721_CAP_PORT_CTRL                    0x0c
 #define RT721_CLASD_AMP_CTRL                   0x0d
+#define RT721_BOOST_CTRL                       0x0f
 #define RT721_VENDOR_REG                       0x20
 #define RT721_RC_CALIB_CTRL                    0x40
 #define RT721_VENDOR_EQ_L                      0x53
@@ -93,6 +94,9 @@ struct rt721_sdca_dmic_kctrl_priv {
 /* Index (NID:0dh) */
 #define RT721_CLASD_AMP_2CH_CAL                        0x14
 
+/* Index (NID:0fh) */
+#define RT721_BST_4CH_TOP_GATING_CTRL1         0x05
+
 /* Index (NID:20h) */
 #define RT721_JD_PRODUCT_NUM                   0x00
 #define RT721_ANALOG_BIAS_CTL3                 0x04