public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mikhail Domrachev <mihail.domrychev@comexp.ru>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Aleksey Igonin <aleksey.igonin@comexp.ru>
Subject: [PATCH v2 2/3] videodev2: add new event type V4L2_EVENT_SIGNALCHANGED
Date: Mon, 31 Mar 2014 15:14:03 +0400	[thread overview]
Message-ID: <1396264443.4328.10.camel@localhost.localdomain> (raw)

Applications subscribed for this event can be notified about
changes of TV standard.

Signed-off-by: Mikhail Domrachev <mihail.domrychev@comexp.ru>
---
 Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml | 7 +++++++
 include/uapi/linux/videodev2.h                             | 1 +
 2 files changed, 8 insertions(+)

diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
index 5c70b61..dc7cb9f 100644
--- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
@@ -155,6 +155,13 @@
 	    </entry>
 	  </row>
 	  <row>
+	    <entry><constant>V4L2_EVENT_SIGNALCHANGED</constant></entry>
+	    <entry>5</entry>
+	    <entry>This event is triggered when TV standard of the input signal is changed.
+		   New detected standard of type &v4l2-std-id; placed to u.data[] field of &v4l2-event;
+	    </entry>
+	  </row>
+	  <row>
 	    <entry><constant>V4L2_EVENT_PRIVATE_START</constant></entry>
 	    <entry>0x08000000</entry>
 	    <entry>Base event number for driver-private events.</entry>
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index e35ad6c..45094f2 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1765,6 +1765,7 @@ struct v4l2_streamparm {
 #define V4L2_EVENT_EOS				2
 #define V4L2_EVENT_CTRL				3
 #define V4L2_EVENT_FRAME_SYNC			4
+#define V4L2_EVENT_SIGNALCHANGED		5
 #define V4L2_EVENT_PRIVATE_START		0x08000000
 
 /* Payload for V4L2_EVENT_VSYNC */
-- 
1.8.5.3




                 reply	other threads:[~2014-03-31 13:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1396264443.4328.10.camel@localhost.localdomain \
    --to=mihail.domrychev@comexp.ru \
    --cc=aleksey.igonin@comexp.ru \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox