diff options
author | Fang Hui <b31070@freescale.com> | 2014-02-20 17:33:02 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-21 22:35:41 -0500 |
commit | a8bbe32a06a14768888e6d0e0683889b18afbd87 (patch) | |
tree | 8082244f2e7b0b5c9148277813d3b158c7f1b719 | |
parent | b9251585f11701032d8f8caed68d4c317c59b1d3 (diff) |
ENGR00300059 On 3.10.17 kernel, Camera can't preview in most resolutions
when queue buffer, just compare input size with cam->v2f.fmt.pix.sizeimage,
don't with PAGE_ALIGN(cam->v2f.fmt.pix.sizeimage).
Signed-off-by: Fang Hui <b31070@freescale.com>
-rwxr-xr-x | drivers/media/platform/mxc/capture/mxc_v4l2_capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/mxc/capture/mxc_v4l2_capture.c b/drivers/media/platform/mxc/capture/mxc_v4l2_capture.c index 0d10d281d6c8..19aedf4079b4 100755 --- a/drivers/media/platform/mxc/capture/mxc_v4l2_capture.c +++ b/drivers/media/platform/mxc/capture/mxc_v4l2_capture.c @@ -348,7 +348,7 @@ static int mxc_v4l2_prepare_bufs(cam_data *cam, struct v4l2_buffer *buf) pr_debug("In MVC:mxc_v4l2_prepare_bufs\n"); if (buf->index < 0 || buf->index >= FRAME_NUM || buf->length < - PAGE_ALIGN(cam->v2f.fmt.pix.sizeimage)) { + cam->v2f.fmt.pix.sizeimage) { pr_err("ERROR: v4l2 capture: mxc_v4l2_prepare_bufs buffers " "not allocated,index=%d, length=%d\n", buf->index, buf->length); |