[media] omap3isp: video: Set the buffer bytesused field at completion time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 3 Jan 2014 01:15:07 +0000 (22:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 14:12:30 +0000 (11:12 -0300)
commit2a6dc96b973c8d1defd39bf21e89e6907b1c72f1
tree4fa432d3ca328c314c0211cd8975ebd0e1b81717
parentc60e153d3407b5a94b72ebfcf274fae98979eed9
[media] omap3isp: video: Set the buffer bytesused field at completion time

The v4l buffer bytesused field is a value that will be returned to
userspace when the buffer gets dequeued. As such it doesn't need to be
set early at buffer queue time. Move the assignment to buffer completion
in the omap3isp_video_buffer_next() function to prepare for the video
buffers queue refactoring.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/omap3isp/ispvideo.c