[v6,12/12] ipa: raspberry: Report new AeEnable control as available
diff mbox series

Message ID 20250109000942.1616565-13-paul.elder@ideasonboard.com
State New
Headers show
Series
  • AEGC controls
Related show

Commit Message

Paul Elder Jan. 9, 2025, 12:09 a.m. UTC
Even though the new AeEnable control internally switches on and off the
sub-controls (ExposureTimeMode and AnalogueGainMode), it still needs to
be declared as available. Report this control as available in the
rpi IPA.

Support for the control does not need to be added as it is handled by
the Camera class. It does not need to be handled in metadata either as
the new version of AeEnable is not returned in metadata.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>

---
New in v6
---
 src/ipa/rpi/common/ipa_base.cpp | 2 ++
 1 file changed, 2 insertions(+)

Comments

Laurent Pinchart Jan. 9, 2025, 11:06 p.m. UTC | #1
Hi Paul,

Thank you for the patch.

On Wed, Jan 08, 2025 at 06:09:42PM -0600, Paul Elder wrote:
> Even though the new AeEnable control internally switches on and off the
> sub-controls (ExposureTimeMode and AnalogueGainMode), it still needs to
> be declared as available. Report this control as available in the
> rpi IPA.
> 
> Support for the control does not need to be added as it is handled by
> the Camera class. It does not need to be handled in metadata either as
> the new version of AeEnable is not returned in metadata.
> 
> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> New in v6
> ---
>  src/ipa/rpi/common/ipa_base.cpp | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/ipa/rpi/common/ipa_base.cpp b/src/ipa/rpi/common/ipa_base.cpp
> index 4334d22e1..44ce38caa 100644
> --- a/src/ipa/rpi/common/ipa_base.cpp
> +++ b/src/ipa/rpi/common/ipa_base.cpp
> @@ -55,6 +55,8 @@ constexpr Duration controllerMinFrameDuration = 1.0s / 30.0;
>  
>  /* List of controls handled by the Raspberry Pi IPA */
>  const ControlInfoMap::Map ipaControls{
> +	/* \todo Move this to the Camera class */
> +	{ &controls::AeEnable, ControlInfo(false, true) },
>  	{ &controls::ExposureTimeMode,
>  	  ControlInfo(static_cast<int32_t>(controls::ExposureTimeModeAuto),
>  		      static_cast<int32_t>(controls::ExposureTimeModeManual)) },

Patch
diff mbox series

diff --git a/src/ipa/rpi/common/ipa_base.cpp b/src/ipa/rpi/common/ipa_base.cpp
index 4334d22e1..44ce38caa 100644
--- a/src/ipa/rpi/common/ipa_base.cpp
+++ b/src/ipa/rpi/common/ipa_base.cpp
@@ -55,6 +55,8 @@  constexpr Duration controllerMinFrameDuration = 1.0s / 30.0;
 
 /* List of controls handled by the Raspberry Pi IPA */
 const ControlInfoMap::Map ipaControls{
+	/* \todo Move this to the Camera class */
+	{ &controls::AeEnable, ControlInfo(false, true) },
 	{ &controls::ExposureTimeMode,
 	  ControlInfo(static_cast<int32_t>(controls::ExposureTimeModeAuto),
 		      static_cast<int32_t>(controls::ExposureTimeModeManual)) },