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

Ramesh Babu ramesh.babu at linux.intel.com
Wed Feb 13 06:39:57 CET 2013

>> For a jack using GPIO based detection, the framework sets it to trigger
>> on both
>> edges (rising and falling). Some codecs may provide only a falling or
>> rising edge
>> interrupt but not both.
> If the device only interrupts on one edge how does it detect jack
> removal?
Some codecs clears it's interrupt line when driver reads the codec status
In such cases, the interupt line will go back to normal after driver
reads status register.  During removal, interrupt line will change and
triggers on same edge interrupt.

More information about the Alsa-devel mailing list