projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb3962d
)
headset: detect errory
author
yj
<yangjie@rock-chips.com>
Wed, 2 Apr 2014 01:28:57 +0000
(09:28 +0800)
committer
yj
<yangjie@rock-chips.com>
Wed, 2 Apr 2014 01:28:57 +0000
(09:28 +0800)
drivers/headset_observe/rk_headset_irq_hook_adc.c
patch
|
blob
|
history
diff --git
a/drivers/headset_observe/rk_headset_irq_hook_adc.c
b/drivers/headset_observe/rk_headset_irq_hook_adc.c
index 9587eff96fa3f2943208edabb64d1c798baf8ae2..19defb325ff82a620a93fb2521d88fd94ff3fb06 100755
(executable)
--- 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
5
0
+#define HOOK_ADC_SAMPLE_TIME
10
0
#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(
20
0));
}
else
{