lkml.org 
[lkml]   [2023]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 40/55] samples: v4l2: pci: Use min_dma_buffers_needed field
    Date
    v4l2 pci skeleton sample driver use a dma engine and
    needs a minimum number of buffers to be present before
    start streaming.
    That is 'min_dma_buffers_needed' purpose so use it instead
    of 'min_buffers_needed' field.

    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    ---
    samples/v4l/v4l2-pci-skeleton.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/samples/v4l/v4l2-pci-skeleton.c b/samples/v4l/v4l2-pci-skeleton.c
    index a65aa9d1e9da..6018c5e7b3f1 100644
    --- a/samples/v4l/v4l2-pci-skeleton.c
    +++ b/samples/v4l/v4l2-pci-skeleton.c
    @@ -821,7 +821,7 @@ static int skeleton_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
    * available before it can be started. The start_streaming() op
    * won't be called until at least this many buffers are queued up.
    */
    - q->min_buffers_needed = 2;
    + q->min_dma_buffers_needed = 2;
    /*
    * The serialization lock for the streaming ioctls. This is the same
    * as the main serialization lock, but if some of the non-streaming
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-11-27 17:58    [W:2.593 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site