Merge "video: driver: fix driver tip compilation"

Цей коміт міститься в:
qctecmdr
2021-03-18 15:40:10 -07:00
зафіксовано Gerrit - the friendly Code Review server
джерело 4d2365b36d ca83b4c74c
коміт 5d45f82cbb

Переглянути файл

@@ -128,16 +128,17 @@ int msm_vidc_queue_setup(struct vb2_queue *q,
inst->buffers.output_meta.actual_count = *num_buffers;
}
if (port == INPUT_PORT || port == OUTPUT_PORT)
if (port == INPUT_PORT || port == OUTPUT_PORT) {
sizes[0] = inst->fmts[port].fmt.pix_mp.plane_fmt[0].sizeimage;
else if (port == OUTPUT_META_PORT)
} else if (port == OUTPUT_META_PORT) {
sizes[0] = inst->fmts[port].fmt.meta.buffersize;
else if (port == INPUT_META_PORT)
} 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",