ipa: rpi: agc: When AGC channels are changed, start with the 1st channel

Whenever the AGC active channels are changed, start with the first
channel listed. This allows applications to rely on a particular channel
being generated first. For example, multi-exposure HDR always wants the
short channel first.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Naushir Patuck 2023-10-13 08:48:41 +01:00 committed by Kieran Bingham
parent daeaf681c9
commit d848d2a21c

View file

@ -203,6 +203,7 @@ void Agc::setActiveChannels(const std::vector<unsigned int> &activeChannels)
LOG(RPiAgc, Debug) << "setActiveChannels " << activeChannels;
activeChannels_ = activeChannels;
index_ = 0;
}
void Agc::switchMode(CameraMode const &cameraMode,