[RFCv2 PATCH 00/11] Control Event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the second version of the patch series introducing a new event that
is triggered when a control's value or state changes.

It incorporates the comments made since version 1.

Most of these patches are relatively minor infrastructure changes. The real
work is done in patch 7.

This patch series builds on the bitmask patch series.

The main changes since version 1 are:

- The patches that add the bitmask control type are split off since these
  are needed sooner than the control events and they are indepedent of one
  another.

- Instead of having separate CTRL_CH_VALUE and CTRL_CH_STATE events, there
  is now just one V4L2_EVENT_CTRL event which has a bitmask telling what was
  changed since the last event. In addition, the event payload gives all the
  relevant control data (type, value, min, max, step, def, flags). This greatly
  simplifies the applications that need to use this as it prevents having
  to do additional calls to VIDIOC_G_CTRL or VIDIOC_QUERYCTRL.

- If you call VIDIOC_S_CTRL or VIDIOC_S_EXT_CTRLS, then the filehandle passed
  to the ioctl function will be skipped when the events for the new value
  are generated. This prevents nasty feedback loops.

- Documentation was added.

The vivi driver has been updated to support control events.

The qv4l2 application has also been updated to test control events.
You can find it here:

http://git.linuxtv.org/hverkuil/v4l-utils.git?a=shortlog;h=refs/heads/core

Please review! I'd like to get this in for 2.6.41.

Still on my TODO list (will be done as separate patch series):

- Change the way volatile controls are handled.

- Add autofoo/foo support.

- Make it possible to update control values from interrupt context. This will
  only be possible for a certain subset of controls.

- I need to figure out how to handle the case where there are two inputs, each
  with its own subdev and set of controls. Switching inputs would imply switching
  controls as well. I've tried several things, but it's all very awkward.

Regards,

	Hans

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


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux