Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] DocBook media: v4l2_sdr_format buffersize field

New field buffersize was added to inform application maximum
buffer size used. Add it to documentation too.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Antti Palosaari and committed by
Mauro Carvalho Chehab
fea9c63a d57fe404

+14 -4
+14 -4
Documentation/DocBook/media/v4l/dev-sdr.xml
··· 72 72 <constant>V4L2_BUF_TYPE_SDR_CAPTURE</constant> and use the &v4l2-sdr-format; 73 73 <structfield>sdr</structfield> member of the <structfield>fmt</structfield> 74 74 union as needed per the desired operation. 75 - Currently only the <structfield>pixelformat</structfield> field of 76 - &v4l2-sdr-format; is used. The content of that field is the V4L2 fourcc code 77 - of the data format. 75 + Currently there is two fields, <structfield>pixelformat</structfield> and 76 + <structfield>buffersize</structfield>, of struct &v4l2-sdr-format; which are 77 + used. Content of the <structfield>pixelformat</structfield> is V4L2 FourCC 78 + code of the data format. The <structfield>buffersize</structfield> field is 79 + maximum buffer size in bytes required for data transfer, set by the driver in 80 + order to inform application. 78 81 </para> 79 82 80 83 <table pgwide="1" frame="none" id="v4l2-sdr-format"> ··· 95 92 </entry> 96 93 </row> 97 94 <row> 95 + <entry>__u32</entry> 96 + <entry><structfield>buffersize</structfield></entry> 97 + <entry> 98 + Maximum size in bytes required for data. Value is set by the driver. 99 + </entry> 100 + </row> 101 + <row> 98 102 <entry>__u8</entry> 99 - <entry><structfield>reserved[28]</structfield></entry> 103 + <entry><structfield>reserved[24]</structfield></entry> 100 104 <entry>This array is reserved for future extensions. 101 105 Drivers and applications must set it to zero.</entry> 102 106 </row>