Skip to content

Commit d914ec6

Browse files
shumingfanbroonie
authored andcommitted
ASoC: rt721: fix prepare clock stop failed
This patch adds settings to prevent the 'prepare clock stop failed' error. Signed-off-by: Shuming Fan <shumingf@realtek.com> Link: https://patch.msgid.link/20251027103333.38353-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ad68c05 commit d914ec6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sound/soc/codecs/rt721-sdca.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ static void rt721_sdca_jack_preset(struct rt721_sdca_priv *rt721)
281281
rt_sdca_index_write(rt721->mbq_regmap, RT721_BOOST_CTRL,
282282
RT721_BST_4CH_TOP_GATING_CTRL1, 0x002a);
283283
regmap_write(rt721->regmap, 0x2f58, 0x07);
284+
285+
regmap_write(rt721->regmap, 0x2f51, 0x00);
286+
rt_sdca_index_write(rt721->mbq_regmap, RT721_HDA_SDCA_FLOAT,
287+
RT721_MISC_CTL, 0x0004);
284288
}
285289

286290
static void rt721_sdca_jack_init(struct rt721_sdca_priv *rt721)

sound/soc/codecs/rt721-sdca.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ struct rt721_sdca_dmic_kctrl_priv {
137137
#define RT721_HDA_LEGACY_UAJ_CTL 0x02
138138
#define RT721_HDA_LEGACY_CTL1 0x05
139139
#define RT721_HDA_LEGACY_RESET_CTL 0x06
140+
#define RT721_MISC_CTL 0x07
140141
#define RT721_XU_REL_CTRL 0x0c
141142
#define RT721_GE_REL_CTRL1 0x0d
142143
#define RT721_HDA_LEGACY_GPIO_WAKE_EN_CTL 0x0e

0 commit comments

Comments
 (0)