mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk3368 lcdc: in interlace mode & resolutation is p to i scale, disable vscale done and enable gt2
Signed-off-by: hjc <hjc@rock-chips.com>
This commit is contained in:
@@ -2418,7 +2418,14 @@ static int rk3368_lcdc_cal_scl_fac(struct rk_lcdc_win *win, struct rk_screen *sc
|
||||
u8 yuv_fmt = 0;
|
||||
|
||||
srcW = win->area[0].xact;
|
||||
srcH = win->area[0].yact;
|
||||
if ((screen->mode.vmode == FB_VMODE_INTERLACED) &&
|
||||
(win->area[0].yact == 2 * win->area[0].ysize)) {
|
||||
srcH = win->area[0].yact / 2;
|
||||
yrgb_vsd_bil_gt2 = 1;
|
||||
cbcr_vsd_bil_gt2 = 1;
|
||||
} else {
|
||||
srcH = win->area[0].yact;
|
||||
}
|
||||
dstW = win->area[0].xsize;
|
||||
dstH = win->area[0].ysize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user