summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjay Singh Parmar <aparmar@codeaurora.org>2015-11-22 12:37:11 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:14:07 -0700
commitd2440dd653cb1ba4b5b43c4e02e5ce733885a057 (patch)
tree55de6783d6bcc7177357b592138b821c097a34ed
parent3f16a6580323d23afadd36279467eb534d57e3f8 (diff)
msm: mdss: hdmi: update hdcp information at hdcp start
Update the hdcp related information when hdcp is started and not before that. Updating hdcp information depends on some modules which may not be ready during boot-up resulting in hdcp failure. Update hdcp information on user thread to make sure that kernel has completed boot-up and dependent modules are ready. Change-Id: I159ec55dbe3d6f109a97a15c2f22d96694727133 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
index 1ea1215696e8..e0e4035baeb6 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
@@ -1800,8 +1800,6 @@ static void hdmi_tx_hpd_int_work(struct work_struct *work)
if (hdmi_tx_enable_power(hdmi_ctrl, HDMI_TX_DDC_PM, false))
DEV_ERR("%s: Failed to disable ddc power\n", __func__);
- hdmi_tx_update_hdcp_info(hdmi_ctrl);
-
hdmi_tx_send_cable_notification(hdmi_ctrl, true);
} else {
hdmi_tx_set_audio_switch_node(hdmi_ctrl, 0);
@@ -4306,6 +4304,8 @@ static int hdmi_tx_panel_event_handler(struct mdss_panel_data *panel_data,
break;
case MDSS_EVENT_PANEL_ON:
+ hdmi_tx_update_hdcp_info(hdmi_ctrl);
+
rc = hdmi_tx_start_hdcp(hdmi_ctrl);
if (rc)
DEV_ERR("%s: hdcp start failed rc=%d\n", __func__, rc);