[alsa-devel] [PATCH] ASoC: Jack: add configurable option for irq_flag

Omair M. Abdullah omair.m.abdullah at intel.com
Fri Feb 15 08:10:00 CET 2013


On Wed, Feb 13, 2013 at 01:19:17PM +0000, Mark Brown wrote:
> On Wed, Feb 13, 2013 at 11:09:57AM +0530, Ramesh Babu wrote:
> 
> > > If the device only interrupts on one edge how does it detect jack removal?
> 
This patch is mainly to handle GPIOs where there is some toggling of the GPIO
lines due to the switch bouncing, and the debounce time cannot be increased
further due to other constraints. In such cases, providing the specific
edge on which to trigger the interrupt helps increase the robustness.

     ___   _                _   _________
e.g.    |_| |______________| |_|
insert followed by removal, where we want to trigger on the falling edge in both
cases.



More information about the Alsa-devel mailing list