summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Zhao <yzhao@codeaurora.org>2017-07-17 12:48:36 +0800
committerYuan Zhao <yzhao@codeaurora.org>2017-09-13 20:02:51 +0800
commitf2e445edd19d6b67db46cd5d3dd68092feb7dfaf (patch)
tree547c56cc262178d4aec65f502b96ee7a59b663f3
parent14f6bfeeebb97c02cbf0c43818f7998e3bdb3cae (diff)
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>
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_tx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
index 837147dc5036..831f6c212795 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
@@ -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;