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

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

Merge "Revert "msm: vidc: Use work mode 2 for avc encode with width > 3840""

parents 0647c7e1 5cfa0f24
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -1301,11 +1301,12 @@ int msm_vidc_decide_work_mode(struct msm_vidc_inst *inst)

	hdev = inst->core->device;

	if (inst->session_type == MSM_VIDC_DECODER) {
	if (inst->clk_data.low_latency_mode) {
		pdata.video_work_mode = VIDC_WORK_MODE_1;
		goto decision_done;
	}

	if (inst->session_type == MSM_VIDC_DECODER) {
		pdata.video_work_mode = VIDC_WORK_MODE_2;
		switch (inst->fmts[OUTPUT_PORT].fourcc) {
		case V4L2_PIX_FMT_MPEG2:
@@ -1329,14 +1330,6 @@ int msm_vidc_decide_work_mode(struct msm_vidc_inst *inst)

		pdata.video_work_mode = VIDC_WORK_MODE_2;

		if (codec == V4L2_PIX_FMT_H264 && width > 3840)
			goto decision_done;

		if (inst->clk_data.low_latency_mode) {
			pdata.video_work_mode = VIDC_WORK_MODE_1;
			goto decision_done;
		}

		switch (codec) {
		case V4L2_PIX_FMT_VP8:
		{