linux/drivers/media/usb
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
..
airspy
as102
au0828
b2c2
cx231xx
dvb-usb media: dvb-usb: fix memory leak in dvb_usb_adapter_init() 2022-12-31 13:33:03 +01:00
dvb-usb-v2
em28xx
go7007
gspca
hackrf
hdpvr
msi2500
pvrusb2
pwc
s2255
siano
stk1160
ttusb-budget
ttusb-dec
usbtv
uvc media: uvcvideo: Refactor power_line_frequency_controls_limited 2023-03-10 09:33:30 +01:00
Kconfig
Makefile