media: uvcvideo: Announce deprecation intentions for UVCIOC_CTRL_MAP

JIRA: https://redhat.atlassian.net/browse/RHEL-162129

commit 85355f7268af2e1cdb771842de59ac6be42863d5
Author: Ricardo Ribalda <ribalda@chromium.org>
Date: Mon, 16 Mar 2026 13:34:45 +0000

  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>

Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
Kate Hsuan
2026-08-07 16:13:39 +08:00
parent c88f3b5a06
commit 42b90d62c1
2 changed files with 6 additions and 0 deletions
@@ -109,6 +109,8 @@ IOCTL reference
UVCIOC_CTRL_MAP - Map a UVC control to a V4L2 control 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 Argument: struct uvc_xu_control_mapping
**Description**: **Description**:
+4
View File
@@ -1049,6 +1049,8 @@ static long uvc_ioctl_default(struct file *file, void *priv, bool valid_prio,
switch (cmd) { switch (cmd) {
/* Dynamic controls. */ /* Dynamic controls. */
case UVCIOC_CTRL_MAP: 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); return uvc_ioctl_xu_ctrl_map(chain, arg);
case UVCIOC_CTRL_QUERY: case UVCIOC_CTRL_QUERY:
@@ -1163,6 +1165,8 @@ static long uvc_v4l2_compat_ioctl32(struct file *file,
switch (cmd) { switch (cmd) {
case UVCIOC_CTRL_MAP32: 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); ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up);
if (ret) if (ret)
break; break;