Date:2011-09-17 18:38:01 (7 years 2 months ago)
Author:Maarten ter Huurne
Commit:a534623d924db718ebf0a18a685d09ce6c009c37
Message:MIPS: JZ4740: A320: Fixed double buffering when TV-out is active.

Update frame start address in fb_pan_display handler.
Files: drivers/video/jz4740_slcd_fb.c (2 diffs)

Change Details

drivers/video/jz4740_slcd_fb.c
472472
473473static int jzfb_blank(int blank_mode, struct fb_info *info)
474474{
475    struct jzfb* jzfb = info->par;
475    struct jzfb *jzfb = info->par;
476476    int ret = 0;
477477    int new_enabled = (blank_mode == FB_BLANK_UNBLANK);
478478
...... 
498498
499499static int jzfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
500500{
501    struct jzfb *jzfb = info->par;
502
501503    info->var.yoffset = var->yoffset;
504    /* update frame start address for TV-out mode */
505    jzfb->framedesc->addr = jzfb->vidmem_phys
506                          + info->fix.line_length * var->yoffset;
507
502508    return 0;
503509}
504510

Archive Download the corresponding diff file



interactive