media: uvcvideo: Add support for per-device control mapping overrides
authorRicardo Ribalda <ribalda@chromium.org>
Tue, 7 Jun 2022 13:43:59 +0000 (14:43 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 16 Jul 2022 07:50:27 +0000 (08:50 +0100)
commit86f7ef77315687df144042762325c53d9a3a28c9
tree4231fc14c843742b1ec1ad58b55232bd9b27caef
parent710871163510cd78948a095e929e28c1434b4506
media: uvcvideo: Add support for per-device control mapping overrides

Some devices do not implement all their controls in a way that complies
with the UVC specification. This is for instance the case for several
devices that do not support the disabled mode for the power line
frequency control. Add a mechanism to allow per-device control mapping
overrides to avoid errors when accessing non-compliant controls.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvcvideo.h