msm: mdss: disable HDMI block before HDMI core off

Switching HDMI display mode many times, could find
sometimes color distortion or no signal display.
If disable HDMI block before setting HDMI core off,
that could be fixed.

Change-Id: Ib0e8002f59e017a81298d4a5a39736a7516e3435
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
This commit is contained in:
Yuan Zhao 2017-07-17 12:48:36 +08:00
parent 14f6bfeeeb
commit f2e445edd1

View file

@ -3145,6 +3145,10 @@ static int hdmi_tx_power_off(struct hdmi_tx_ctrl *hdmi_ctrl)
if (hdmi_ctrl->panel_ops.off)
hdmi_ctrl->panel_ops.off(pdata);
hdmi_tx_set_mode(hdmi_ctrl, false);
hdmi_tx_phy_reset(hdmi_ctrl);
hdmi_tx_set_mode(hdmi_ctrl, true);
hdmi_tx_core_off(hdmi_ctrl);
hdmi_ctrl->panel_power_on = false;