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
This commit is contained in:
Priyanka Gujjula 2021-03-02 16:51:20 +05:30
parent 36f3788ea4
commit b28166cbf0

View File

@ -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++;
}