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

Commit 65316e79 authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

msm: vidc: Ignore thumbnail session load



Thumbnail sessions are considered to be non realtime
sessions. Hence ignore the thumbnail sessions load on
device while calculating the load and mark thumbnail
sessions as perf session.

Change-Id: Ifa89c2f670fa631b6805a5d796a04e07e294ca4c
Signed-off-by: default avatarPriyanka Gujjula <pgujjula@codeaurora.org>
parent 86dc23c3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -418,10 +418,11 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b)
	}

	/*
	 * set perf mode for image session buffers so that
	 * they will be processed quickly
	 * set perf mode for image and thumbnail session buffers
	 * so that they will be processed quickly
	 */
	if (is_grid_session(inst) && b->type == INPUT_MPLANE)
	if ((is_grid_session(inst) || is_thumbnail_session(inst))
		&& b->type == INPUT_MPLANE)
		b->flags |= V4L2_BUF_FLAG_PERF_MODE;

	q = msm_comm_get_vb2q(inst, b->type);
+3 −3
Original line number Diff line number Diff line
@@ -799,9 +799,9 @@ int msm_comm_get_inst_load(struct msm_vidc_inst *inst,
	 * ----------------|----------------------------|
	 */

	if ((is_thumbnail_session(inst) ||
		 !is_realtime_session(inst)) &&
		quirks == LOAD_ADMISSION_CONTROL) {
	if (is_thumbnail_session(inst) ||
		(!is_realtime_session(inst) &&
		 quirks == LOAD_ADMISSION_CONTROL)) {
		load = 0;
	} else {
		load = msm_comm_get_mbs_per_sec(inst, quirks);