HDMI: fix edid 3d information offset parse error.
authorZheng Yang <zhengyang@rock-chips.com>
Tue, 19 May 2015 09:50:55 +0000 (17:50 +0800)
committerZheng Yang <zhengyang@rock-chips.com>
Tue, 19 May 2015 10:07:45 +0000 (18:07 +0800)
In EDID 3D descriptor, 3d information is after
4K format. But we did not increase the offset of
3d content if 4K format is zero, which make 3d
information error.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
drivers/video/rockchip/hdmi/rockchip-hdmi-edid.c

index f4541edffebdd42071ab76fb8f66f07d4fe98883..48597f1bcdafdc0fbb1aa2c8631b6cc03f3ef2a2 100644 (file)
@@ -181,7 +181,8 @@ static int hdmi_edid_parse_3dinfo(unsigned char *buf, struct list_head *head)
                len = (buf[1] & 0xe0) >> 5;
                for (i = 0; i < len; i++) {
                        if (buf[offset])
-                               hdmi_add_vic((96 - buf[offset++]), head);
+                               hdmi_add_vic((96 - buf[offset]), head);
+                       offset++;
                }
        }