Преглед на файлове

asoc: wcd937x: Handle button press before release interrupt

If button press and release interrupts occur at same time
processing button release first would treat the button event
as fake, as it is not preceeded with press event. Hence
process button press before button release in irq driver.

Change-Id: I9413def87537502c470236a3948a21be47c479bc
Signed-off-by: Ramprasad Katkam <[email protected]>
Ramprasad Katkam преди 6 години
родител
ревизия
0730ecfaa0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      asoc/codecs/wcd937x/internal.h

+ 2 - 2
asoc/codecs/wcd937x/internal.h

@@ -135,8 +135,8 @@ enum {
 
 enum {
 	/* INTR_CTRL_INT_MASK_0 */
-	WCD937X_IRQ_MBHC_BUTTON_RELEASE_DET = 0,
-	WCD937X_IRQ_MBHC_BUTTON_PRESS_DET,
+	WCD937X_IRQ_MBHC_BUTTON_PRESS_DET = 0,
+	WCD937X_IRQ_MBHC_BUTTON_RELEASE_DET,
 	WCD937X_IRQ_MBHC_ELECT_INS_REM_DET,
 	WCD937X_IRQ_MBHC_ELECT_INS_REM_LEG_DET,
 	WCD937X_IRQ_MBHC_SW_DET,