From 0c5a86a356596f60286d0a32254ed027a0a6e709 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 7 Jul 2021 11:44:58 +0100 Subject: Force return values of V4L2 controls to be specific --- ipu3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipu3.cpp b/ipu3.cpp index 955fa62..651e0bb 100644 --- a/ipu3.cpp +++ b/ipu3.cpp @@ -160,13 +160,13 @@ int IPAIPU3::configure(const IPAConfigInfo &configInfo) const auto itExp = ctrls_.find(V4L2_CID_EXPOSURE); if (itExp == ctrls_.end()) { LOG(IPAIPU3, Error) << "Can't find exposure control"; - return -EINVAL; + return -EOWNERDEAD; //EINVAL; 130 } const auto itGain = ctrls_.find(V4L2_CID_ANALOGUE_GAIN); if (itGain == ctrls_.end()) { LOG(IPAIPU3, Error) << "Can't find gain control"; - return -EINVAL; + return -ENOKEY; //EINVAL; 126 } minExposure_ = std::max(itExp->second.min().get(), 1); -- cgit v1.2.1