]> git.baikalelectronics.ru Git - kernel.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)
commit5e0a3f204a22f27d795a3ee5e6aa51973e262332
treeff01d7c41345625982ec594fe80b85dfb73b0942
parente0f6f63d3de8aa9ea91b0de1565f82fd78faf052
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