[Openchrome-devel] xf86-video-openchrome: 4 commits - configure.ac src/via_analog.c src/via_tmds.c src/via_ums.h
Kevin Brace
kevinbrace at kemper.freedesktop.org
Wed Apr 5 04:16:51 UTC 2017
configure.ac | 2 +-
src/via_analog.c | 13 +++----------
src/via_tmds.c | 17 -----------------
src/via_ums.h | 17 +++++++++++++++++
4 files changed, 21 insertions(+), 28 deletions(-)
New commits:
commit 6a976060c202218f252bd6e844c0590c89eb8666
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Apr 4 21:16:37 2017 -0700
Version bumped to 0.6.103
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/configure.ac b/configure.ac
index 441f63e..0928533 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ(2.57)
AC_INIT([xf86-video-openchrome],
- [0.6.102],
+ [0.6.103],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
[xf86-video-openchrome])
commit 3ef1718647b04a8ffddb3f63905b1a40c8847756
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Apr 4 21:15:16 2017 -0700
Removed obsolete code from via_tmds.c
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_tmds.c b/src/via_tmds.c
index 069f095..a2dd121 100644
--- a/src/via_tmds.c
+++ b/src/via_tmds.c
@@ -44,23 +44,6 @@
/*
- 1. Formula:
- 2^13 X 0.0698uSec [1/14.318MHz] = 8192 X 0.0698uSec =572.1uSec
- Timer = Counter x 572 uSec
- 2. Note:
- 0.0698 uSec is too small to compute for hardware. So we multiply a
- reference value(2^13) to make it big enough to compute for hardware.
- 3. Note:
- The meaning of the TD0~TD3 are count of the clock.
- TD(sec) = (sec)/(per clock) x (count of clocks)
-*/
-#define TD0 200
-#define TD1 25
-#define TD2 0
-#define TD3 25
-
-
-/*
* Initializes most registers related to VIA Technologies IGP
* integrated TMDS transmitter. Synchronization polarity and
* display output source need to be set separately. */
commit c91504095e4869df670661dd2dafbfa770d0ffe2
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Apr 4 21:13:50 2017 -0700
Updated viaAnalogOutput
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_analog.c b/src/via_analog.c
index 682ae20..7b2ee8f 100644
--- a/src/via_analog.c
+++ b/src/via_analog.c
@@ -42,24 +42,17 @@
/*
- * Enables or disables analog VGA output by controlling DAC
- * (Digital to Analog Converter) output state.
+ * Enables or disables analog (VGA) output.
*/
static void
viaAnalogOutput(ScrnInfoPtr pScrn, Bool outputState)
{
- vgaHWPtr hwp = VGAHWPTR(pScrn);
-
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered viaAnalogOutput.\n"));
- /* This register controls analog VGA DAC output state. */
- /* 3X5.47[2] - DACOFF Backdoor Register
- * 0: DAC on
- * 1: DAC off */
- ViaCrtcMask(hwp, 0x47, outputState ? 0x00 : 0x04, 0x04);
+ viaAnalogSetDACOutput(pScrn, outputState);
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Analog VGA Output: %s\n",
+ "Analog (VGA) Output: %s\n",
outputState ? "On" : "Off");
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
commit 91137861b8dac13adfcdf9c7a5bc4faa8935c4cc
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Apr 4 20:05:15 2017 -0700
Added viaAnalogSetDACOutput
This inline function was added to via_ums.h.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_ums.h b/src/via_ums.h
index 6c4d7b2..e2bea9b 100644
--- a/src/via_ums.h
+++ b/src/via_ums.h
@@ -210,6 +210,23 @@ typedef struct
/*
+ * Sets analog (VGA) DAC output state.
+ */
+static inline void
+viaAnalogSetDACOutput(ScrnInfoPtr pScrn, Bool outputState)
+{
+ /* Set analog (VGA) DAC output state. */
+ /* 3X5.47[2] - DACOFF Backdoor Register
+ * 0: DAC on
+ * 1: DAC off */
+ ViaCrtcMask(VGAHWPTR(pScrn), 0x47, outputState ? 0x00 : BIT(2),
+ BIT(2));
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Analog (VGA) DAC Output: %s\n",
+ outputState ? "On" : "Off");
+}
+
+/*
* Sets CX700 or later single chipset's LVDS1 power sequence type.
*/
static inline void
More information about the Openchrome-devel
mailing list