diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2008-12-06 16:25:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 09:38:33 -0200 |
commit | 0fbd8ee6de6ac3d0b93c96da848c5bc3ccc1dc83 (patch) | |
tree | c0f3cba859ee51d84c9cafcc38f2a998f9a070fc /drivers/media/video/uvc/uvc_video.c | |
parent | af009cf635141858642864a26602e379e97bf7d6 (diff) | |
download | talos-op-linux-0fbd8ee6de6ac3d0b93c96da848c5bc3ccc1dc83.tar.gz talos-op-linux-0fbd8ee6de6ac3d0b93c96da848c5bc3ccc1dc83.zip |
V4L/DVB (9809): uvcvideo: Add nodrop module parameter to turn incomplete frame drop off.
The driver drops incomplete uncompressed video frames to avoid confusing
userspace with corrupt data. Add a nodrop module parameter to turn that
behaviour off and make all frames available to userspace.
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvc_video.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c index 186ef9fad80b..b7160b15e780 100644 --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c @@ -1003,7 +1003,8 @@ int uvc_video_enable(struct uvc_video_device *video, int enable) return 0; } - if (video->streaming->cur_format->flags & UVC_FMT_FLAG_COMPRESSED) + if ((video->streaming->cur_format->flags & UVC_FMT_FLAG_COMPRESSED) || + uvc_no_drop_param) video->queue.flags &= ~UVC_QUEUE_DROP_INCOMPLETE; else video->queue.flags |= UVC_QUEUE_DROP_INCOMPLETE; |