I was going thru video_loopback DMAI application. I plan to use this logic for
dm365 encode demo to get rid of framecopy. DM365 supports usermode buffer
management for both capture and display drivers.
The issue with the code is it allocates buftab of NUM_BUFS(6) =
NUM_DISPLAY_BUFS(3) + NUM_CAPTURE_BUFS(3). But when passing buftab to
capture_create or display_create it passes pointer to buftab with
NUM_DISPLAY_BUFS or NUM_CAPTURE_BUFS respectively. There is no usemask for this
application. So only 3 buffers are used in the application, and same buffers are
queued in capture and display. Should the application create three buffers?
The application works fine in DM365, but is it OK to queue same buffers in both
capture and display queue?