diff options
author | Y.C. Chen <yc_chen@aspeedtech.com> | 2015-08-13 15:54:15 +0800 |
---|---|---|
committer | Y.C. Chen <yc_chen@aspeedtech.com> | 2015-08-13 15:54:15 +0800 |
commit | e545ab905ea120014558d6f1733d87ffde5d5d71 (patch) | |
tree | 50e1d13e2b3edde9b684a9dba6dd461a2f5d5e6a | |
parent | 77e7ac37c6031551f7ad355dc94c4176df4956aa (diff) |
Fixed Transient Noise While System Resume from Hibernate
-rw-r--r-- | src/ast_mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast_mode.c b/src/ast_mode.c index 2b5ebde..28c863d 100644 --- a/src/ast_mode.c +++ b/src/ast_mode.c @@ -465,6 +465,9 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) vSetSyncReg(pScrn, mode, &vgamodeinfo); bSetDACReg(pScrn, mode, &vgamodeinfo); + /* clear video buffer to avoid display noise */ + memset(pAST->FBVirtualAddr, 0x00, pAST->VideoModeInfo.ScreenPitch*pAST->VideoModeInfo.ScreenHeight); + vAST1000DisplayOn(pScrn); } |