From: Bard Liao Date: Tue, 5 Jan 2016 06:22:11 +0000 (+0800) Subject: ASoC: rt5645: improve IRQ reaction time for HS button X-Git-Tag: v4.5-rc1~80^2~13^2~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15b0f4d4b169dde8ecc4e162bcd6cd145cb09fed;p=thirdparty%2Fkernel%2Flinux.git ASoC: rt5645: improve IRQ reaction time for HS button IRQ reaction time is not immediate when headset putton is pressed. This patch shortens the reaction time. Signed-off-by: John Lin Signed-off-by: Bard Liao Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index bd23496a56ffe..4b079d189aac3 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -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,