* [PATCH] vt8623fb: beter resume from STR
@ 2008-02-13 22:42 Ondrej Zajicek
0 siblings, 0 replies; only message in thread
From: Ondrej Zajicek @ 2008-02-13 22:42 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: Linux Fbdev development list
After resume from STR, image is shifted by 8 pixels to the left.
This patch fixes it.
Patch is against 2.6.24.2
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
diff -uprN -X linux-2.6.24.2.old/Documentation/dontdiff linux-2.6.24.2.old/drivers/video/vt8623fb.c linux-2.6.24.2.new/drivers/video/vt8623fb.c
--- linux-2.6.24.2.old/drivers/video/vt8623fb.c 2008-02-11 06:51:11.000000000 +0100
+++ linux-2.6.24.2.new/drivers/video/vt8623fb.c 2008-02-11 11:08:51.000000000 +0100
@@ -434,6 +434,10 @@ static int vt8623fb_set_par(struct fb_in
svga_wcrt_multi(vt8623_offset_regs, offset_value);
svga_wseq_multi(vt8623_fetch_count_regs, fetch_value);
+ /* Clear H/V Skew */
+ svga_wcrt_mask(0x03, 0x00, 0x60);
+ svga_wcrt_mask(0x05, 0x00, 0x60);
+
if (info->var.vmode & FB_VMODE_DOUBLE)
svga_wcrt_mask(0x09, 0x80, 0x80);
else
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org, jabber: santiago@njs.netlab.cz)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-13 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 22:42 [PATCH] vt8623fb: beter resume from STR Ondrej Zajicek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.