ASoC: WCD9310: Fix fake button press event during headset removal

During slow headset removal, there is a possibility for the ground
on headset connector to touch the mic line on headset plug, causing
the mic voltage drop to ground for a short amount of time. This gets
detected as button 0 press interrupt.

Adds logic to identify such fake button press interrupts during
headset removal and ignore them

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
1 file changed