Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6f58ecf authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

msm: vidc: Relax driver and FW min cnt check during sufficient event



We cannot have the sanity check at this moment since
FW raises insufficient event only if actual count is
greater than FW min count. This needs to be corrected
in FW before having the sanity check.

Change-Id: Icb06b440424c37c4aee397ba24b776eb715b0332
Signed-off-by: default avatarPriyanka Gujjula <pgujjula@codeaurora.org>
parent 31b6e905
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -1699,15 +1699,6 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
		if (event_fields_changed) {
			event = V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT;
		} else {
			if (fmt->count_min < event_notify->fw_min_cnt) {
				s_vpr_e(inst->sid,
				"%s: Firmware min count %d cannot be greater than driver min count %d\n",
					__func__, event_notify->fw_min_cnt,
					fmt->count_min);
				msm_vidc_queue_v4l2_event(inst,
					V4L2_EVENT_MSM_VIDC_HW_UNSUPPORTED);
				goto err_bad_event;
			}
			inst->entropy_mode = event_notify->entropy_mode;

			/* configure work mode considering low latency*/
@@ -1719,11 +1710,8 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
						"%s: Failed to decide work mode\n",
						__func__);
			}
			/* Update driver buffer counts */
			extra_buff_count = msm_vidc_get_extra_buff_count(inst,
					HAL_BUFFER_OUTPUT);
			/* Update driver buffer count */
			fmt->count_min = event_notify->fw_min_cnt;
			fmt->count_min_host = fmt->count_min + extra_buff_count;
			msm_dcvs_reset(inst);
			s_vpr_h(inst->sid,
				"seq: No parameter change continue session\n");