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

Commit 4efd0d5a authored by Amit Shekhar's avatar Amit Shekhar
Browse files

msm: vidc: Fix setting 8x8 transforms



Fix setting 8x8 transforms by restricting it to only HIGH and
CONSTRAINED_HIGH profiles.

Change-Id: I145919c2bc28fc837bca80392123219903581ca9
Signed-off-by: default avatarAmit Shekhar <ashekhar@codeaurora.org>
parent 711ee746
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -3364,12 +3364,16 @@ int msm_venc_set_8x8_transform(struct msm_vidc_inst *inst)
	}
	hdev = inst->core->device;

	if (inst->fmts[CAPTURE_PORT].fourcc != V4L2_PIX_FMT_H264 &&
		inst->profile != HFI_H264_PROFILE_HIGH &&
	if (inst->fmts[CAPTURE_PORT].fourcc != V4L2_PIX_FMT_H264) {
		dprintk(VIDC_DBG, "%s: skip due to %#x\n",
			__func__, inst->fmts[CAPTURE_PORT].fourcc);
		return 0;
	}

	if (inst->profile != HFI_H264_PROFILE_HIGH &&
		inst->profile != HFI_H264_PROFILE_CONSTRAINED_HIGH) {
		dprintk(VIDC_DBG, "%s: skip due to %#x %#x\n",
			__func__, inst->fmts[CAPTURE_PORT].fourcc,
			inst->profile);
		dprintk(VIDC_DBG, "%s: skip due to %#x\n",
			__func__, inst->profile);
		return 0;
	}