drm/rockchip: dw_hdmi: Fix up screen flash when switching color

After switching color, hdmi output signal may be unstable.
If AVMUTE is cleared too early, tv will display err.

Change-Id: I595180bfe6e014de5231bcd75ee259d5702121e0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2018-03-28 11:34:00 +08:00
committed by Tao Huang
parent 8aad83b839
commit 58d3d8412a

View File

@@ -2670,6 +2670,11 @@ dw_hdmi_connector_atomic_flush(struct drm_connector *connector,
if (hdmi->hdmi_data.update) {
dw_hdmi_setup(hdmi, &hdmi->previous_mode);
/*
* Before clear AVMUTE, delay is needed to
* prevent display flash.
*/
msleep(50);
hdmi_writeb(hdmi, HDMI_FC_GCP_CLEAR_AVMUTE, HDMI_FC_GCP);
hdmi->hdmi_data.update = false;
} else if (connector->state->hdr_metadata_changed &&