|
@@ -634,8 +634,10 @@ static void fill_buf_caps(struct vb2_queue *q, u32 *caps)
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_USERPTR;
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_USERPTR;
|
|
if (q->io_modes & VB2_DMABUF)
|
|
if (q->io_modes & VB2_DMABUF)
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_DMABUF;
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_DMABUF;
|
|
|
|
+#ifdef CONFIG_MEDIA_CONTROLLER_REQUEST_API
|
|
if (q->supports_requests)
|
|
if (q->supports_requests)
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_REQUESTS;
|
|
*caps |= V4L2_BUF_CAP_SUPPORTS_REQUESTS;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req)
|
|
int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req)
|