summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-11 15:34:27 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-11 15:34:27 -0200
commit09644ad3da4cf4c2576532137fdc81156e9c06e6 (patch)
tree22b009cd927f040838f533ddc6db7e920d91245e
parentcaac648932df69419b8f86c5793a6b33f5997099 (diff)
Disable detection of crt for the smi 501/502.
As described by siliconmotion, it does not work on the smi 502. Does it work on older revisions? Keeping <hash>ifdef'ed out for now as it hopefully will be corrected in a newer hardware revision.
-rw-r--r--src/smi501_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi501_output.c b/src/smi501_output.c
index 4652344..475c2d2 100644
--- a/src/smi501_output.c
+++ b/src/smi501_output.c
@@ -94,6 +94,7 @@ SMI501_OutputDPMS_crt(xf86OutputPtr output, int dpms)
LEAVE();
}
+#ifdef USE_CRTC_DETECT
static xf86OutputStatus
SMI501_OutputDetect_crt(xf86OutputPtr output)
{
@@ -125,6 +126,7 @@ SMI501_OutputDetect_crt(xf86OutputPtr output)
RETURN(status);
}
+#endif
static xf86OutputFuncsRec SMI501_Output0Funcs;
static xf86OutputFuncsRec SMI501_Output1Funcs;
@@ -157,7 +159,9 @@ SMI501_OutputPreInit(ScrnInfoPtr pScrn)
SMI_OutputFuncsInit_base(&SMI501_Output1Funcs);
SMI501_Output1Funcs.dpms = SMI501_OutputDPMS_crt;
SMI501_Output1Funcs.get_modes = SMI_OutputGetModes_native;
+#ifdef USE_CRTC_DETECT
SMI501_Output1Funcs.detect = SMI501_OutputDetect_crt;
+#endif
output1 = xf86OutputCreate(pScrn, &SMI501_Output1Funcs, "VGA");
if (!output1)