mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
8594905e54
commit
0701e2bcef
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue