Pārlūkot izejas kodu

disp: msm: sde: remove redundant backlight update

Current logic will unnecessarily call backlight update
twice in cases where backlight level is changing. When
this happens, there is a potential delay waiting for the
first command to complete before sending the second
backlight update with the same value. This change removes
one backlight call and now only calls update if the
property is marked as dirty.

Change-Id: I260f0d73b3a5af9ced7ae261d247595f965a8d9e
Signed-off-by: Samantha Tran <[email protected]>
Samantha Tran 3 gadi atpakaļ
vecāks
revīzija
dff7057a41
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  1. 0 4
      msm/sde/sde_connector.c

+ 0 - 4
msm/sde/sde_connector.c

@@ -880,10 +880,6 @@ static int _sde_connector_update_dirty_properties(
 			_sde_connector_update_power_locked(c_conn);
 			mutex_unlock(&c_conn->lock);
 			break;
-		case CONNECTOR_PROP_BL_SCALE:
-		case CONNECTOR_PROP_SV_BL_SCALE:
-			_sde_connector_update_bl_scale(c_conn);
-			break;
 		case CONNECTOR_PROP_HDR_METADATA:
 			_sde_connector_update_hdr_metadata(c_conn, c_state);
 			break;