This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: v4l2-ctl: add support for the frame_sync event. Author: Hans Verkuil <[email protected]> Date: Fri Oct 7 08:37:11 2011 +0200 Signed-off-by: Hans Verkuil <[email protected]> (cherry picked from commit 95512bfb5c1d05016a8d527e76e0091ab635053b) Signed-off-by: Gregor Jasny <[email protected]> utils/v4l2-ctl/v4l2-ctl.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=e362ebfe360d47b053791f00ac82f3f7a616bfc0 diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp index cb76c77..5099db5 100644 --- a/utils/v4l2-ctl/v4l2-ctl.cpp +++ b/utils/v4l2-ctl/v4l2-ctl.cpp @@ -532,7 +532,7 @@ static void usage(void) " --wait-for-event=<event>\n" " wait for an event [VIDIOC_DQEVENT]\n" " <event> is the event number or one of:\n" - " eos, vsync, ctrl=<id>\n" + " eos, vsync, ctrl=<id>, frame_sync\n" " where <id> is the name of the control\n" " --poll-for-event=<event>\n" " poll for an event [VIDIOC_DQEVENT]\n" @@ -1921,6 +1921,9 @@ static void print_event(const struct v4l2_event *ev) if (ctrl->changes & V4L2_EVENT_CTRL_CH_FLAGS) printf("\tflags: %s\n", ctrlflags2s(ctrl->flags).c_str()); break; + case V4L2_EVENT_FRAME_SYNC: + printf("frame_sync %d\n", ev->u.frame_sync.frame_sequence); + break; default: if (ev->type >= V4L2_EVENT_PRIVATE_START) printf("unknown private event (%08x)\n", ev->type); @@ -1945,6 +1948,8 @@ static __u32 parse_event(const char *e, const char **name) event = V4L2_EVENT_CTRL; *name = e + 5; } + else if (!strcmp(e, "frame_sync")) + event = V4L2_EVENT_FRAME_SYNC; if (event == 0) { fprintf(stderr, "Unknown event\n"); _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
