From 863a24bb5da2268d7705ec57fb2d16dfafa2e02c Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Tue, 5 Jun 2018 12:31:25 +0300 Subject: sys/linux: id field fix in v4l2_event_subscription The id field in the v4l2_event_subscription structure currently described as: id len[type, int32]. But all the documentation states is: "id - ID of the event source. If there is no ID associated with the event source, then set this to 0. Whether or not an event needs an ID depends on the event type." So, the documentation clearly states that: 1. id - is the source of an event 2. type - is the type of an event 3. for some types of events there is no source and id can be 0 According to this 'id int32' is more accurate description of the field. --- sys/linux/video4linux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/video4linux.txt') diff --git a/sys/linux/video4linux.txt b/sys/linux/video4linux.txt index 0e932d027..f527a7ee8 100644 --- a/sys/linux/video4linux.txt +++ b/sys/linux/video4linux.txt @@ -676,7 +676,7 @@ v4l2_event_motion_det { v4l2_event_subscription { type flags[v4l2_event_type, int32] - id len[type, int32] + id int32 flags flags[v4l2_event_subscription_flags, int32] reserved array[const[0, int32], 5] } -- cgit mrf-deployment