Skip to content

Commit 09362ec

Browse files
lyakhMauro Carvalho Chehab
authored andcommitted
[media] V4L: docbook documentation for struct v4l2_create_buffers
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 0934d94 commit 09362ec

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

‎drivers/media/video/v4l2-compat-ioctl32.c‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,20 @@ struct v4l2_format32 {
159159
} fmt;
160160
};
161161

162+
/**
163+
* struct v4l2_create_buffers32 - VIDIOC_CREATE_BUFS32 argument
164+
* @index: on return, index of the first created buffer
165+
* @count: entry: number of requested buffers,
166+
* return: number of created buffers
167+
* @memory: buffer memory type
168+
* @format: frame format, for which buffers are requested
169+
* @reserved: future extensions
170+
*/
162171
struct v4l2_create_buffers32 {
163-
__u32 index; /* output: buffers index...index + count - 1 have been created */
172+
__u32 index;
164173
__u32 count;
165174
enum v4l2_memory memory;
166-
struct v4l2_format32 format; /* filled in by the user, plane sizes calculated by the driver */
175+
struct v4l2_format32 format;
167176
__u32 reserved[8];
168177
};
169178

‎include/linux/videodev2.h‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,12 +2142,20 @@ struct v4l2_dbg_chip_ident {
21422142
__u32 revision; /* chip revision, chip specific */
21432143
} __attribute__ ((packed));
21442144

2145-
/* VIDIOC_CREATE_BUFS */
2145+
/**
2146+
* struct v4l2_create_buffers - VIDIOC_CREATE_BUFS argument
2147+
* @index: on return, index of the first created buffer
2148+
* @count: entry: number of requested buffers,
2149+
* return: number of created buffers
2150+
* @memory: buffer memory type
2151+
* @format: frame format, for which buffers are requested
2152+
* @reserved: future extensions
2153+
*/
21462154
struct v4l2_create_buffers {
2147-
__u32 index; /* output: buffers index...index + count - 1 have been created */
2155+
__u32 index;
21482156
__u32 count;
21492157
enum v4l2_memory memory;
2150-
struct v4l2_format format; /* "type" is used always, the rest if sizeimage == 0 */
2158+
struct v4l2_format format;
21512159
__u32 reserved[8];
21522160
};
21532161

0 commit comments

Comments
 (0)