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

Commit 48da1d42 authored by Vasantha Balla's avatar Vasantha Balla
Browse files

vidc_3x: Return EBUSY if mbpf check fails



Driver should return EBUSY as HAL checks for
this to return insufficient resources error
to client.

Change-Id: Id666edff2a5167cbe89a1122480a3b9bbf4ad10f
Signed-off-by: default avatarVasantha Balla <quic_vballa@quicinc.com>
parent 30a9d3b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5056,7 +5056,7 @@ static int msm_vidc_check_mbpf_supported(struct msm_vidc_inst *inst)
	mutex_unlock(&core->lock);
	if (mbpf > 2*capability->mbs_per_frame.max) {
		msm_vidc_print_running_insts(inst->core);
		return -ENOMEM;
		return -EBUSY;
	}

	return 0;