]> git.karo-electronics.de Git - mv-sheeva.git/commit
[media] v4l2-ctrls: Fix control enumeration for multiple subdevs with ctrl
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 22 Feb 2011 15:31:07 +0000 (12:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:04 +0000 (20:32 -0300)
commit87a0c94ce616b231f3c0bd09d7dbd39d43b0557a
tree21205358c9ea2cc7b58c9b06b16a3bb7dcf08093
parentfb8decfabdf841a199b297076ff9f890dee55e53
[media] v4l2-ctrls: Fix control enumeration for multiple subdevs with ctrl

v4l2-ctl and qv4l2 enumerate controls using V4L2_CTRL_FLAG_NEXT_CTRL,
falling back to the old method if the flag isn't supported.

The v4l2_subdev_queryctrl function will currently handle that flag, but
for the controls of the subdev only. This isn't right, it should refuse
this flag, otherwise v4l2-ctl will only see the controls of the first
subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c