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

Commit 8ce8cf42 authored by Vinay Kalia's avatar Vinay Kalia
Browse files

msm: vidc: Fix video encoder rotation and downscaling



When client sets input height/width on video driver,
video driver sets input as well as output height/width
to this value and on firmware. Because of this reason,
if input height/width is configured after client
configures output height/width video driver loses the
information from output port configuration. Fix this
by not updating output params when input format is set.

Change-Id: I1cf0d6ac2f01fc5cf8fc5120c9999f2495db4d54
Signed-off-by: default avatarVinay Kalia <vkalia@codeaurora.org>
parent c72397bc
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -3140,15 +3140,6 @@ int msm_venc_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f)
			goto exit;
		}

		frame_sz.buffer_type = HAL_BUFFER_OUTPUT;
		rc = call_hfi_op(hdev, session_set_property, (void *)
			inst->session, HAL_PARAM_FRAME_SIZE, &frame_sz);
		if (rc) {
			dprintk(VIDC_ERR,
				"Failed to set hal property for framesize\n");
			goto exit;
		}

		fmt = msm_comm_get_pixel_fmt_fourcc(venc_formats,
			ARRAY_SIZE(venc_formats), f->fmt.pix_mp.pixelformat,
			OUTPUT_PORT);