]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00238384 MX6x HDMI: Update HDMI setting when HDMI cable plugin
authorSandor Yu <R01008@freescale.com>
Thu, 27 Dec 2012 09:13:28 +0000 (17:13 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:49 +0000 (08:35 +0200)
Update HDMI setting when HDMI cable plugin,
HDMI will catch capbility update with EDID data updated.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/video/mxc_hdmi.c

index 369e54f7d8650cb7b46951dc546eeda903339339..284c6e5e5a5e3b8df1c545e28956b6fca78f6f5f 100644 (file)
@@ -186,6 +186,9 @@ static bool hdmi_inited;
 
 extern const struct fb_videomode mxc_cea_mode[64];
 extern void mxc_hdmi_cec_handle(u16 cec_stat);
+
+static void mxc_hdmi_setup(struct mxc_hdmi *hdmi, unsigned long event);
+
 #ifdef DEBUG
 static void dump_fb_videomode(struct fb_videomode *m)
 {
@@ -1636,7 +1639,8 @@ static void mxc_hdmi_set_mode(struct mxc_hdmi *hdmi)
                                "%s: Video mode same as previous\n", __func__);
                /* update fbi mode in case modelist is updated */
                hdmi->fbi->mode = (struct fb_videomode *)mode;
-               mxc_hdmi_phy_init(hdmi);
+               /* update hdmi setting in case EDID data updated  */
+               mxc_hdmi_setup(hdmi, 0);
        } else {
                dev_dbg(&hdmi->pdev->dev, "%s: New video mode\n", __func__);
                mxc_hdmi_set_mode_to_vga_dvi(hdmi);