The reserved2 field should be keeped,
because this is used for extension interface
between user space and kernel space.
Change-Id: I9bb33d4ffa599f48b97c1604848ccdc4d0095310
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
b->timestamp = ns_to_timeval(vb->timestamp);
b->timecode = vbuf->timecode;
b->sequence = vbuf->sequence;
- b->reserved2 = 0;
+ b->reserved2 = vbuf->reserved2;
b->reserved = 0;
if (q->is_multiplanar) {
}
vb->timestamp = 0;
vbuf->sequence = 0;
+ vbuf->reserved2 = b->reserved2;
if (V4L2_TYPE_IS_MULTIPLANAR(b->type)) {
if (b->memory == VB2_MEMORY_USERPTR) {
* @field: enum v4l2_field; field order of the image in the buffer
* @timecode: frame timecode
* @sequence: sequence count of this frame
+ * @reserved2: reserved field for future extensions
*
* Should contain enough information to be able to cover all the fields
* of struct v4l2_buffer at videodev2.h
__u32 field;
struct v4l2_timecode timecode;
__u32 sequence;
+ __u32 reserved2;
};
/*