video: driver: optimize thumbnail input buffer count

Update thumbnail input buffer count to 1 after recieving
thumbnail enable control.

Change-Id: I9341d34d3427c00fd6792f47c947bf4b12966a39
Signed-off-by: Shi Zhongbo <zhongbos@codeaurora.org>
This commit is contained in:
Shi Zhongbo
2021-03-30 09:53:31 +08:00
committed by Gerrit - the friendly Code Review server
parent 19cdce1711
commit 34ed55ecd1
3 changed files with 80 additions and 2 deletions

View File

@@ -656,13 +656,16 @@ int msm_v4l2_op_s_ctrl(struct v4l2_ctrl *ctrl)
if (rc)
return rc;
}
if (ctrl->id == V4L2_CID_MPEG_VIDC_PRIORITY) {
rc = msm_vidc_adjust_session_priority(inst, ctrl);
if (rc)
return rc;
}
if (ctrl->id == V4L2_CID_MPEG_VIDC_THUMBNAIL_MODE) {
rc = msm_vidc_update_buffer_count(inst, INPUT_PORT);
if (rc)
return rc;
}
if (is_meta_ctrl(ctrl->id)) {
if (cap_id == META_DPB_TAG_LIST) {
/*