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

Commit 74ae8998 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Amend input buffer count in batch mode



Batching needs minimum batch size count of input
buffers else we may not see expected power savings
in playback usecase.

Change-Id: I4355daadd0e416f4bd48103b59b44efccd2abe31
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 829ed9cc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3093,6 +3093,11 @@ static int msm_comm_init_buffer_count(struct msm_vidc_inst *inst)
	extra_buff_count = msm_vidc_get_extra_buff_count(inst,
				HAL_BUFFER_INPUT);
	bufreq->buffer_count_min = inst->fmts[port].input_min_count;
	/* batching needs minimum batch size count of input buffers */
	if (inst->core->resources.decode_batching &&
		is_decode_session(inst) &&
		bufreq->buffer_count_min < inst->batch.size)
		bufreq->buffer_count_min = inst->batch.size;
	bufreq->buffer_count_min_host = bufreq->buffer_count_actual =
				bufreq->buffer_count_min + extra_buff_count;