configure.ac | 2 +- src/via_lvds.c | 48 +++++++++++++++++++++++++++--------------------- src/via_ums.h | 6 ++++-- 3 files changed, 32 insertions(+), 24 deletions(-)
New commits: commit 6850f1964feedecaafe43000ee9da3c47f8c7872 Author: Kevin Brace <kevinbr...@gmx.com> Date: Fri Aug 12 20:51:04 2016 -0700 Version bumped to 0.5.127 Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/configure.ac b/configure.ac index 14fe727..916ad6d 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ # Initialize Autoconf AC_PREREQ(2.57) AC_INIT([xf86-video-openchrome], - [0.5.126], + [0.5.127], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome], [xf86-video-openchrome]) commit d90a71c7146470162cb2bd1f76f9c5cfcec09101 Author: Kevin Brace <kevinbr...@gmx.com> Date: Fri Aug 12 20:49:49 2016 -0700 Updated VIA Technologies defined flat panel screen resolution table The table used to determine the flat panel screen resolution was updated since it appeared that the some of the table values were wrong. Also, dual edge transfer flag and dithering (18-bit color) flag were added to the table, so that LVDS FP (Flat Panel) initialization code relies less on external code (i.e., VGA BIOS, viafb frame buffer device driver) initializing LVDS FP related registers. Signed-off-by: Kevin Brace <kevinbr...@gmx.com> diff --git a/src/via_lvds.c b/src/via_lvds.c index e4fd5df..727744d 100644 --- a/src/via_lvds.c +++ b/src/via_lvds.c @@ -49,28 +49,34 @@ static OptionInfoRec ViaPanelOptions[] = {-1, NULL, OPTV_NONE, {0}, FALSE} }; +/* These table values were copied from lcd.c of VIA Frame + * Buffer device driver. */ +/* {int Width, int Height, bool useDualEdge, bool useDithering}; */ static ViaPanelModeRec ViaPanelNativeModes[] = { - {640, 480}, - {800, 600}, - {1024, 768}, - {1280, 768}, - {1280, 1024}, - {1400, 1050}, - {1600, 1200}, /* 0x6 */ - {1280, 800}, /* 0x7 Resolution 1280x800 (Samsung NC20) */ - {800, 480}, /* 0x8 For Quanta 800x480 */ - {1024, 600}, /* 0x9 Resolution 1024x600 (for HP 2133) */ - {1368, 768}, /* 0xA Resolution 1366x768 */ - {1920, 1080}, - {1920, 1200}, - {1280, 1024}, /* 0xD */ - {1440, 900}, /* 0xE */ - {1280, 720}, /* 0xF 480x640 */ - {1200, 900}, /* 0x10 For OLPC 1.5 */ - {1360, 768}, /* 0x11 Resolution 1360X768 */ - {1024, 768}, /* 0x12 Resolution 1024x768 */ - {800, 480} /* 0x13 General 8x4 panel use this setting */ -}; + { 640, 480, FALSE, TRUE}, + { 800, 600, FALSE, TRUE}, + {1024, 768, FALSE, TRUE}, + {1280, 768, FALSE, TRUE}, + {1280, 1024, TRUE, TRUE}, + {1400, 1050, TRUE, TRUE}, + {1600, 1200, TRUE, TRUE}, + {1280, 800, FALSE, TRUE}, + { 800, 480, FALSE, TRUE}, + {1024, 768, TRUE, TRUE}, + {1024, 768, FALSE, FALSE}, + {1024, 768, TRUE, FALSE}, + {1280, 768, FALSE, FALSE}, + {1280, 1024, TRUE, FALSE}, + {1400, 1050, TRUE, FALSE}, + {1600, 1200, TRUE, FALSE}, + {1366, 768, FALSE, FALSE}, + {1024, 600, FALSE, TRUE}, + {1280, 768, TRUE, TRUE}, + {1280, 800, FALSE, TRUE}, + {1360, 768, FALSE, FALSE}, + {1280, 768, TRUE, FALSE}, + { 480, 640, FALSE, TRUE}, + {1200, 900, FALSE, FALSE}}; #define MODEPREFIX(name) NULL, NULL, name, 0, M_T_DRIVER | M_T_DEFAULT #define MODESUFFIX 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,FALSE,FALSE,0,NULL,0,0.0,0.0 diff --git a/src/via_ums.h b/src/via_ums.h index f8627e2..42a3dae 100644 --- a/src/via_ums.h +++ b/src/via_ums.h @@ -127,8 +127,10 @@ typedef struct ViaPanelMode { - int Width ; - int Height ; + int Width; + int Height; + Bool useDualEdge; + Bool useDithering; } ViaPanelModeRec, *ViaPanelModePtr ; typedef struct ViaPanelInfo { _______________________________________________ Openchrome-devel mailing list Openchrome-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/openchrome-devel