[PATCH] fix-jack-debounce.patch

Werner Almesberger werner at openmoko.org
Fri Apr 11 17:02:21 CEST 2008

Andy Green wrote:
> Nicely spotted... if it did happen that the interrupt came again after
> 100ms of silence at exactly the wrong moment in a window of a couple of
> us, he would have to replug his jack to get correct operation.  But I
> guess it happens once per million times or less.

Yeah, pretty unlikely and the intuitive corrective action would resolve
the problem. The most likely scenario I could imagine where this would
happen is if the plug is accidently removed, either following insertion,
or followed by insertion, so that you get opposing user actions within a
short period of time.

> Anyway I made a patch on top to try to deal with it I will test and send
> shortly.

Great ! :)

- Werner

More information about the openmoko-kernel mailing list