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

Commit abfc5ba4 authored by Marko Man's avatar Marko Man Committed by LuK1337
Browse files

drm: msm: Allow DC dimming code to run

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

	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;
	}
	display->panel->dim_status = fp_index >= 0 && dim_mode != 0;

	if(aod_index <0){
		oneplus_aod_hid = 0;
@@ -5907,6 +5898,16 @@ 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;
}