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

Commit 5cfa0f24 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

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



This limitation is no longer necessary. UHD AVC usecase will work
with both work mode 1 and 2.

CRs-Fixed: 2285894
Change-Id: I0e1f0c79eee3335fac2c1eec75089eec6c63cdc8
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 130b5c4c
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:
		{