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

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

Merge "Revert "msm: vidc: Do not fail registration if buffer is already registered""

parents 25d9b97e e50bb5bc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -444,6 +444,13 @@ int map_and_register_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b)
		}
		mutex_lock(&inst->registeredbufs.lock);
		temp = get_registered_buf(inst, b, i, &plane);
		if (temp && !is_dynamic_output_buffer_mode(b, inst)) {
			dprintk(VIDC_DBG,
				"This memory region has already been prepared\n");
			rc = 0;
			mutex_unlock(&inst->registeredbufs.lock);
			goto exit;
		}

		if (temp && is_dynamic_output_buffer_mode(b, inst) && !i) {
			/*