[Openchrome-devel] xf86-video-openchrome: 3 commits - src/via_outputs.c src/via_vt1632.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Thu Mar 10 04:28:37 UTC 2016
src/via_outputs.c | 6 ++++++
src/via_vt1632.c | 10 +++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
New commits:
commit 0a2f6f3d229f93f29a5112bef635ff4b62d774e8
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Wed Mar 9 20:26:25 2016 -0800
Added debug messages to via_dp_detect
Added debug messages to via_dp_detect function inside via_outputs.c.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_outputs.c b/src/via_outputs.c
index c4ebebe..f6fc2ad 100644
--- a/src/via_outputs.c
+++ b/src/via_outputs.c
@@ -622,6 +622,9 @@ via_dp_detect(xf86OutputPtr output)
VIAPtr pVia = VIAPTR(pScrn);
xf86MonPtr mon;
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Entered via_dp_detect.\n"));
+
mon = xf86OutputGetEDID(output, pVia->pI2CBus2);
if (mon && DIGITAL(mon->features.input_type)) {
xf86OutputSetEDID(output, mon);
@@ -629,6 +632,9 @@ via_dp_detect(xf86OutputPtr output)
"I2C Bus 2 detected a DP.\n");
status = XF86OutputStatusConnected;
}
+
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Exiting via_dp_detect.\n"));
return status;
}
commit 47323aab2d3b406845dc35ef474a3855c1df1aa7
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Wed Mar 9 17:32:54 2016 -0800
Modified a debug message within via_vt1632_probe
Modified a debug message within via_vt1632_probe function inside
via_vt1632.c.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt1632.c b/src/via_vt1632.c
index 911eee7..3c507cb 100644
--- a/src/via_vt1632.c
+++ b/src/via_vt1632.c
@@ -262,8 +262,8 @@ via_vt1632_init(ScrnInfoPtr pScrn, I2CDevPtr pDev)
xf86I2CReadByte(pDev, 0x07, &buf);
Private->DotclockMax = (buf + 65) * 1000;
- xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VT1632A: Dot Clock Range: %d "
- "to %d MHz.\n",
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VT1632A Dot Clock Range: "
+ "%d to %d MHz\n",
Private->DotclockMin / 1000,
Private->DotclockMax / 1000);
commit a2def1ce285c7329ec3ae9491b63b5f880141d88
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Wed Mar 9 17:30:47 2016 -0800
Added debug messages to via_vt1632_probe
Added debug messages to via_vt1632_probe function inside via_vt1632.c.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_vt1632.c b/src/via_vt1632.c
index 8b9edf8..911eee7 100644
--- a/src/via_vt1632.c
+++ b/src/via_vt1632.c
@@ -211,13 +211,17 @@ via_vt1632_probe(ScrnInfoPtr pScrn, I2CDevPtr pDev) {
VendorID = buf;
xf86I2CReadByte(pDev, 1, &buf);
VendorID |= buf << 8;
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Vendor ID: 0x%04x\n", VendorID));
xf86I2CReadByte(pDev, 2, &buf);
DeviceID = buf;
xf86I2CReadByte(pDev, 3, &buf);
DeviceID |= buf << 8;
+ DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Device ID: %04x\n", DeviceID));
- if (VendorID != 0x1106 || DeviceID != 0x3192) {
+ if ((VendorID != 0x1106) || (DeviceID != 0x3192)) {
xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
"VT1632A DVI transmitter not detected.\n");
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
More information about the Openchrome-devel
mailing list