From da884865ef76d57408da36aad221cf249d83776e Mon Sep 17 00:00:00 2001 From: yj Date: Wed, 2 Apr 2014 09:28:57 +0800 Subject: [PATCH] headset: detect errory --- drivers/headset_observe/rk_headset_irq_hook_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/headset_observe/rk_headset_irq_hook_adc.c b/drivers/headset_observe/rk_headset_irq_hook_adc.c index 9587eff96fa3..19defb325ff8 100755 --- a/drivers/headset_observe/rk_headset_irq_hook_adc.c +++ b/drivers/headset_observe/rk_headset_irq_hook_adc.c @@ -49,7 +49,7 @@ #define DBG(x...) do { } while (0) #endif -#define HOOK_ADC_SAMPLE_TIME 50 +#define HOOK_ADC_SAMPLE_TIME 100 #define HOOK_LEVEL_HIGH 410 //1V*1024/2.5 #define HOOK_LEVEL_LOW 204 //0.5V*1024/2.5 #define HOOK_DEFAULT_VAL 1024 @@ -173,7 +173,7 @@ static irqreturn_t headset_interrupt(int irq, void *dev_id) if(pdata->chan != 0) { //detect Hook key - schedule_delayed_work(&headset_info->h_delayed_work[HOOK],msecs_to_jiffies(0)); + schedule_delayed_work(&headset_info->h_delayed_work[HOOK],msecs_to_jiffies(200)); } else { -- 2.34.1