13 Feb
2013
13 Feb
'13
2:19 p.m.
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?
Some codecs clears it's interrupt line when driver reads the codec status register. 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.
Are you sure this is a GPIO that should be used directly (rather than handled as part of the CODEC driver) and are you sure that the code handles things like debounce well?
If this really is a GPIO it feels like the controller out to be exposing itself as having dual edged interrupts.