From e92b0a915246ee89b7e765a2cec8c8e595584249 Mon Sep 17 00:00:00 2001 From: zyc Date: Tue, 15 Jan 2013 11:34:26 +0800 Subject: [PATCH] camera:fix 2928 digitzoom erro of selected zone. --- drivers/media/video/rk30_camera_oneframe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/rk30_camera_oneframe.c b/drivers/media/video/rk30_camera_oneframe.c index de2385d279cb..d62c13f4ab40 100755 --- a/drivers/media/video/rk30_camera_oneframe.c +++ b/drivers/media/video/rk30_camera_oneframe.c @@ -1043,8 +1043,8 @@ static int rk_camera_scale_crop_arm(struct work_struct *work) cropW = pcdev->zoominfo.a.c.width; cropH = pcdev->zoominfo.a.c.height; - psY = psY + (srcW-cropW); - psUV = psUV + (srcW-cropW); + psY = psY + (srcW-cropW)/2; + psUV = psUV + (srcW-cropW)/2; vb_info = pcdev->vbinfo+vb->i; dst_phy = vb_info->phy_addr; -- 2.34.1