summaryrefslogtreecommitdiff
path: root/lib/igt_edid.h
diff options
context:
space:
mode:
authorMark Yacoub <markyacoub@chromium.org>2022-11-15 12:52:57 -0500
committermarkyacoub <marknyacoub@gmail.com>2022-11-16 22:13:40 -0500
commitf5cc3abb3d99e9ab5da2285b184e045da95c35a2 (patch)
tree2f9aa7679b8b525d73fae313913ca6817cd46374 /lib/igt_edid.h
parente7755fa7ae3cd6ac75a26ec87d12cddad0974ee6 (diff)
Chamelium: Add new EDID Resolution List test
[Why] 1. Users can change resolutions of monitors on the fly. 2. Monitors can come with different shapes and form aka different modes. Test a change between different modes on the fly. [How] 1. Created an EDID based on a random combination of screen size, Refresh Rate and Aspect Ratio. 2. Set that EDID to Chamelium. 3. Iterate over every mode on the connector, assign it to the connector and check that the screen resolution changes to this one. Test Based on: [ChromeOS AutoTest display_ResolutionList](https://chromium.googlesource.com/chromiumos/third_party/autotest/+/HEAD/server/site_tests/display_ResolutionList/display_ResolutionList.py) Tested on: TGL with Cv3 Signed-off-by: Mark Yacoub <markyacoub@chromium.org> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_edid.h')
-rw-r--r--lib/igt_edid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_edid.h b/lib/igt_edid.h
index a9251d689..477f16c22 100644
--- a/lib/igt_edid.h
+++ b/lib/igt_edid.h
@@ -379,6 +379,8 @@ size_t edid_get_size(const struct edid *edid);
void edid_get_mfg(const struct edid *edid, char out[static 3]);
uint8_t edid_get_deep_color_from_vsdb(const struct edid *edid);
uint8_t edid_get_bit_depth_from_vid(const struct edid *edid);
+void std_timing_set(struct std_timing *st, int hsize, int vfreq,
+ enum std_timing_aspect aspect);
void detailed_timing_set_mode(struct detailed_timing *dt, drmModeModeInfo *mode,
int width_mm, int height_mm);
void detailed_timing_set_monitor_range_mode(struct detailed_timing *dt,