mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user