ipa: rpi: common: Avoid warnings when AeEnable control is used

The AeEnable control is now just a wrapper that is converted to
ExposureTimeMode and AnalogueGainMode controls instead. Therefore, it
should simply be ignored when we encounter it, without the need for
any warnings.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
David Plowman 2025-04-28 14:16:17 +01:00 committed by Kieran Bingham
parent 17e41b2a3a
commit e4677362a1

View file

@ -946,6 +946,17 @@ void IpaBase::applyControls(const ControlList &controls)
break;
}
case controls::AE_ENABLE: {
/*
* The AeEnable control is now just a wrapper that will already have been
* converted to ExposureTimeMode and AnalogueGainMode equivalents, so there
* would be nothing to do here. Nonetheless, "handle" the control so as to
* avoid warnings from the "default:" clause of the switch statement.
*/
break;
}
case controls::AE_FLICKER_MODE: {
RPiController::AgcAlgorithm *agc = dynamic_cast<RPiController::AgcAlgorithm *>(
controller_.getAlgorithm("agc"));