浏览代码

video: driver: Avoid setting same GOP size to fw dynamically

Avoid setting same GOP size to fw dynamically to avoid unnecessary
generation of IDR frame from firmware.

Change-Id: I50c61e9f86ebc9c8a3834fbceb525666b7b194bb
Signed-off-by: Akshata Sahukar <[email protected]>
Akshata Sahukar 3 年之前
父节点
当前提交
7e75edbeeb
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      driver/vidc/src/msm_vidc_control.c

+ 8 - 0
driver/vidc/src/msm_vidc_control.c

@@ -469,6 +469,14 @@ static int msm_vidc_adjust_dynamic_property(struct msm_vidc_inst *inst,
 			goto exit;
 	}
 
+	if (capability->cap[cap_id].value == prev_value && cap_id == GOP_SIZE) {
+		/*
+		 * Ignore setting same GOP size value to firmware to avoid
+		 * unnecessary generation of IDR frame.
+		 */
+		goto exit;
+	}
+
 	/* add cap_id to firmware list always */
 	rc = msm_vidc_add_capid_to_list(inst, cap_id, FW_LIST);
 	if (rc)