Kaynağa Gözat

video: driver: update OP port setting if rotation is enabled

Update the output port setting when set control is called for
rotation irrespective of the value of rotation angle.

Partially Fixes: v4l2-compliance: encoder:
			TestSetFormat(VIDIOC_S_FMT)

Change-Id: Ic5dce8089820f69fd38ac3b394e1c139d5d76f1b
Signed-off-by: Dikshita Agarwal <[email protected]>
Dikshita Agarwal 3 yıl önce
ebeveyn
işleme
58e4fd1d8f
1 değiştirilmiş dosya ile 0 ekleme ve 2 silme
  1. 0 2
      driver/vidc/src/msm_vidc_control.c

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

@@ -868,14 +868,12 @@ int msm_v4l2_op_s_ctrl(struct v4l2_ctrl *ctrl)
 		}
 
 		if (ctrl->id == V4L2_CID_ROTATE) {
-			if (ctrl->val == 90 || ctrl->val == 270) {
 				struct v4l2_format *output_fmt;
 
 				output_fmt = &inst->fmts[OUTPUT_PORT];
 				rc = msm_venc_s_fmt_output(inst, output_fmt);
 				if (rc)
 					return rc;
-			}
 		}
 
 		if (ctrl->id == V4L2_CID_MPEG_VIDC_MIN_BITSTREAM_SIZE_OVERWRITE) {