The UVCIOC_CTRL_MAP lets userspace create a mapping for a custom
control.
This mapping is usually created by the uvcdynctrl userspace utility. We
would like to get the mappings into the driver instead.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
UVCIOC_CTRL_MAP - Map a UVC control to a V4L2 control
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+**This IOCTL is deprecated and will be eventually removed**
+
Argument: struct uvc_xu_control_mapping
**Description**:
switch (cmd) {
/* Dynamic controls. */
case UVCIOC_CTRL_MAP:
+ pr_warn_once("uvcvideo: " DEPRECATED
+ "UVCIOC_CTRL_MAP ioctl will be eventually removed.\n");
return uvc_ioctl_xu_ctrl_map(chain, arg);
case UVCIOC_CTRL_QUERY:
switch (cmd) {
case UVCIOC_CTRL_MAP32:
+ pr_warn_once("uvcvideo: " DEPRECATED
+ "UVCIOC_CTRL_MAP32 ioctl will be eventually removed.\n");
ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up);
if (ret)
break;