[Openchrome-devel] xf86-video-openchrome: src/via_driver.c src/via_driver.h
Kevin Brace
kevinbrace at kemper.freedesktop.org
Wed Mar 30 06:25:14 UTC 2016
src/via_driver.c | 16 ----------------
src/via_driver.h | 2 --
2 files changed, 18 deletions(-)
New commits:
commit 1203f328f62304e0531ffa88cddeaef03911b998
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Tue Mar 29 23:22:03 2016 -0700
Removal of ActiveDevice option
Many display devices can now be detected automatically, there is
no need for this option anymore.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_driver.c b/src/via_driver.c
index dcff12a..edede8c 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -175,7 +175,6 @@ typedef enum
OPTION_ROTATION_TYPE,
OPTION_ROTATE,
OPTION_VIDEORAM,
- OPTION_ACTIVEDEVICE,
OPTION_I2CDEVICES,
OPTION_BUSWIDTH,
OPTION_CENTER,
@@ -209,7 +208,6 @@ static OptionInfoRec VIAOptions[] = {
{OPTION_ROTATION_TYPE, "RotationType", OPTV_ANYSTR, {0}, FALSE},
{OPTION_ROTATE, "Rotate", OPTV_ANYSTR, {0}, FALSE},
{OPTION_VIDEORAM, "VideoRAM", OPTV_INTEGER, {0}, FALSE},
- {OPTION_ACTIVEDEVICE, "ActiveDevice", OPTV_ANYSTR, {0}, FALSE},
{OPTION_TVDOTCRAWL, "TVDotCrawl", OPTV_BOOLEAN, {0}, FALSE},
{OPTION_TVDEFLICKER, "TVDeflicker", OPTV_INTEGER, {0}, FALSE},
{OPTION_TVTYPE, "TVType", OPTV_ANYSTR, {0}, FALSE},
@@ -656,7 +654,6 @@ VIASetupDefaultOptions(ScrnInfoPtr pScrn)
#endif
pVia->maxDriSize = 0;
pVia->agpMem = AGP_SIZE / 1024;
- pVia->ActiveDevice = 0x00;
pVia->I2CDevices = VIA_I2C_BUS1 | VIA_I2C_BUS2 | VIA_I2C_BUS3;
pVia->VideoEngine = VIDEO_ENGINE_CLE;
#ifdef HAVE_DEBUG
@@ -1357,19 +1354,6 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, from,
"Will try to allocate %d kB of AGP memory.\n", pVia->agpMem);
- /* ActiveDevice Option for device selection */
- //pVia->ActiveDevice = 0x00;
- if ((s = xf86GetOptValString(VIAOptions, OPTION_ACTIVEDEVICE))) {
- if (strstr(s, "CRT"))
- pVia->ActiveDevice |= VIA_DEVICE_CRT;
- if (strstr(s, "LCD"))
- pVia->ActiveDevice |= VIA_DEVICE_LCD;
- if (strstr(s, "DFP"))
- pVia->ActiveDevice |= VIA_DEVICE_DFP;
- if (strstr(s, "TV"))
- pVia->ActiveDevice |= VIA_DEVICE_TV;
- }
-
pBIOSInfo = pVia->pBIOSInfo;
pBIOSInfo->TVDotCrawl = FALSE;
from = xf86GetOptValBool(VIAOptions, OPTION_TVDOTCRAWL,
diff --git a/src/via_driver.h b/src/via_driver.h
index 98bfb90..fb367f9 100644
--- a/src/via_driver.h
+++ b/src/via_driver.h
@@ -343,8 +343,6 @@ typedef struct _VIA {
Bool dma2d;
Bool dmaXV;
- CARD8 ActiveDevice; /* Option */
-
/* Video */
int VideoEngine;
swovRec swov;
More information about the Openchrome-devel
mailing list