]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: rt5645: improve IRQ reaction time for HS button
authorBard Liao <bardliao@realtek.com>
Tue, 5 Jan 2016 06:22:11 +0000 (14:22 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 11:33:59 +0000 (11:33 +0000)
IRQ reaction time is not immediate when headset putton is pressed.
This patch shortens the reaction time.

Signed-off-by: John Lin <john.lin@realtek.com>
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c

index bd23496a56ffe3a2d34171617d78c2261c86b2aa..4b079d189aac36ff5a96b3e6e8eaf81db6f84794 100644 (file)
@@ -3062,6 +3062,7 @@ static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec,
                snd_soc_dapm_force_enable_pin(dapm, "ADC R power");
                snd_soc_dapm_sync(dapm);
 
+               snd_soc_update_bits(codec, RT5650_4BTN_IL_CMD1, 0x3, 0x3);
                snd_soc_update_bits(codec,
                                        RT5645_INT_IRQ_ST, 0x8, 0x8);
                snd_soc_update_bits(codec,