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

Commit a4d823ae authored by Abhinav Kumar's avatar Abhinav Kumar
Browse files

drm/msm: clear deep color mode flags when updating modes



Currently, deep color mode flags are not being cleared
across connect-disconnect of HDMI cable. This leads to
stale information being present on the next successful
connection.

Clear the stale deep color mode flags before updating the
modes during a connection event.

Change-Id: I90d494a67dfb1c3fd464f1e1ffb24592bd712702
Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
parent a49bb615
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -549,6 +549,12 @@ int _sde_edid_update_modes(struct drm_connector *connector,
{
	int rc = 0;
	struct sde_edid_ctrl *edid_ctrl = (struct sde_edid_ctrl *)(input);
	struct drm_display_info *disp_info;

	disp_info = &connector->display_info;

	if (disp_info)
		disp_info->edid_hdmi_dc_modes = 0;

	SDE_EDID_DEBUG("%s +", __func__);
	if (edid_ctrl->edid) {