video: fbmon: added HDMI_Video_Format condition checking
Emma Yan [Tue, 3 Sep 2013 11:38:59 +0000 (19:38 +0800)]
Bug 1357380

Change-Id: I4b10c31b1c5124539b648764cfae8b17b5764f0a
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/269512
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

drivers/video/fbmon.c

index e4d0ce2..4ef31c1 100644 (file)
@@ -1104,8 +1104,12 @@ void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs)
                                (edid[pos + 2] << 16);
                        if (ieee_reg == 0x000c03)
                                specs->misc |= FB_MISC_HDMI;
-                       fb_hvd_parse(edid, &hvd, pos + 3);
-                       hdmi_num = hvd.hdmi_vic_len;
+
+                       /* HDMI_Video_Format @HDMI 1.4 ch8.2.3*/
+                       if (edid[pos + 2] >> 5 != 0) {
+                               fb_hvd_parse(edid, &hvd, pos + 3);
+                               hdmi_num = hvd.hdmi_vic_len;
+                       }
                }
 
                pos += len;