summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiao Yu <r65093@freescale.com>2009-12-08 15:27:26 +0800
committerJustin Waters <justin.waters@timesys.com>2010-03-25 14:01:37 -0400
commit583c06a1dc3da6e040f5891f8673b9cae280d5e8 (patch)
tree6c57a34289d65841160012ede7c3bec2079db535
parent71d591832bab64132ad4b2ccba93444f95af60ea (diff)
ENGR00119069 V4L2 capture: Do not change current crop setting for tvin.
There is one CSI crop improvement (engr117261) in v4l2 capture. But the improvement is not suitable for tvin module since the ACT_FRM_SIZE wouldn't be the same with the SENSOR_SIZE. Signed-off-by: Miao Yu <r65093@freescale.com>
-rw-r--r--drivers/media/video/mxc/capture/mxc_v4l2_capture.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
index edbd2ca606d1..9d69219b06c1 100644
--- a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
+++ b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
@@ -1135,10 +1135,12 @@ static int mxc_v4l2_s_param(cam_data *cam, struct v4l2_streamparm *parm)
/*
* Set the default current cropped resolution to be the same with
- * the cropping boundary.
+ * the cropping boundary(except for tvin module).
*/
- cam->crop_current.width = cam->crop_bounds.width;
- cam->crop_current.height = cam->crop_bounds.height;
+ if (cam->device_type != 1) {
+ cam->crop_current.width = cam->crop_bounds.width;
+ cam->crop_current.height = cam->crop_bounds.height;
+ }
/* This essentially loses the data at the left and bottom of the image
* giving a digital zoom image, if crop_current is less than the full