From: Mark Yao Date: Mon, 12 Dec 2016 10:19:58 +0000 (+0800) Subject: drm/rockchip: vop: fix win ext config offset X-Git-Tag: firefly_0821_release~1081 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6615d9e4732c38a2df48d48577f3b30a085012d;p=firefly-linux-kernel-4.4.55.git drm/rockchip: vop: fix win ext config offset Use win->offset for window ext config is wrong, cause yuv color space display abnormal. Change-Id: I425c412767ad1014cff0707e549d17534fa8059b Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index b06fb556de54..5017f8ccd496 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -74,7 +74,7 @@ #define VOP_WIN_SET(x, win, name, v) \ REG_SET(x, name, win->offset, VOP_WIN_NAME(win, name), v, true) #define VOP_WIN_SET_EXT(x, win, ext, name, v) \ - REG_SET(x, name, win->offset, win->ext->name, v, true) + REG_SET(x, name, 0, win->ext->name, v, true) #define VOP_SCL_SET(x, win, name, v) \ REG_SET(x, name, win->offset, win->phy->scl->name, v, true) #define VOP_SCL_SET_EXT(x, win, name, v) \