瀏覽代碼

Merge "video: driver: update condition to allow dynamic controls"

qctecmdr 3 年之前
父節點
當前提交
552a6f9470
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      driver/vidc/src/msm_vidc_driver.c

+ 5 - 1
driver/vidc/src/msm_vidc_driver.c

@@ -1322,7 +1322,11 @@ bool msm_vidc_allow_s_ctrl(struct msm_vidc_inst *inst, u32 id)
 			}
 		}
 	} else if (is_encode_session(inst)) {
-		if (inst->state == MSM_VIDC_START || inst->state == MSM_VIDC_START_OUTPUT) {
+		if (!inst->bufq[OUTPUT_PORT].vb2q->streaming) {
+			allow = true;
+			goto exit;
+		}
+		if (inst->bufq[OUTPUT_PORT].vb2q->streaming) {
 			switch (id) {
 			case V4L2_CID_MPEG_VIDEO_BITRATE:
 			case V4L2_CID_MPEG_VIDEO_GOP_SIZE: