Skip to contentSkip to conversation

v4l: Event documentation fixes

PATCH Superseded Sakari Ailus 2 participants 6 messages Aug 6, 2014 – Aug 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l: Event documentation fixes

Constify event type constants and correct motion detection event number (it's 6, not 5).

---
 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +4 -3
index cb77325..ce7e700 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event <constant>V4L2_EVENT_FRAME_SYNC
+	    </constant>.</entry>
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
index 9f60956..d7c9365 100644
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 26 lines · Sakari Ailus

Constify event type constants and correct motion detection event number (it's 6, not 5).

---
 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +1 -2
index cb77325..ce7e700 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.

Documentation/DocBook/media/v4l/vidioc-dqevent.xml line 94

Quoted 10 lines
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +3 -1
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event <constant>V4L2_EVENT_FRAME_SYNC
+	    </constant>.</entry>

Keep </constant> next to V4L2_EVENT_FRAME_SYNC otherwise you will end up with "V4L2_EVENT_FRAME_SYNC ." in the html output.

Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml line 179

Quoted 13 lines
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +0 -0
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
index 9f60956..d7c9365 100644
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>

Oops! My mistake.

Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml line 182

Quoted 4 lines
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +0 -0
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>

Regards,

Hans

#2 lore raw

PATCH v2 1/1 v4l: Event documentation fixes

Constify event type constants and correct motion detection event number (it's 6, not 5).

---
Thanks for the review, Hans!

Since v1:

- No line breaks between <constant> and </constant>. No other changes.

 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +4 -3
index cb77325..b036f89 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event
+	    <constant>V4L2_EVENT_FRAME_SYNC</constant>.</entry>
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
index 9f60956..d7c9365 100644
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>
Signature · 1 line
1.8.3.2
Acked-by on v2 1/1
#3 lore raw
Quoted 4 lines · Sakari Ailus

Constify event type constants and correct motion detection event number (it's 6, not 5).

Regards,

Hans

Quoted 55 lines

---
Thanks for the review, Hans!

Since v1:

- No line breaks between <constant> and </constant>. No other changes.

 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +4 -3
index cb77325..b036f89 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event
+	    <constant>V4L2_EVENT_FRAME_SYNC</constant>.</entry>
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
index 9f60956..d7c9365 100644
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>
Acked-by on v2 1/1
#4 lore raw
In reply to Sakari Ailus
Quoted 4 lines · Sakari Ailus

Constify event type constants and correct motion detection event number (it's 6, not 5).

Quoted 55 lines

---
Thanks for the review, Hans!

Since v1:

- No line breaks between <constant> and </constant>. No other changes.

 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +4 -3
index cb77325..b036f89 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event
+	    <constant>V4L2_EVENT_FRAME_SYNC</constant>.</entry>
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
index 9f60956..d7c9365 100644
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>
#5 lore raw
Quoted 7 lines · Hans Verkuil
Quoted 4 lines · Sakari Ailus

Constify event type constants and correct motion detection event number (it's 6, not 5).

Hmm, I did that already. Oh well, you can never have too many acks :-)

Quoted 62 lines
Quoted 48 lines

---
Thanks for the review, Hans!

Since v1:

- No line breaks between <constant> and </constant>. No other changes.

 Documentation/DocBook/media/v4l/vidioc-dqevent.xml         | 7 ++++---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/DocBook/media/v4l/vidioc-dqevent.xml +4 -3
index cb77325..b036f89 100644
@@ -76,21 +76,22 @@
 	    <entry></entry>
 	    <entry>&v4l2-event-vsync;</entry>
             <entry><structfield>vsync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_VSYNC.
+	    <entry>Event data for event <constant>V4L2_EVENT_VSYNC</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-ctrl;</entry>
             <entry><structfield>ctrl</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_CTRL.
+	    <entry>Event data for event <constant>V4L2_EVENT_CTRL</constant>.
             </entry>
 	  </row>
 	  <row>
 	    <entry></entry>
 	    <entry>&v4l2-event-frame-sync;</entry>
             <entry><structfield>frame_sync</structfield></entry>
-	    <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry>
+	    <entry>Event data for event
+	    <constant>V4L2_EVENT_FRAME_SYNC</constant>.</entry>
 	  </row>
 	  <row>
 	    <entry></entry>
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +0 -0
index 9f60956..d7c9365 100644

Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml line 182

Quoted 8 lines
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +1 -1
@@ -176,7 +176,7 @@
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_EVENT_MOTION_DET</constant></entry>
-	    <entry>5</entry>
+	    <entry>6</entry>
 	    <entry>
 	      <para>Triggered whenever the motion detection state for one or more of the regions
 	      changes. This event has a &v4l2-event-motion-det; associated with it.</para>

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html