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

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

Merge "msm: vidc: Set mode1 for VP8 always"

parents 2f3037b7 a3fd5959
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1335,25 +1335,15 @@ int msm_vidc_decide_work_mode(struct msm_vidc_inst *inst)
		}
	} else if (inst->session_type == MSM_VIDC_ENCODER) {
		u32 codec = inst->fmts[CAPTURE_PORT].fourcc;
		u32 width = inst->prop.width[OUTPUT_PORT];

		pdata.video_work_mode = VIDC_WORK_MODE_2;

		switch (codec) {
		case V4L2_PIX_FMT_VP8:
		{
			if (width <= 3840)  {
				pdata.video_work_mode = VIDC_WORK_MODE_1;
				goto decision_done;
			}
			break;
		}
		case V4L2_PIX_FMT_TME:
		{
			pdata.video_work_mode = VIDC_WORK_MODE_1;
			goto decision_done;
		}
		}

	} else {
		return -EINVAL;