mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
common: edid: check for digital display earlier
When searching for detailed timing in EDID, check for digital display earlier. There is no point parsing other parameters if this flag is not present. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
parent
3b9021a545
commit
4fb0c3c43f
1 changed files with 5 additions and 4 deletions
|
@ -185,6 +185,11 @@ int edid_get_timing_validate(u8 *buf, int buf_size,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!EDID1_INFO_VIDEO_INPUT_DIGITAL(*edid)) {
|
||||
debug("%s: Not a digital display\n", __func__);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
if (!EDID1_INFO_FEATURE_PREFERRED_TIMING_MODE(*edid)) {
|
||||
debug("%s: No preferred timing\n", __func__);
|
||||
return -ENOENT;
|
||||
|
@ -211,10 +216,6 @@ int edid_get_timing_validate(u8 *buf, int buf_size,
|
|||
if (!timing_done)
|
||||
return -EINVAL;
|
||||
|
||||
if (!EDID1_INFO_VIDEO_INPUT_DIGITAL(*edid)) {
|
||||
debug("%s: Not a digital display\n", __func__);
|
||||
return -ENOSYS;
|
||||
}
|
||||
if (edid->version != 1 || edid->revision < 4) {
|
||||
debug("%s: EDID version %d.%d does not have required info\n",
|
||||
__func__, edid->version, edid->revision);
|
||||
|
|
Loading…
Reference in a new issue