[media] Fix VIDIOC_TRY_EXT_CTRLS regression
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 18 Jul 2012 12:34:59 +0000 (09:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 14:55:24 +0000 (11:55 -0300)
commit9bc31633c20ca6a49071f2162c232ae556151cc2
tree67f94474b041b991039b2092057b390fb9e2fa98
parent931efdf58bd83af8d0578a6cc53421675daf6d41
[media] Fix VIDIOC_TRY_EXT_CTRLS regression

Fixes an omission in the new v4l2_ioctls table: VIDIOC_TRY_EXT_CTRLS
must get the INFO_FL_CTRL flag, just like all the other control
related ioctls, otherwise the ioctl core won't know it also has
to check whether v4l2_fh->ctrl_handler is non-zero before it can
decide that this ioctl is not implemented.

Caught by v4l2-compliance while I was testing the mem2mem_testdev driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c