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

Commit 8c91caf1 authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: vidc: Set DPB count to firmware during split mode



Previously driver never used to set DPB count to firmware.
Based on new firmware changes for internal buffer size
calculation now it is mandatory to set buffer counts for
DPB. Hence, set DPB count for split mode.

Change-Id: I2e8a13f5c5c1566716658167854c6ba969e0c8a9
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent 05c45a66
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -1046,6 +1046,22 @@ int msm_vdec_set_output_buffer_counts(struct msm_vidc_inst *inst)
			__func__, buffer_type);
		return -EINVAL;
	}
	if (buffer_type == HAL_BUFFER_OUTPUT2) {
		/*
		 * For split mode set DPB count as well
		 * For DPB actual count is same as min output count
		 */
		rc = msm_comm_set_buffer_count(inst,
			bufreq->buffer_count_min,
			bufreq->buffer_count_min,
			HAL_BUFFER_OUTPUT);
		if (rc) {
			dprintk(VIDC_ERR,
				"%s: failed to set buffer count(%#x)\n",
				__func__, buffer_type);
			return -EINVAL;
		}
	}
	rc = msm_comm_set_buffer_count(inst,
			bufreq->buffer_count_min,
			bufreq->buffer_count_actual,