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

Commit 13053fe9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Update input extradata min host buffer count"

parents 4bba7e4e 83fec057
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4067,9 +4067,14 @@ int msm_vidc_update_host_buff_counts(struct msm_vidc_inst *inst)
		return -EINVAL;
	}
	extra_buffers = msm_vidc_get_extra_buff_count(inst, HAL_BUFFER_INPUT);

	bufreq->buffer_count_min_host = bufreq->buffer_count_min +
		extra_buffers;
	bufreq = get_buff_req_buffer(inst, HAL_BUFFER_EXTRADATA_INPUT);
	if (bufreq) {
		if (bufreq->buffer_count_min)
			bufreq->buffer_count_min_host =
				bufreq->buffer_count_min + extra_buffers;
	}

	if (msm_comm_get_stream_output_mode(inst) ==
			HAL_VIDEO_DECODER_SECONDARY) {