Skip to content

Commit f88dfbf

Browse files
shumingfanbroonie
authored andcommitted
ASoC: rt5650: fix the wrong result of key button
The RT5650 should enable a power setting for button detection to avoid the wrong result. Signed-off-by: Shuming Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d6cbc6a commit f88dfbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/rt5645.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,6 +3257,8 @@ int rt5645_set_jack_detect(struct snd_soc_component *component,
32573257
RT5645_GP1_PIN_IRQ, RT5645_GP1_PIN_IRQ);
32583258
regmap_update_bits(rt5645->regmap, RT5645_GEN_CTRL1,
32593259
RT5645_DIG_GATE_CTRL, RT5645_DIG_GATE_CTRL);
3260+
regmap_update_bits(rt5645->regmap, RT5645_DEPOP_M1,
3261+
RT5645_HP_CB_MASK, RT5645_HP_CB_PU);
32603262
}
32613263
rt5645_irq(0, rt5645);
32623264

0 commit comments

Comments
 (0)