Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-07-13 Thread Lars-Peter Clausen
On 07/13/2015 11:02 AM, Hans Verkuil wrote: +static int adv76xx_subscribe_event(struct v4l2_subdev *sd, + struct v4l2_fh *fh, + struct v4l2_event_subscription *sub) +{ + switch (sub-type) { + case

Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-07-13 Thread Hans Verkuil
On 06/24/2015 06:50 PM, Lars-Peter Clausen wrote: Use the new v4l2_subdev_notify_event() helper function to deliver the resolution change event to userspace via the v4l2 subdev event queue as well as to the bridge driver using the callback notify mechanism. This allows userspace applications

Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-06-25 Thread Lars-Peter Clausen
On 06/25/2015 12:21 PM, Sakari Ailus wrote: Hi Lars-Peter, On Wed, Jun 24, 2015 at 06:50:30PM +0200, Lars-Peter Clausen wrote: Use the new v4l2_subdev_notify_event() helper function to deliver the resolution change event to userspace via the v4l2 subdev event queue as well as to the bridge

Re: [PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-06-25 Thread Sakari Ailus
Hi Lars-Peter, On Wed, Jun 24, 2015 at 06:50:30PM +0200, Lars-Peter Clausen wrote: Use the new v4l2_subdev_notify_event() helper function to deliver the resolution change event to userspace via the v4l2 subdev event queue as well as to the bridge driver using the callback notify mechanism.

[PATCH 4/5] [media] adv7604: Deliver resolution change events to userspace

2015-06-24 Thread Lars-Peter Clausen
Use the new v4l2_subdev_notify_event() helper function to deliver the resolution change event to userspace via the v4l2 subdev event queue as well as to the bridge driver using the callback notify mechanism. This allows userspace applications to react to changes in resolution. This is useful and