mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user