]> git.dujemihanovic.xyz Git - u-boot.git/commit
edid: add edid_get_timing_validate() variant to filter out edid modes
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 4 Jul 2019 13:52:06 +0000 (15:52 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sun, 28 Jul 2019 22:21:40 +0000 (00:21 +0200)
commit1c1ed441b0d1d7d5fbf02cf89a390c04b18f8ba3
tree9cbc29594340cd3961a60ed1800d6ef7dc5053f7
parent245b1029e1af8b2e71c6d7aebc7d68bdebd644d3
edid: add edid_get_timing_validate() variant to filter out edid modes

The original edid_get_timing() function returns the first valid timing,
but on some plaforms, we could only supports a subset of the listed
monitot's navite timing.

Let's introduce a edid_get_timing_validate() adding a mode_valid callback
including a private cookie pointer.

If the callback returns false, the current timing is discared and the next
one is checked. If no valid & supported timings are found, the function
would return an error.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
common/edid.c
include/edid.h