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 <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2015-05-19 17:50:55 +08:00
parent ea92877923
commit 09fe887fd1

View 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++;
}
}