Skip to content

Commit e1ad270

Browse files
ribaldahverkuil
authored andcommitted
media: Documentation: Add note about UVCH length field
The documentation currently describes the UVC length field as the "length of the rest of the block", which can be misleading. The driver limits the data copied to a maximum of 12 bytes. This change adds a clarifying sentence to the documentation to make this restriction explicit. Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent bda2859 commit e1ad270

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/userspace-api/media/v4l/metafmt-uvc.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ Each individual block contains the following fields:
4444
them
4545
* - :cspan:`1` *The rest is an exact copy of the UVC payload header:*
4646
* - __u8 length;
47-
- length of the rest of the block, including this field
47+
- length of the rest of the block, including this field. Please note that
48+
regardless of this value, for V4L2_META_FMT_UVC the kernel will never
49+
copy more than 2-12 bytes.
4850
* - __u8 flags;
4951
- Flags, indicating presence of other standard UVC fields
5052
* - __u8 buf[];

0 commit comments

Comments
 (0)