v4l2: iterate controls with V4L2_CTRL_FLAG_NEXT_CTRL if possible
authorMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 3 Jun 2013 07:17:43 +0000 (09:17 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 5 Jun 2013 11:00:21 +0000 (13:00 +0200)
commit0769a78dd197145ec504f3f2f5b2d175baaac26a
tree1711460a173361aa5226ce10a2a0cbfe9012dd7f
parent0d27829a6bb0717aaf6f87697fdaa456b5926098
v4l2: iterate controls with V4L2_CTRL_FLAG_NEXT_CTRL if possible

In v2.6.18 control classes where added to the v4l2 API.
Iterating over CIDs starting with V4L2_CID_BASE will only find controls for
the first control class.
By iterating with V4L2_CTRL_FLAG_NEXT_CTRL all controls are found.

This is necessary to make controls from other control classes available in
the extra-controls property.

If V4L2_CTRL_FLAG_NEXT_CTRL is not defined at compile time or not supported
at runtime then the old mechanism for iterating is used.

https://bugzilla.gnome.org/show_bug.cgi?id=701540
sys/v4l2/v4l2_calls.c