Skip to contentSkip to conversation

vt8623fb: beter resume from STR

PATCH New Ondrej Zajicek 1 participant 1 message Feb 13, 2008 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vt8623fb: beter resume from STR

After resume from STR, image is shifted by 8 pixels to the left. This patch fixes it.

Patch is against 2.6.24.2

drivers/video/vt8623fb.c +4 -0
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
@@ -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
Signature · 10 lines
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: [email protected], jabber: [email protected])
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/