summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb64b41)
raw | patch | inline | side by side (parent: bb64b41)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Mon, 15 Aug 2016 09:09:07 +0000 (12:09 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Mon, 15 Aug 2016 09:28:04 +0000 (12:28 +0300) |
kms++/src/modedb_cea.cpp | patch | blob | history | |
kms++/src/modedb_dmt.cpp | patch | blob | history |
index a105dd8d24144d9d7b46088f4a22f40886413fc0..a99a612c3ad31a5d0fe1c28dc335e0932dc81b59 100644 (file)
--- a/kms++/src/modedb_cea.cpp
+++ b/kms++/src/modedb_cea.cpp
.name = nm, .clock = (c), \
.hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), .htotal = (ht), .hskew = (hsk), \
.vdisplay = (vd), .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), .vscan = (vs), \
- .vrefresh = DIV_ROUND(c * 1000, ht * vt), .flags = (f), .type = 0
+ .vrefresh = DIV_ROUND(c * 1000, ht * vt) * (((f) & DRM_MODE_FLAG_INTERLACE) ? 2 : 1), \
+ .flags = (f), .type = 0
/*
* Probably taken from CEA-861 spec.
index e3f2ad5e60f1cd8f7baecfd6428bb476a3ec98ea..c3d542604ad5058883b8e2094feb8bb82aba75fd 100644 (file)
--- a/kms++/src/modedb_dmt.cpp
+++ b/kms++/src/modedb_dmt.cpp
.name = nm, .clock = (c), \
.hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), .htotal = (ht), .hskew = (hsk), \
.vdisplay = (vd), .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), .vscan = (vs), \
- .vrefresh = DIV_ROUND(c * 1000, ht * vt), .flags = (f), .type = 0
-
+ .vrefresh = DIV_ROUND(c * 1000, ht * vt) * (((f) & DRM_MODE_FLAG_INTERLACE) ? 2 : 1), \
+ .flags = (f), .type = 0
/*
* Autogenerated from the DMT spec.