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>
1 file changed