| commit | 688c66a4c2ba7134b68dc026621704397ea6fed4 | [log] [tgz] |
|---|---|---|
| author | Bradley Rubin <brubin@codeaurora.org> | Tue Aug 16 12:25:13 2011 -0700 |
| committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 16:16:06 2011 -0700 |
| tree | 88e7ff701baa34dc4fb8467f5406f305984da569 | |
| parent | a7096d05fd1068494c999a01ed265b0afc070170 [diff] |
ASoC: WCD9310: Read microphone voltage twice for button interrupts Doing two voltage readings when receiving a button press interrupt ensures that a button was actually pressed. Sometimes a headset insertion or removal can trigger a button press detection, and this patch makes sure that only true button presses cause button events to be passed up to user space. Signed-off-by: Brad Rubin <brubin@codeaurora.org>