linux/drivers/media/usb/uvc
Ricardo Ribalda 5029464da9 media: uvcvideo: Refactor power_line_frequency_controls_limited
[ Upstream commit 3aa8628eb7 ]

Move the control mapping to uvc_ctrl.c. This way we do not have
references to UVC controls or V4L2 controls in uvc_driver.c.

This also fixes a bug introduced in commit 382075604a ("media:
uvcvideo: Limit power line control for Quanta UVC Webcam"). The
offending commit caused the power line control menu entries to have
incorrect indices compared to the V4L2_CID_POWER_LINE_FREQUENCY_*
enumeration. Now that the limited mapping reuses the correct menu_info
array, the indices correctly map to the V4L2 control specification.

Fixes: 382075604a ("media: uvcvideo: Limit power line control for Quanta UVC Webcam")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:30 +01:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile
uvc_ctrl.c media: uvcvideo: Refactor power_line_frequency_controls_limited 2023-03-10 09:33:30 +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: Refactor power_line_frequency_controls_limited 2023-03-10 09:33:30 +01:00
uvc_entity.c media: uvcvideo: Use dev_ printk aliases 2021-01-27 15:06:10 +01: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 comment blocks style 2022-07-16 08:48:42 +01:00
uvc_v4l2.c media: uvcvideo: Implement mask for V4L2_CTRL_TYPE_MENU 2023-03-10 09:33:30 +01:00
uvc_video.c media: uvcvideo: Fix typo 'the the' in comment 2022-08-30 16:05:24 +02:00
uvcvideo.h media: uvcvideo: Refactor power_line_frequency_controls_limited 2023-03-10 09:33:30 +01:00