diff options
author | Manish Patel | 2015-02-23 15:55:01 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-23 16:34:39 +0530 |
commit | d3d561e049880d532ca3b38af90dc65d74cc7c54 (patch) | |
tree | ced0b8915af02a8e06c0fabbddb44a791d505885 /drivers/media/video | |
parent | 46874c8715b20b5d5dbea9c1e140d63feb1982e5 (diff) | |
download | FOSSEE-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>
Diffstat (limited to 'drivers/media/video')
-rwxr-xr-x | drivers/media/video/wmt_v4l2/sensors/wmt-cmos.c | 5 |
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); |