]> bbs.cooldavid.org Git - net-next-2.6.git/commit
V4L/DVB: uvcvideo: Support menu controls in the control mapping API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 18 Feb 2010 19:38:52 +0000 (16:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:33:39 +0000 (15:33 -0300)
commit561474c2d2a1e212ea186e0b65cc69fb330e7bd5
treeff01d7c41345625982ec594fe80b85dfb73b0942
parent3653639e5daf2ac5f4763e4f1b6cb57538184be9
V4L/DVB: uvcvideo: Support menu controls in the control mapping API

The UVCIOC_CTRL_MAP ioctl doesn't support menu entries for menu
controls. As the uvc_xu_control_mapping structure has no reserved
fields, this can't be fixed while keeping ABI compatibility.

Modify the UVCIOC_CTRL_MAP ioctl to add menu entries support, and define
UVCIOC_CTRL_MAP_OLD that supports the old ABI without any ability to add
menu controls.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c
drivers/media/video/uvc/uvc_driver.c
drivers/media/video/uvc/uvc_v4l2.c
drivers/media/video/uvc/uvcvideo.h