__vb2_queue_alloc 分配vivi_buffer结构体的空间(缓存区头部信息), 如果使用的是V4L2_MEMORY_MMAP类型则 调用==>__vb2_buf_mem_alloc ==> q->mem_ops->alloc 即vb2_vmalloc_alloc 分配空间,将分配的空间指向vb2_buffer->planes[0].mem_priv ,该指针保存着分配到的空间,该指针指向vb2_vmalloc_buf结构体 ...
.buf_queue = buffer_queue, .start_streaming = start_streaming, .stop_streaming = stop_streaming, .wait_prepare = vb2_ops_wait_prepare, .wait_finish = vb2_ops_wait_finish, };/*0 comments on commit d020ca1 Please sign in to comment. Footer...
swiotlb buffer is full (sz: 479232 bytes), total 32768 (slots), used 0 (slots) Jan 17 00:42:32 raspi kernel: vc4-drm gpu: swiotlb buffer is full (sz: 524288 bytes), total 32768 (slots), used 158 (slots) Jan 17 00:42:32 raspi kernel: vc4-drm gpu: swiotlb buffer is full (...
@@ -122,21 +122,27 @@ static struct vb2_ops uvc_queue_qops = { .buf_finish = uvc_buffer_finish, }; -void uvc_queue_init(struct uvc_video_queue *queue, enum v4l2_buf_type type, +int uvc_queue_init(struct uvc_video_queue *queue, enum v4l2_buf_type type, int drop_corrupted) ...
When we use yavta to test the function flow of V4L2, we will be stuck at __vb2_wait_for_done_vb. Our command: yavta -fUYVY -s720x480 -n4 --capture=5 /dev/video0 After analyzing the log, we found that mx6s_vidioc_dqbuf is not returned and mx6s_csi_irq_handler...
11 @@ static void vpbe_buffer_queue(struct vb2_buffer *vb) static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) { struct vpbe_layer *layer = vb2_get_drv_priv(vq); + struct osd_state *osd_device = layer->disp_dev->osd_device; int ret; + osd_device->ops....
vb->v4l2_buf.sequence = sequence; vb->v4l2_buf.timestamp = *ts; vb->v4l2_buf.reserved = reserved; vb2_buffer_done(vb, VB2_BUF_STATE_DONE); msm_vb2->in_freeq = 0; // vb2_buffer_done ()的实现在videobuf2-core.c中,将vb->done_entry挂到vb->vb2_queue ->done_list上 ...
> +++ b/drivers/media/v4l2-core/videobuf2-core.c > @@ -2583,10 +2583,10 @@ unsigned int vb2_poll(struct vb2_queue *q, struct > file *file, poll_table *wait) > } > > /* > - * There is nothing to wait for if no buffer has been queued and the ...
this patch makes use of vb2_ops_wait_prepare/finish helper functions. Signed-off-by: Lad, Prabhakar <prabhakar.cse...@gmail.com> --- drivers/media/platform/davinci/vpbe_display.c | 20 +++--- 1 file changed, 3 insertions(+), 17 deletions(-)...