On Mon Mar 16 13:34:45 2026 +0000, Ricardo Ribalda wrote:
> 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 <[email protected]>
> Signed-off-by: Ricardo Ribalda <[email protected]>
> Reviewed-by: Hans de Goede <[email protected]>
> Signed-off-by: Hans de Goede <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
Documentation/userspace-api/media/drivers/uvcvideo.rst | 2 ++
drivers/media/usb/uvc/uvc_v4l2.c | 4 ++++
2 files changed, 6 insertions(+)
---
diff --git a/Documentation/userspace-api/media/drivers/uvcvideo.rst
b/Documentation/userspace-api/media/drivers/uvcvideo.rst
index dbb30ad389ae..b09d2f8ba66e 100644
--- a/Documentation/userspace-api/media/drivers/uvcvideo.rst
+++ b/Documentation/userspace-api/media/drivers/uvcvideo.rst
@@ -109,6 +109,8 @@ IOCTL reference
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**:
diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c
index cda1697204ea..fa852b789193 100644
--- a/drivers/media/usb/uvc/uvc_v4l2.c
+++ b/drivers/media/usb/uvc/uvc_v4l2.c
@@ -1049,6 +1049,8 @@ static long uvc_ioctl_default(struct file *file, void
*priv, bool valid_prio,
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:
@@ -1163,6 +1165,8 @@ static long uvc_v4l2_compat_ioctl32(struct file *file,
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;
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]