From: Bard Liao <bardliao@realtek.com>
Date: Tue, 5 Jan 2016 14:22:11 +0800
Subject: [PATCH 13/82] ASoC: rt5645: improve IRQ reaction time for HS button
Git-commit: 15b0f4d4b169dde8ecc4e162bcd6cd145cb09fed
Patch-mainline: 4.5-rc1
References: bsc#1010690

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 sound/soc/codecs/rt5645.c |    1 +
 1 file changed, 1 insertion(+)

--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3067,6 +3067,7 @@ static void rt5645_enable_push_button_ir
 		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,
