ipa: ipu3: Send lens controls to pipeline handler

Pick up the focus value from the AF algorithm and send lens controls
along in the frame context.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Daniel Scally 2022-03-03 23:49:56 +00:00 committed by Kieran Bingham
parent 1aecc633e4
commit 58faa4f360

View file

@ -679,6 +679,11 @@ void IPAIPU3::setControls(unsigned int frame)
ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_)); ctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));
op.sensorControls = ctrls; op.sensorControls = ctrls;
ControlList lensCtrls(lensCtrls_);
lensCtrls.set(V4L2_CID_FOCUS_ABSOLUTE,
static_cast<int32_t>(context_.frameContext.af.focus));
op.lensControls = lensCtrls;
queueFrameAction.emit(frame, op); queueFrameAction.emit(frame, op);
} }