linux/drivers/media
Ricardo Ribalda 2d6231d5ce media: uvcvideo: Handle uvc menu translation inside uvc_get_le_value
[ Upstream commit 9109a0b4cb ]

map->get() gets a value from an uvc_control in "UVC format" and converts
it to a value that can be consumed by v4l2.

Instead of using a special get function for V4L2_CTRL_TYPE_MENU, we
were converting from uvc_get_le_value in two different places.

Move the conversion to uvc_get_le_value().

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Yunke Cao <yunkec@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-4-5900a9fed613@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:33 +02:00
..
cec media: pulse8-cec: fix data timestamp at pulse8_setup() 2024-10-18 10:43:03 +02:00
common media: siano: Fix error handling in smsdvb_module_init() 2025-04-20 10:15:33 +02:00
dvb-core media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set 2024-11-06 22:32:52 +01:00
dvb-frontends objtool, media: dib8000: Prevent divide-by-zero in dib8000_set_dds() 2025-04-10 14:39:26 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: imx335: Set vblank immediately 2025-05-29 11:02:31 +02:00
mc [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
mmc media: mmc: siano: simplify module initialization 2024-04-08 13:48:19 +02:00
pci media: intel/ipu6: set the dev_parent of video device to pdev 2025-04-20 10:15:33 +02:00
platform media: c8sectpfe: Call of_node_put(i2c_bus) only once in c8sectpfe_probe() 2025-05-29 11:02:28 +02:00
radio media: wl128x: Fix atomicity violation in fmc_send_cmd() 2024-12-05 14:02:56 +01:00
rc media: streamzap: prevent processing IR data on URB failure 2025-04-20 10:15:35 +02:00
spi media: gs1662: remove unused struct 'gs_reg_fmt_custom' 2024-05-31 13:51:16 +02:00
test-drivers media: visl: Fix ERANGE error when setting enum controls 2025-04-20 10:15:35 +02:00
tuners move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
usb media: uvcvideo: Handle uvc menu translation inside uvc_get_le_value 2025-05-29 11:02:33 +02:00
v4l2-core media: v4l2-dv-timings: prevent possible overflow in v4l2_detect_gtf() 2025-04-20 10:15:36 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00