]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Fix frame drop in bulk video stream
authorJayakrishnan <jayakrishnan.memana@maxim-ic.com>
Fri, 9 Mar 2012 13:10:49 +0000 (10:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 18:26:46 +0000 (15:26 -0300)
commit02284b19065e460034d1ec229cdd40c7778b6bca
tree51fc8e2e321964e9fc03d269fd61b2e980ab27b3
parentd320b1ed3fa167f88ac3a19fcd88f799b5622a23
[media] uvcvideo: Fix frame drop in bulk video stream

When video endpoint is configured as bulk, a ZLP is sent after every
video frames with size as multiple of 512 bytes. This is done so that
host can detect end of transfer and pass data for processing.
Still, frames that are multiple of 16K in size gets dropped. The ZLP
sent by camera is ignored by uvc_video_decode_bulk(). The makes sure
that the ZLP is not part of a video frame before ignoring it. If ZLP
follows a video frame, then it triggers completion callback.

[mchehab@redhat.com: Fix a small CodingStyle issue]
Signed-off-by: Jayakrishnan Memana <jayakrishnan.memana@maxim-ic.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c