lkml.org 
[lkml]   [2006]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 06/17] [PATCH] vgacon: fix doublescan mode
    -stable review patch.  If anyone has any objections, please let us know.
    ------------------

    When doublescan mode is in use, scanlines must be doubled.

    Thanks to Jason Dravet <dravet@hotmail.com> for reporting and testing.

    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---

    drivers/video/console/vgacon.c | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    --- linux-2.6.15.y.orig/drivers/video/console/vgacon.c
    +++ linux-2.6.15.y/drivers/video/console/vgacon.c
    @@ -503,10 +503,16 @@ static int vgacon_doresize(struct vc_dat
    {
    unsigned long flags;
    unsigned int scanlines = height * c->vc_font.height;
    - u8 scanlines_lo, r7, vsync_end, mode;
    + u8 scanlines_lo, r7, vsync_end, mode, max_scan;

    spin_lock_irqsave(&vga_lock, flags);

    + outb_p(VGA_CRTC_MAX_SCAN, vga_video_port_reg);
    + max_scan = inb_p(vga_video_port_val);
    +
    + if (max_scan & 0x80)
    + scanlines <<= 1;
    +
    outb_p(VGA_CRTC_MODE, vga_video_port_reg);
    mode = inb_p(vga_video_port_val);

    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-01-13 04:21    [W:2.152 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site