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

Commit 47d0947d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Fix incorrect fbd count issue"

parents 411a7a11 f7d96082
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2328,9 +2328,6 @@ int msm_comm_vb2_buffer_done(struct msm_vidc_inst *inst,
			__func__, vb->type);
		return -EINVAL;
	}
	msm_vidc_debugfs_update(inst, port == CAPTURE_PORT ?
			MSM_VIDC_DEBUGFS_EVENT_FBD :
			MSM_VIDC_DEBUGFS_EVENT_EBD);

	mutex_lock(&inst->bufq[port].lock);
	vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
@@ -2456,6 +2453,7 @@ static void handle_ebd(enum hal_command_response cmd, void *data)
	 */
	msm_comm_put_vidc_buffer(inst, mbuf);
	msm_comm_vb2_buffer_done(inst, vb2);
	msm_vidc_debugfs_update(inst, MSM_VIDC_DEBUGFS_EVENT_EBD);
	kref_put_mbuf(mbuf);
exit:
	put_inst(inst);
@@ -2657,6 +2655,7 @@ static void handle_fbd(enum hal_command_response cmd, void *data)
	 */
	msm_comm_put_vidc_buffer(inst, mbuf);
	msm_comm_vb2_buffer_done(inst, vb2);
	msm_vidc_debugfs_update(inst, MSM_VIDC_DEBUGFS_EVENT_FBD);
	kref_put_mbuf(mbuf);

exit: