mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
headset : Add headphones debounce
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user