Browse Source

video: driver: Always set metadata delivery/subcribe commands to fw

Set metadata delivery/subscribe commands to fw even when
delivery/subcribe metadata list is empty to ensure disabling
of needless metadata.

Change-Id: Ifbc8cfbe8911bf3318c6f85f0f6823243f7c6e67
Signed-off-by: Akshata Sahukar <[email protected]>
Akshata Sahukar 4 năm trước cách đây
mục cha
commit
376e52f50c
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      driver/vidc/src/msm_vdec.c

+ 0 - 6
driver/vidc/src/msm_vdec.c

@@ -1090,9 +1090,6 @@ static int msm_vdec_subscribe_metadata(struct msm_vidc_inst *inst,
 		}
 	};
 
-	if (!count)
-		return 0;
-
 	rc = venus_hfi_session_command(inst,
 			HFI_CMD_SUBSCRIBE_MODE,
 			port,
@@ -1150,9 +1147,6 @@ static int msm_vdec_set_delivery_mode_metadata(struct msm_vidc_inst *inst,
 		return -EINVAL;
 	}
 
-	if (!count)
-		return 0;
-
 	rc = venus_hfi_session_command(inst,
 			HFI_CMD_DELIVERY_MODE,
 			port,