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

Commit 001d6a87 authored by shermanwei's avatar shermanwei Committed by shermanwei(96912)
Browse files

Qualcomm KBA-180725024109 to solve Far the Proximity

and the screen will never light on sometimes

Change-Id: I445c5026369fad21c26a56833110c190d64822d3
(cherry picked from commit 32b311163e8954d8f7d738bfb45a02c4d01f91b9)
parent e12be408
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -239,6 +239,12 @@ static int is_sensor_port(struct msm_ipc_router_remote_port *rport)

	if (rport && rport->server) {
		svcid = rport->server->name.service;
		//<2019/09/05,ShermanWei for Qualcomm KBA-180725024109 patch
		//to solve that far Proximity the screen can not light on sometimes.
		//// hold wakelock for thresh(proximity) algo sensor and OEM1(e.g: pick up gesture sensor)
		if (svcid == 277 || svcid == 287)
			return false;
		//>2019/09/05,ShermanWei
		if (svcid == 400 || (svcid >= 256 && svcid <= 320))
			return true;
	}