[media] uvcvideo: Remove sysadmin requirements for UVCIOC_CTRL_MAP
authorMartin Rubli <martin_rubli@logitech.com>
Wed, 8 Sep 2010 07:15:23 +0000 (04:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:22 +0000 (01:18 -0200)
commit8fb91b33c6bfa3ac5e4ad76920b7bcd7bdbbb6d0
treec7e33ca829580a6a8d8f8808c4b860cf12a2cbca
parentba2fa99668bb9bf03757a020f15bba295d5c0a3e
[media] uvcvideo: Remove sysadmin requirements for UVCIOC_CTRL_MAP

This patch removes the sysadmin requirements for UVCIOC_CTRL_MAP (and the stub
implementation of UVCIOC_CTRL_ADD). This requirement no longer makes sense with
the new XU control access mechanisms since XU controls can be accessed without
adding control mappings first.

A maximum number (currently 1024) of control mappings per device is enforced to
avoid excess memory consumption caused by careless user space applications.

Signed-off-by: Martin Rubli <martin_rubli@logitech.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