Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9980864c authored by LibXZR's avatar LibXZR Committed by MajorP93
Browse files

oplus_touchpanel: Fix game mode not restoring on wakeup

* Game mode is disabled during suspend but not restored on wakeup.
* This could cause game mode not taking effect even when "game_switch"
  is enabled.

Change-Id: I7be4c7b8ebe4664fa2af5e53178803c6045da33e
parent 7b7d97ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -238,6 +238,8 @@ void operate_mode_switch(struct touchpanel_data *ts)
		if (ts->edge_limit_support || ts->fw_edge_limit_support) {
			ts->ts_ops->mode_switch(ts->chip_data, MODE_EDGE, ts->limit_edge);
		}
	        if (ts->game_switch_support)
        	    ts->ts_ops->mode_switch(ts->chip_data, MODE_GAME, ts->noise_level);

		if (ts->glove_mode_support) {
			ts->ts_ops->mode_switch(ts->chip_data, MODE_GLOVE, ts->glove_enable);