From ffcecda4d5b9b5d17e3a99e07033321186f25a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 2 Apr 2025 12:53:34 +0200 Subject: libcamera: pipeline: uvcvideo: Report new AeEnable control as available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `AeEnable` control is handled by the `Camera` class directly, but it still has to be added because `ControlInfoMap`s are not easily modifiable. See 338ba00e7abfe8 ("ipa: rkisp1: agc: Report new AeEnable control as available") for more details and a similar change in rkisp1. Signed-off-by: Barnabás Pőcze Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp index 586e932d..58aa0eb4 100644 --- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp @@ -596,6 +596,11 @@ int UVCCameraData::init(MediaDevice *media) addControl(cid, info, &ctrls); } + if (autoExposureMode_ && manualExposureMode_) { + /* \todo Move this to the Camera class */ + ctrls[&controls::AeEnable] = ControlInfo(false, true, true); + } + controlInfo_ = ControlInfoMap(std::move(ctrls), controls::controls); /* -- cgit v1.2.1