Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-06-05 Thread Sakari Ailus
Hi Hans, On Sat, May 28, 2011 at 04:58:20PM +0200, Hans Verkuil wrote: On Saturday, May 28, 2011 12:34:21 Sakari Ailus wrote: Hi Hans, On Wed, May 25, 2011 at 03:33:51PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Whenever a control changes value or

Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-06-01 Thread Sakari Ailus
On Sat, May 28, 2011 at 05:08:30PM +0200, Hans Verkuil wrote: On Saturday, May 28, 2011 12:48:45 Sakari Ailus wrote: [clip] Do we really need type and default_value in the event? They are static, and on the other hand, the type should be already defined by the control so that's static, as

Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-05-28 Thread Sakari Ailus
Hi Hans, On Wed, May 25, 2011 at 03:33:51PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Whenever a control changes value or state an event is sent to anyone that subscribed to it. This functionality is useful for control panels but also for applications that need

Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-05-28 Thread Sakari Ailus
Hi Hans, On Wed, May 25, 2011 at 03:33:51PM +0200, Hans Verkuil wrote: @@ -1800,21 +1801,45 @@ struct v4l2_event_vsync { __u8 field; } __attribute__ ((packed)); +/* Payload for V4L2_EVENT_CTRL */ +#define V4L2_EVENT_CTRL_CH_VALUE (1 0) +#define

Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-05-28 Thread Hans Verkuil
On Saturday, May 28, 2011 12:34:21 Sakari Ailus wrote: Hi Hans, On Wed, May 25, 2011 at 03:33:51PM +0200, Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Whenever a control changes value or state an event is sent to anyone that subscribed to it. This functionality

Re: [RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-05-28 Thread Hans Verkuil
On Saturday, May 28, 2011 12:48:45 Sakari Ailus wrote: Hi Hans, On Wed, May 25, 2011 at 03:33:51PM +0200, Hans Verkuil wrote: @@ -1800,21 +1801,45 @@ struct v4l2_event_vsync { __u8 field; } __attribute__ ((packed)); +/* Payload for V4L2_EVENT_CTRL */ +#define

[RFCv2 PATCH 07/11] v4l2-ctrls: add control events.

2011-05-25 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Whenever a control changes value or state an event is sent to anyone that subscribed to it. This functionality is useful for control panels but also for applications that need to wait for (usually status) controls to change value. Signed-off-by: Hans