summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-28 11:07:49 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-28 12:48:44 +0100
commit2c8c967d725f56940a6c8f7e23930fed58ccf083 (patch)
tree69858123352a607ac7a51a6b17eba8683889a7a5
parent61405952e61ec3623fa9d449c6ab40b55f6098c9 (diff)
ipu3: Use new sensor controls
The IPU3 interface was updated in 4c1fc33d8ab9 ("libcamera: ipu3: Drop entityControls map") where the sensor controls are given their own dedicated control list and is named accordingly. Update the IPU3 IPA to match the new interface update. Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--ipu3.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipu3.cpp b/ipu3.cpp
index 3e89e6d..b60c58c 100644
--- a/ipu3.cpp
+++ b/ipu3.cpp
@@ -201,14 +201,14 @@ int IPAIPU3::start()
int IPAIPU3::configure(const IPAConfigInfo &configInfo)
{
- if (configInfo.entityControls.empty()) {
- LOG(IPAIPU3, Error) << "No controls provided";
+ if (configInfo.sensorControls.empty()) {
+ LOG(IPAIPU3, Error) << "No sensor controls provided";
return -ENODATA;
}
sensorInfo_ = configInfo.sensorInfo;
- ctrls_ = configInfo.entityControls.at(0);
+ ctrls_ = configInfo.sensorControls;
const auto itExp = ctrls_.find(V4L2_CID_EXPOSURE);
if (itExp == ctrls_.end()) {