Parcourir la source

video: driver: remove unsupported selection targets for encoder

- CROP should be supported only for V4L2_SEL_TGT_CROP selection
  target.
- Compose should be supported only for V4L2_SEL_TGT_COMPOSE
  selecion target.

Fixes: v4l2-compliance: testCrop/testCompose (VIDIOC_S_SELECTION)
       on encoder.

Change-Id: Iaada9e0078602ab5ddcdd25d94c9abb29c053811
Signed-off-by: Dikshita Agarwal <[email protected]>
Dikshita Agarwal il y a 3 ans
Parent
commit
40c0938c20
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. 0 5
      driver/vidc/src/msm_venc.c

+ 0 - 5
driver/vidc/src/msm_venc.c

@@ -1374,8 +1374,6 @@ int msm_venc_s_selection(struct msm_vidc_inst* inst, struct v4l2_selection* s)
 	}
 
 	switch (s->target) {
-	case V4L2_SEL_TGT_CROP_BOUNDS:
-	case V4L2_SEL_TGT_CROP_DEFAULT:
 	case V4L2_SEL_TGT_CROP:
 		if (s->r.left || s->r.top) {
 			i_vpr_h(inst, "%s: unsupported top %d or left %d\n",
@@ -1410,9 +1408,6 @@ int msm_venc_s_selection(struct msm_vidc_inst* inst, struct v4l2_selection* s)
 		if (rc)
 			return rc;
 		break;
-	case V4L2_SEL_TGT_COMPOSE_BOUNDS:
-	case V4L2_SEL_TGT_COMPOSE_PADDED:
-	case V4L2_SEL_TGT_COMPOSE_DEFAULT:
 	case V4L2_SEL_TGT_COMPOSE:
 		if (s->r.left < inst->crop.left) {
 			i_vpr_e(inst,