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

Commit be58842c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Ignore thumbnail session load"

parents b1db71ea 65316e79
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);