msm: vidc: Fix bitrate setting for CQ rc-mode sessions

Currently, both bitrate and frame-quality can be set for a CQ rc-mode
session. Adding additional check in driver to set only one of these.

Change-Id: I1ea7b08cf8c7fe90e35aa57f570703e8cdf854e9
CRs-Fixed: 2615700
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
This commit is contained in:
Amit Shekhar 2020-03-25 11:23:36 -07:00
commit 0701e2bcef

View file

@ -2753,6 +2753,9 @@ int msm_venc_set_bitrate(struct msm_vidc_inst *inst)
}
hdev = inst->core->device;
if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ)
return 0;
if (inst->layer_bitrate) {
s_vpr_h(inst->sid, "%s: Layer bitrate is enabled\n", __func__);
return 0;