From d3d561e049880d532ca3b38af90dc65d74cc7c54 Mon Sep 17 00:00:00 2001 From: Manish Patel Date: Mon, 23 Feb 2015 15:55:01 +0530 Subject: Fix format compatibility issue for webcam Signed-off-by: Manish Patel --- drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c | 5 +++-- 1 file 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); -- cgit