diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:09:37 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:37 +0000 |
commit | 75cafba880ed73eeca83d2a0bec5fb202fc02741 (patch) | |
tree | 6f7d455bc1f1887585cf8261c800b5dc06e80c25 /fs/partitions/atari.c | |
parent | f79578cc52faf5e7a9690236138ea8104e4029ad (diff) |
fix-jack-debounce.patch
Headphone jack detection is bouncy, it can trigger multiple interrupts
on insertion or removal. This patch adds a workqueue that waits out the
interrupt spew in 100ms units, and if it sees no more interrupts for 100ms
only then samples and reports the jack state. I was unable to get a bounce
after 20 or so tries after this.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'fs/partitions/atari.c')
0 files changed, 0 insertions, 0 deletions