diff options
author | Y.C. Chen <yc_chen@aspeedtech.com> | 2014-03-14 22:52:11 +0800 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2014-03-14 22:52:11 +0800 |
commit | 2a2ecb551781d89e8e2a3123bb7d5b20ee807953 (patch) | |
tree | c789afa710a2be1dae6377e4b860b6f830b0cc7e /src/ast_mode.c | |
parent | 7f24775a468066601a79beaffb4efa5a36c5ed59 (diff) |
Support DP501 Output
Diffstat (limited to 'src/ast_mode.c')
-rw-r--r-- | src/ast_mode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ast_mode.c b/src/ast_mode.c index de6f4f1..964fe7a 100644 --- a/src/ast_mode.c +++ b/src/ast_mode.c @@ -413,8 +413,8 @@ VBIOS_DAC_INFO DAC_VGA[] = { /* extern. function */ extern void vASTOpenKey(ScrnInfoPtr pScrn); extern Bool bASTRegInit(ScrnInfoPtr pScrn); -extern void vAST1000DisplayOn(ASTRecPtr pAST); -extern void vAST1000DisplayOff(ASTRecPtr pAST); +extern void vAST1000DisplayOn(ScrnInfoPtr pScrn); +extern void vAST1000DisplayOff(ScrnInfoPtr pScrn); extern Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST); extern void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST); @@ -465,6 +465,8 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) vASTOpenKey(pScrn); bASTRegInit(pScrn); + vAST1000DisplayOff(pScrn); + vSetStdReg(pScrn, mode, &vgamodeinfo); vSetCRTCReg(pScrn, mode, &vgamodeinfo); vSetOffsetReg(pScrn, mode, &vgamodeinfo); @@ -472,6 +474,8 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) vSetExtReg(pScrn, mode, &vgamodeinfo); vSetSyncReg(pScrn, mode, &vgamodeinfo); bSetDACReg(pScrn, mode, &vgamodeinfo); + + vAST1000DisplayOn(pScrn); } /* post set mode */ @@ -491,7 +495,6 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) } } #endif - vAST1000DisplayOn(pAST); return (TRUE); } |