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

Commit 91df9678 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: Generalize decoder DCVS threshold for all usecases"

parents 87b83785 5af2be7a
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -217,7 +217,8 @@ void msm_dcvs_init_load(struct msm_vidc_inst *inst)

	/* calculating the min and max threshold */
	if (output_buf_req->buffer_count_actual) {
		dcvs->min_threshold = DCVS_MIN_DISPLAY_BUFF;
		dcvs->min_threshold = output_buf_req->buffer_count_actual -
			output_buf_req->buffer_count_min + 1;
		dcvs->max_threshold = output_buf_req->buffer_count_actual;
		if (dcvs->max_threshold <= dcvs->min_threshold)
			dcvs->max_threshold =
@@ -309,13 +310,13 @@ void msm_dcvs_monitor_buffer(struct msm_vidc_inst *inst)
		prev_buf_count =
			dcvs->num_ftb[((dcvs->ftb_index - 2 +
				DCVS_FTB_WINDOW) % DCVS_FTB_WINDOW)];
		if (prev_buf_count == DCVS_MIN_DISPLAY_BUFF &&
			buffers_outside_fw <= DCVS_MIN_DISPLAY_BUFF) {
		if (prev_buf_count == dcvs->threshold_disp_buf_low &&
			buffers_outside_fw <= dcvs->threshold_disp_buf_low) {
			dcvs->transition_turbo = true;
		} else if (buffers_outside_fw > DCVS_MIN_DISPLAY_BUFF &&
		} else if (buffers_outside_fw > dcvs->threshold_disp_buf_low &&
			(buffers_outside_fw -
			 (prev_buf_count - buffers_outside_fw))
			< DCVS_MIN_DISPLAY_BUFF){
			< dcvs->threshold_disp_buf_low){
			dcvs->transition_turbo = true;
		}
	}
+0 −3
Original line number Diff line number Diff line
@@ -15,9 +15,6 @@
#define _MSM_VIDC_DCVS_H_
#include "msm_vidc_internal.h"

/* Minimum number of display buffers plus an extra safeguard*/
/* Minimum number of display buffers */
#define DCVS_MIN_DISPLAY_BUFF 5
/* Low threshold for encoder dcvs */
#define DCVS_ENC_LOW_THR 4
/* High threshold for encoder dcvs */