Skip to content

Support DMA-BUF memory type in buffer queue #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

liangchingyun
Copy link
Contributor

  • Added VB2_DMABUF to vb2_queue.io_modes
  • Set mem_ops to vb2_dma_contig_memops for physically contiguous memory
  • Implemented buf_init() and buf_cleanup() to manage per-buffer state

- Added VB2_DMABUF to vb2_queue.io_modes
- Set mem_ops to vb2_dma_contig_memops for physically contiguous memory
- Implemented buf_init() and buf_cleanup() to manage per-buffer state
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve the configuration tool to make it aware of DMABUF.

Enable configuring vcam device memory type via user-space tool and driver.
Users can now specify whether to use MMAP or DMABUF for buffer management.
@@ -56,7 +56,7 @@ $ sudo ./vcam-util -l
You should get:
```
Available virtual V4L2 compatible devices:
1. fbX(640,480,rgb24) -> /dev/video0
1. fbX(640,480,rgb24,mmap) -> /dev/video0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add note for DMA-BUF to illustrate the results.

Briefly describe DMA-BUF's purpose for cross-device buffer sharing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants