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

Commit f9c925eb authored by Arun Menon's avatar Arun Menon Committed by Matt Wagantall
Browse files

msm: vidc: Set same alloc mode on OUTPUT2 as OUTPUT



If OUTPUT2 is enabled, then driver needs to set the
OUTPUT's alloc mode on OUTPUT2 as well. If not firmware
will treat it as an error.

Change-Id: Ice7b8e38b973629253da83be049622979faf359f
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent cf8e1308
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2348,6 +2348,17 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
				dprintk(VIDC_ERR,
					"Failed setting OUTPUT2 size : %d\n",
					rc);

			alloc_mode.buffer_mode =
				inst->buffer_mode_set[CAPTURE_PORT];
			alloc_mode.buffer_type = HAL_BUFFER_OUTPUT2;
			rc = call_hfi_op(hdev, session_set_property,
				inst->session, HAL_PARAM_BUFFER_ALLOC_MODE,
				&alloc_mode);
			if (rc)
				dprintk(VIDC_ERR,
					"Failed to set alloc_mode on OUTPUT2: %d\n",
					rc);
			break;
		default:
			dprintk(VIDC_ERR,