mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
drm/rockchip: vop: fix lb mode config error
when video width is bigger than 3840 the linebuffer mode should be LB_YUV_3840X5. Change-Id: I27dce8a6fcb7f6f5b8d196671a515c68f188c101 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -640,9 +640,9 @@ static inline int scl_vop_cal_lb_mode(int width, bool is_yuv)
|
||||
{
|
||||
int lb_mode;
|
||||
|
||||
if (width > 2560)
|
||||
if (!is_yuv && (width > 2560))
|
||||
lb_mode = LB_RGB_3840X2;
|
||||
else if (width > 1920)
|
||||
else if (!is_yuv && (width > 1920))
|
||||
lb_mode = LB_RGB_2560X4;
|
||||
else if (!is_yuv)
|
||||
lb_mode = LB_RGB_1920X5;
|
||||
|
||||
Reference in New Issue
Block a user