video: driver: Introduce SUPPORTS_REQUESTS cap
Introduce SUPPORTS_REQUESTS cap to have different caps support for upstream and downstream driver. Change-Id: Ib8bae21ba3fa6d65236954e0728fa30e20d7b375 Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
This commit is contained in:
@@ -4262,8 +4262,12 @@ static int m2m_queue_init(void *priv, struct vb2_queue *src_vq,
|
||||
return -EINVAL;
|
||||
}
|
||||
core = inst->core;
|
||||
if (!core->capabilities) {
|
||||
d_vpr_e("%s: invalid core capabilities\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
src_vq->supports_requests = 1;
|
||||
src_vq->supports_requests = core->capabilities[SUPPORTS_REQUESTS].value;
|
||||
src_vq->lock = &inst->request_lock;
|
||||
src_vq->dev = &core->pdev->dev;
|
||||
rc = vb2q_init(inst, src_vq, INPUT_MPLANE);
|
||||
|
Reference in New Issue
Block a user