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

Commit b28166cb authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

msm: vidc: Release scratch buffers of size 0 during reconfig

Release the existing scratch buffers instead of reuse,
provided the new buffer requirements is of size zero.
For ex, scratch buffer for interlace clips is zero.

Change-Id: Ic540839f1b5f8063ae5a1e4eda6df90b60b49af5
parent 36f3788e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5150,6 +5150,7 @@ static enum hal_buffer scratch_buf_sufficient(struct msm_vidc_inst *inst,

	list_for_each_entry(buf, &inst->scratchbufs.list, list) {
		if (buf->buffer_type == buffer_type &&
			bufreq->buffer_size &&
			buf->smem.size >= bufreq->buffer_size)
			count++;
	}