summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682-sdw.c
diff options
context:
space:
mode:
authorShuming Fan <shumingf@realtek.com>2021-03-09 09:58:27 +0100
committerMark Brown <broonie@kernel.org>2021-03-10 14:14:34 +0100
commit542712826f8d3b0a72e66d7feec2dedba5dfa297 (patch)
tree214276928c629086368b1fe43e9f29c736509f78 /sound/soc/codecs/rt5682-sdw.c
parentASoC: rt715-sdca: Remove unused including <linux/version.h> (diff)
downloadlinux-542712826f8d3b0a72e66d7feec2dedba5dfa297.tar.xz
linux-542712826f8d3b0a72e66d7feec2dedba5dfa297.zip
ASoC: rt5682: add delay time of workqueue to control next IRQ event
This patch keeps the delay time (50 ms) for jack detection and zero delay time for the button press. This patch improves the reaction of the button press. Signed-off-by: Shuming Fan <shumingf@realtek.com> Link: https://lore.kernel.org/r/20210309085827.32032-1-shumingf@realtek.com Tested-by Curtis Malainey <cujomalainey@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-sdw.c')
-rw-r--r--sound/soc/codecs/rt5682-sdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5682-sdw.c b/sound/soc/codecs/rt5682-sdw.c
index 5e097f776561..fed80c8f994f 100644
--- a/sound/soc/codecs/rt5682-sdw.c
+++ b/sound/soc/codecs/rt5682-sdw.c
@@ -677,7 +677,7 @@ static int rt5682_interrupt_callback(struct sdw_slave *slave,
if (status->control_port & 0x4) {
mod_delayed_work(system_power_efficient_wq,
- &rt5682->jack_detect_work, msecs_to_jiffies(250));
+ &rt5682->jack_detect_work, msecs_to_jiffies(rt5682->irq_work_delay_time));
}
return 0;