summaryrefslogtreecommitdiff
path: root/src/smi_501.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-19 16:52:17 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-19 16:52:17 -0300
commitf4339a6a7aa077cb355dd23b77ea568ad2a481e3 (patch)
treea947177b01427e87c0ebc3e902bdab9809979783 /src/smi_501.c
parent782ef31a9273e33100ae6b4bd20a4d1d3f493aa4 (diff)
Enable pci retry and pci burst by default.
Rename fields pci_burst and NoPCIRetry to PCIBurst and PCIRetry, to match field names case usage, and updated logic for the removal of "No" from the pci retry option. Pci retry and pci burst greatly increase video playback speed, allowing smooth video play on the SMI 501.
Diffstat (limited to 'src/smi_501.c')
-rw-r--r--src/smi_501.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/smi_501.c b/src/smi_501.c
index 190ada0..725ab7a 100644
--- a/src/smi_501.c
+++ b/src/smi_501.c
@@ -485,6 +485,12 @@ SMI501_ModeInit(ScrnInfoPtr pScrn, DisplayModePtr xf86mode)
WRITE_SCR(pSmi, POWER_CTL, mode->power_ctl.value);
+ if (pSmi->PCIBurst) {
+ field(mode->system_ctl, burst) = field(mode->system_ctl, burst_read) = 1;
+ field(mode->system_ctl, retry) = pSmi->PCIRetry != FALSE;
+ WRITE_SCR(pSmi, SYSTEM_CTL, mode->system_ctl.value);
+ }
+
/* FIXME update pallete here if running at 8 bpp */
SMI_AdjustFrame(pScrn->scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);