summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Zhao <yzhao@codeaurora.org>2017-07-17 13:27:32 +0800
committerYuan Zhao <yzhao@codeaurora.org>2017-07-26 16:23:53 +0800
commit1260d2e7652c9adba2df5fa4996805281ea67151 (patch)
tree0ac50db57a02cf40fbdb7ad73d08fc33344e1e89
parent7aa065cbc4f86125895f6c7c6a5ac1fdda231505 (diff)
msm: mdss: setup infoframe for all HDMI modes
Setup AVI infoframe for all HDMI modes otherwise the sink does not turn on. For all non-CEA modes, VIC value of zero shall be used as per the spec. Change-Id: I4458c8aec093342ef6cdd02e51a188391f662db7 Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_tx.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
index 2e267f2695d7..41d68b518af1 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
@@ -272,20 +272,6 @@ static void hdmi_tx_cable_notify_work(struct work_struct *work)
mutex_unlock(&hdmi_ctrl->tx_lock);
} /* hdmi_tx_cable_notify_work */
-static bool hdmi_tx_is_cea_format(int mode)
-{
- bool cea_fmt;
-
- if ((mode > 0) && (mode <= HDMI_EVFRMT_END))
- cea_fmt = true;
- else
- cea_fmt = false;
-
- DEV_DBG("%s: %s\n", __func__, cea_fmt ? "Yes" : "No");
-
- return cea_fmt;
-}
-
static inline bool hdmi_tx_is_hdcp_enabled(struct hdmi_tx_ctrl *hdmi_ctrl)
{
return hdmi_ctrl->hdcp_feature_on &&
@@ -3192,9 +3178,7 @@ static int hdmi_tx_power_on(struct hdmi_tx_ctrl *hdmi_ctrl)
}
hdmi_ctrl->panel.vic = hdmi_ctrl->vic;
-
- if (!hdmi_tx_is_dvi_mode(hdmi_ctrl) &&
- hdmi_tx_is_cea_format(hdmi_ctrl->vic))
+ if (!hdmi_tx_is_dvi_mode(hdmi_ctrl))
hdmi_ctrl->panel.infoframe = true;
else
hdmi_ctrl->panel.infoframe = false;