From: Zheng Yang Date: Tue, 19 May 2015 09:50:55 +0000 (+0800) Subject: HDMI: fix edid 3d information offset parse error. X-Git-Tag: firefly_0821_release~4158^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=77d30fd62d1c57701347f25745a791512b60d303;p=firefly-linux-kernel-4.4.55.git HDMI: fix edid 3d information offset parse error. 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 --- diff --git a/drivers/video/rockchip/hdmi/rockchip-hdmi-edid.c b/drivers/video/rockchip/hdmi/rockchip-hdmi-edid.c index f4541edffebd..48597f1bcdaf 100644 --- a/drivers/video/rockchip/hdmi/rockchip-hdmi-edid.c +++ b/drivers/video/rockchip/hdmi/rockchip-hdmi-edid.c @@ -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++; } }