camera:fix 2928 digitzoom erro of selected zone.
authorzyc <zyc@rock-chips.com>
Tue, 15 Jan 2013 03:34:26 +0000 (11:34 +0800)
committerzyc <zyc@rock-chips.com>
Tue, 15 Jan 2013 03:34:26 +0000 (11:34 +0800)
drivers/media/video/rk30_camera_oneframe.c

index de2385d279cb735e61d60903f75a867b21efc525..d62c13f4ab4078253155d661055b1e19979d031a 100755 (executable)
@@ -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;