summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Patel2015-02-23 15:55:01 +0530
committerSrikant Patnaik2015-02-23 16:34:39 +0530
commitd3d561e049880d532ca3b38af90dc65d74cc7c54 (patch)
treeced0b8915af02a8e06c0fabbddb44a791d505885
parent46874c8715b20b5d5dbea9c1e140d63feb1982e5 (diff)
downloadFOSSEE-netbook-kernel-source-d3d561e049880d532ca3b38af90dc65d74cc7c54.tar.gz
FOSSEE-netbook-kernel-source-d3d561e049880d532ca3b38af90dc65d74cc7c54.tar.bz2
FOSSEE-netbook-kernel-source-d3d561e049880d532ca3b38af90dc65d74cc7c54.zip
Fix format compatibility issue for webcam
Signed-off-by: Manish Patel <manish.patel@volansystech.com>
-rwxr-xr-xdrivers/media/video/wmt_v4l2/sensors/wmt-cmos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c b/drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c
index a6ed5e50..81b96929 100755
--- a/drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c
+++ b/drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c
@@ -332,8 +332,8 @@ struct wmt_fmt {
static struct wmt_fmt formats[] = {
{
- .name = "4:2:2, packed, YUYV",
- .fourcc = V4L2_PIX_FMT_YUYV,
+ .name = "4:2:0, packed, NV21",
+ .fourcc = V4L2_PIX_FMT_NV21,
.depth = 16,
},
};
@@ -634,6 +634,7 @@ static int cmos_cam_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b)
b->length = drv->frame_size;
b->m.offset = fb->y_addr;
b->index = fb->id;
+ b->bytesused = drv->frame_size;
EXIT_cmos_cam_dqbuf:
mutex_unlock(&info->lock);