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

Commit 18be8266 authored by Michele Bono's avatar Michele Bono
Browse files

Revert "drm: msm: Allow DC dimming code to run"

This reverts commit abfc5ba4.

Change-Id: Iaaab58ed6516701879c8f39f75af603ff032a939
parent 3a3f1442
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -5754,7 +5754,16 @@ static int sde_crtc_onscreenfinger_atomic_check(struct sde_crtc_state *cstate,
            aod_index = i;
	}

	display->panel->dim_status = fp_index >= 0 && dim_mode != 0;
	if (fp_mode == 1) {
		display->panel->dim_status = true;
		cstate->fingerprint_pressed = true;
		return 0;
	} else {
		display->panel->dim_status = false;
		cstate->fingerprint_pressed = false;
		cstate->fingerprint_dim_layer = NULL;
		return 0;
	}

	if(aod_index <0){
		oneplus_aod_hid = 0;
@@ -5898,16 +5907,6 @@ static int sde_crtc_onscreenfinger_atomic_check(struct sde_crtc_state *cstate,
		cstate->fingerprint_dim_layer = NULL;
	}

	if (fp_mode == 1) {
		display->panel->dim_status = true;
		cstate->fingerprint_pressed = true;
		return 0;
	} else if (fp_mode == 0) {
		display->panel->dim_status = false;
		cstate->fingerprint_pressed = false;
		return 0;
	}

	return 0;
}