1
0
Fork 0

Switch to zero frame after each pan to avoid pushing same frame multiple times unintentionally.

pull/10/head
Thomas Ingebretsen 2019-08-01 16:32:40 +02:00 committed by Steinar Bakkemo
parent 3f72117bf5
commit 85ff106cfb
1 changed files with 6 additions and 0 deletions

View File

@ -1144,6 +1144,12 @@ static int mxsfb_pan_display(struct fb_var_screeninfo *var,
host->base + LCDC_CTRL1 + REG_SET);
ret = wait_for_completion_timeout(&host->flip_complete, HZ / 2);
/* Next frame will be the zero frame (last frame in buffer) by default. */
offset = fb_info->fix.line_length * (var->yres_virtual - var->yres);
writel(fb_info->fix.smem_start + offset,
host->base + host->devdata->next_buf);
if (!ret) {
dev_err(fb_info->device,
"mxs wait for pan flip timeout\n");