MLK-22084: fbdev: hdmi: Fix HDCP function failed work with Sony TV
authorSandor Yu <Sandor.yu@nxp.com>
Fri, 20 Sep 2019 07:27:34 +0000 (15:27 +0800)
committerSandor Yu <Sandor.yu@nxp.com>
Mon, 23 Sep 2019 02:29:07 +0000 (10:29 +0800)
HDCP function could work in other TVs
but it failed with Sony TV when run hdcp enable/disable stress test.
The TMDS clock is not detected by Sony TV.
The TV seems time sensitive for HDMI TMDS.
Add 20ms delay before TMDS enable make it work.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
drivers/video/fbdev/mxc/mxc_hdmi.c

index 9d57ad5..e2c221e 100644 (file)
@@ -2262,10 +2262,11 @@ static void mxc_hdmi_setup(struct mxc_hdmi *hdmi, unsigned long event)
        hdmi_video_csc(hdmi);
        hdmi_video_sample(hdmi);
 
+       /* delay 20ms before tmds start work */
+       msleep(20);
        mxc_hdmi_clear_overflow(hdmi);
 
        dev_dbg(&hdmi->pdev->dev, "%s exit\n\n", __func__);
-
 }
 
 /* Wait until we are registered to enable interrupts */