video: driver: Adjust input meta buffer queue size

Adjust input meta buffer queue size as per the
super frame count.

Change-Id: Ie1fc10bd13b0daa09b171fb2532beb1f22d93811
This commit is contained in:
Manikanta Kanamarlapudi
2021-03-07 22:58:34 +05:30
committed by Gerrit - the friendly Code Review server
parent 3efbfcc1a3
commit 4bb7345607

View File

@@ -130,8 +130,14 @@ int msm_vidc_queue_setup(struct vb2_queue *q,
if (port == INPUT_PORT || port == OUTPUT_PORT)
sizes[0] = inst->fmts[port].fmt.pix_mp.plane_fmt[0].sizeimage;
else if (port == INPUT_META_PORT || port == OUTPUT_META_PORT)
else if (port == OUTPUT_META_PORT)
sizes[0] = inst->fmts[port].fmt.meta.buffersize;
else if (port == INPUT_META_PORT)
if (inst->capabilities->cap[SUPER_FRAME].value)
sizes[0] = inst->capabilities->cap[SUPER_FRAME].value *
inst->fmts[port].fmt.meta.buffersize;
else
sizes[0] = inst->fmts[port].fmt.meta.buffersize;
i_vpr_h(inst,
"queue_setup: type %d num_buffers %d sizes[0] %d\n",