Browse Source

disp: msm: dsi: update max value for brightness property

Update max value for brightness property during property install.
In dual display with different max brightness level, property install
happens for primary display with its max value. When there is brightness
update for secondary display then it will fail in check for set property
due comaparison with max brightness of primary display. Avoid this by
updating max value of brightness property to 0xFFFF.

Change-Id: Icb6f19312075670f228d371b15a1a81dffaab341
Signed-off-by: Anand Tarakh <[email protected]>
Anand Tarakh 1 năm trước cách đây
mục cha
commit
1e1c89b1a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      msm/sde/sde_connector.c

+ 1 - 1
msm/sde/sde_connector.c

@@ -3333,7 +3333,7 @@ static int _sde_connector_install_properties(struct drm_device *dev,
 		dsi_display = (struct dsi_display *)(display);
 		if (dsi_display && dsi_display->panel) {
 			msm_property_install_range(&c_conn->property_info, "brightness",
-			0x0, 0, dsi_display->panel->bl_config.brightness_max_level, 0,
+			0x0, 0, 0xFFFF, 0,
 			CONNECTOR_PROP_BRIGHTNESS);
 		}
 	}