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:
c633fd7
)
headset : Add headphones debounce
author
邱建斌
<qjb@rock-chips.com>
Mon, 3 Dec 2012 07:03:47 +0000
(15:03 +0800)
committer
邱建斌
<qjb@rock-chips.com>
Mon, 3 Dec 2012 07:03:47 +0000
(15:03 +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 b32c76befc079998ac4c23deb65911887a94f0af..5a99218072cb8cad75ef5f7248edae8eba360516 100644
(file)
--- a/
drivers/headset_observe/rk_headset_irq_hook_adc.c
+++ b/
drivers/headset_observe/rk_headset_irq_hook_adc.c
@@
-125,6
+125,7
@@
static irqreturn_t headset_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
DBG("In the headset_interrupt for read headset level wake_lock headset_on_wake\n");
headset_info->heatset_irq_working = BUSY;
+ msleep(150);
for(i=0; i<3; i++)
{
level = gpio_get_value(pdata->Headset_gpio);