Skip to content
Commit 1c1ed441 authored by Neil Armstrong's avatar Neil Armstrong Committed by Anatolij Gustschin
Browse files

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: default avatarNeil Armstrong <narmstrong@baylibre.com>
parent 245b1029
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment