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

Commit a3fd5959 authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: vidc: Set mode1 for VP8 always



VP8 encoder should always be set as work mode1.
Mode2 is not compatible for 4096 resolution.

CRs-Fixed: 2315963
Change-Id: I8175448387c0dd98ce3a778f584788fc2a459ed2
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent 1e465bc9
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;