From 8fc8209df6ce2a911283685cf92a9ddc787ed259 Mon Sep 17 00:00:00 2001 From: Shi Zhongbo Date: Wed, 27 May 2020 14:27:58 +0800 Subject: [PATCH] msm: venc: uncomment bitrate boost HFI calling Uncomment HFI calling part for bitrate boost setting. Change-Id: I289b1866089fff883d624bb505b37cca4061a626 Signed-off-by: Shi Zhongbo --- msm/vidc/msm_venc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/msm/vidc/msm_venc.c b/msm/vidc/msm_venc.c index b03af186d7bf..58d40ad50958 100644 --- a/msm/vidc/msm_venc.c +++ b/msm/vidc/msm_venc.c @@ -3354,13 +3354,13 @@ int msm_venc_set_bitrate_boost_margin(struct msm_vidc_inst *inst, u32 enable) boost_margin.margin = (u32)(ctrl->val/25) * 25; setprop: - /* s_vpr_h(inst->sid, "%s: %d\n", __func__, boost_margin.margin); - * rc = call_hfi_op(hdev, session_set_property, inst->session, - * HFI_PROPERTY_PARAM_VENC_BITRATE_BOOST, &boost_margin, - * sizeof(boost_margin)); - *if (rc) - * s_vpr_e(inst->sid, "%s: set property failed\n", __func__); - */ + s_vpr_h(inst->sid, "%s: %d\n", __func__, boost_margin.margin); + rc = call_hfi_op(hdev, session_set_property, inst->session, + HFI_PROPERTY_PARAM_VENC_BITRATE_BOOST, &boost_margin, + sizeof(boost_margin)); + if (rc) + s_vpr_e(inst->sid, "%s: set property failed\n", __func__); + return rc; }