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

Commit 92fc3b04 authored by Praneeth Paladugu's avatar Praneeth Paladugu
Browse files

msm: vidc: Enhance debug message for control



Enhance debug message for control to include control name, ID and
HAL property to make debugging easy.

CRs-Fixed: 2016190
Change-Id: I7103c078f645a9a0abb55ebb746f48fd717eec8c
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent 24806ed6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -920,6 +920,8 @@ int create_pkt_cmd_session_set_property(
	pkt->session_id = hash32_ptr(session);
	pkt->num_properties = 1;

	dprintk(VIDC_DBG, "Setting HAL Property = 0x%x\n", ptype);

	switch (ptype) {
	case HAL_CONFIG_FRAME_RATE:
	{
+2 −2
Original line number Diff line number Diff line
@@ -980,8 +980,8 @@ int msm_vdec_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)

	if (!rc && property_id) {
		dprintk(VIDC_DBG,
			"Control: HAL property=%#x,ctrl: id=%#x,value=%#x\n",
			property_id, ctrl->id, ctrl->val);
			"Control: Name = %s, ID = 0x%x Value = %d\n",
				ctrl->name, ctrl->id, ctrl->val);
		rc = call_hfi_op(hdev, session_set_property, (void *)
				inst->session, property_id, pdata);
	}
+3 −3
Original line number Diff line number Diff line
@@ -1868,9 +1868,9 @@ int msm_venc_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
#undef TRY_GET_CTRL

	if (!rc && property_id) {
		dprintk(VIDC_DBG, "Control: HAL property=%x,ctrl_value=%d\n",
				property_id,
				ctrl->val);
		dprintk(VIDC_DBG,
			"Control: Name = %s, ID = 0x%x Value = %d\n",
				ctrl->name, ctrl->id, ctrl->val);
		rc = call_hfi_op(hdev, session_set_property,
				(void *)inst->session, property_id, pdata);
	}