[PATCH v4 4/5] media: uvcvideo: Do not parse bmVideoStandards

From: Ricardo Ribalda

Date: Mon Sep 28 2026 - 10:36:23 EST


bmVideoStandards is write only, so there is no need to parse it.

Remove it.

Reviewed-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>
Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
---
drivers/media/usb/uvc/uvc_driver.c | 7 -------
drivers/media/usb/uvc/uvcvideo.h | 1 -
2 files changed, 8 deletions(-)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index ca75f8d1ec46..adec9d1aa653 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -1187,13 +1187,6 @@ static int uvc_parse_standard_control(struct uvc_device *dev,
unit->processing.bmControls = (u8 *)unit + sizeof(*unit);
memcpy(unit->processing.bmControls, &buffer[8], n);

- /*
- * We are not using bmVideoStandards, so there is no need to
- * warn the user if it is missing.
- */
- if (dev->uvc_version >= 0x0110 && buflen >= (n + 10))
- unit->processing.bmVideoStandards = buffer[9+n];
-
uvc_entity_set_name(dev, unit, "Processing", buffer[8+n]);

list_add_tail(&unit->list, &dev->entities);
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index b41ce01dc21c..0b2c05f6d381 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -228,7 +228,6 @@ struct uvc_entity {
u16 wMaxMultiplier;
u8 bControlSize;
u8 *bmControls;
- u8 bmVideoStandards;
} processing;

struct {

--
2.56.0.rc1.315.gc6ed9934b7-goog