diff mbox series

ASoC: rt5650: fix the wrong result of key button

Message ID 20231013094525.715518-1-shumingf@realtek.com (mailing list archive)
State Accepted
Commit f88dfbf333b3661faff996bb03af2024d907b76a
Headers show
Series ASoC: rt5650: fix the wrong result of key button | expand

Commit Message

Shuming [θŒƒζ›ΈιŠ˜] Oct. 13, 2023, 9:45 a.m. UTC
From: Shuming Fan <shumingf@realtek.com>

The RT5650 should enable a power setting for button detection to avoid the wrong result.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
---
 sound/soc/codecs/rt5645.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mark Brown Oct. 13, 2023, 5:07 p.m. UTC | #1
On Fri, 13 Oct 2023 17:45:25 +0800, shumingf@realtek.com wrote:
> The RT5650 should enable a power setting for button detection to avoid the wrong result.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: rt5650: fix the wrong result of key button
      commit: f88dfbf333b3661faff996bb03af2024d907b76a

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 1a137ca3f496..7938b52d741d 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3257,6 +3257,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);