The patch number 14734 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Pawel Osciak  <[email protected]>
v4l: videobuf: qbuf now uses relevant v4l2_buffer fields for OUTPUT        types


According to the V4L2 specification, applications set bytesused, field and
timestamp fields of struct v4l2_buffer when the buffer is intended for
output and memory type is MMAP. This adds proper copying of those values
to videobuf_buffer so drivers can use them.

Priority: normal

Signed-off-by: Pawel Osciak <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/drivers/media/video/videobuf-core.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff -r 29c30a531ada -r 1628780514ee linux/drivers/media/video/videobuf-core.c
--- a/linux/drivers/media/video/videobuf-core.c Tue May 11 13:10:24 2010 -0300
+++ b/linux/drivers/media/video/videobuf-core.c Tue May 11 13:11:30 2010 -0300
@@ -545,6 +545,13 @@
                                   "but buffer addr is zero!\n");
                        goto done;
                }
+               if (q->type == V4L2_BUF_TYPE_VIDEO_OUTPUT
+                   || q->type == V4L2_BUF_TYPE_VBI_OUTPUT
+                   || q->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) {
+                       buf->size = b->bytesused;
+                       buf->field = b->field;
+                       buf->ts = b->timestamp;
+               }
                break;
        case V4L2_MEMORY_USERPTR:
                if (b->length < buf->bsize) {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/1628780514eeada9ce47ed97441d05662297f63e

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to