[media] v4l: uvcvideo: Add support for pan/tilt speed controls
authorVincent Palatin <vpalatin@chromium.org>
Thu, 4 Sep 2014 00:47:48 +0000 (21:47 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:24:42 +0000 (20:24 -0300)
commit3ea375239ca06014b8b421ab1d73d6628d22036f
tree71dbfe6ffcf21db6ca59d6b408ba76ec4976ceae
parente3d6eb1c16ef174a8fbbdd40770f5cbace0710e4
[media] v4l: uvcvideo: Add support for pan/tilt speed controls

Map V4L2_CID_TILT_SPEED and V4L2_CID_PAN_SPEED to the standard UVC
CT_PANTILT_RELATIVE_CONTROL terminal control request.

Tested by plugging a Logitech ConferenceCam C3000e USB camera
and controlling pan/tilt from the userspace using the VIDIOC_S_CTRL ioctl.
Verified that it can pan and tilt at the same time in both directions.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_ctrl.c