Fix TV programming: add vblank wait after TV_CTL writes

Fxies FDO bug #14000; we need to wait for vblank after writing TV_CTL or followi
ng "DPMS on" calls may not actually enable the output.
This commit is contained in:
Jesse Barnes 2008-06-09 08:52:59 -07:00 committed by Jesse Barnes
parent 64a8f2433d
commit 1142be53eb
1 changed files with 3 additions and 0 deletions

View File

@ -788,6 +788,7 @@ i830_tv_dpms(xf86OutputPtr output, int mode)
OUTREG(TV_CTL, INREG(TV_CTL) & ~TV_ENC_ENABLE);
break;
}
i830WaitForVblank(pScrn);
}
static void
@ -920,6 +921,7 @@ i830_tv_restore(xf86OutputPtr output)
OUTREG(TV_DAC, dev_priv->save_TV_DAC);
OUTREG(TV_CTL, dev_priv->save_TV_CTL);
i830WaitForVblank(pScrn);
}
static const tv_mode_t *
@ -1237,6 +1239,7 @@ i830_tv_mode_set(xf86OutputPtr output, DisplayModePtr mode,
OUTREG(TV_V_CHROMA_0 + (i<<2), tv_mode->filter_table[j++]);
OUTREG(TV_DAC, 0);
OUTREG(TV_CTL, tv_ctl);
i830WaitForVblank(pScrn);
}
static const DisplayModeRec reported_modes[] = {