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

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Feb 13 14:19:17 CET 2013

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130213/b8a6269c/attachment.sig>

More information about the Alsa-devel mailing list