1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/usb/uvc
Laurent Pinchart 6d00f4ec12 media: uvcvideo: Fix menu count handling for userspace XU mappings
When commit 716c330433 ("media: uvcvideo: Use standard names for
menus") reworked the handling of menu controls, it inadvertently
replaced a GENMASK(n - 1, 0) with a BIT_MASK(n). The latter isn't
equivalent to the former, which broke adding XU mappings from userspace.
Fix it.

Link: https://lore.kernel.org/linux-media/468a36ec-c3ac-cb47-e12f-5906239ae3cd@spahan.ch/

Cc: stable@vger.kernel.org
Reported-by: Poncho <poncho@spahan.ch>
Fixes: 716c330433 ("media: uvcvideo: Use standard names for menus")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-07-28 10:20:10 +02:00
..
Kconfig usb: uvc: move uvc_fmts and uvc_format_by_guid to own compile unit 2023-01-31 09:40:42 +01:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c usb: uvc: move media/v4l2-uvc.h to usb/uvc.h 2023-01-31 09:40:42 +01:00
uvc_debugfs.c media: usb: uvc: no need to check return value of debugfs_create functions 2020-09-26 10:15:17 +02:00
uvc_driver.c media: uvcvideo: Constify descriptor buffers 2023-06-09 14:11:57 +01:00
uvc_entity.c media: uvcvideo: Handle cameras with invalid descriptors 2023-01-15 23:45:08 +02:00
uvc_isight.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvc_metadata.c media: uvcvideo: Use dev->name for querycap() 2021-09-30 10:07:47 +02:00
uvc_queue.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvc_status.c media: uvcvideo: Fix race condition with usb_kill_urb 2023-01-15 23:45:15 +02:00
uvc_v4l2.c media: uvcvideo: Fix menu count handling for userspace XU mappings 2023-07-28 10:20:10 +02:00
uvc_video.c media: uvcvideo: Constify formats, frames and intervals 2023-06-09 14:11:55 +01:00
uvcvideo.h media: uvcvideo: Constify formats, frames and intervals 2023-06-09 14:11:55 +01:00