lkml.org 
[lkml]   [2020]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer
    From
    Date
    Added Sylwester and Tomasz.

    I'd like to have an Ack of a driver maintainer before merging.

    Regards,

    Hans

    On 02/05/2020 21:40, Andriy Gelman wrote:
    > From: Andriy Gelman <andriy.gelman@gmail.com>
    >
    > As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag.
    >
    > Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
    > ---
    > drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 +
    > 1 file changed, 1 insertion(+)
    >
    > diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
    > index 5c2a23b953a4..b3d9b3a523fe 100644
    > --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
    > +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
    > @@ -614,6 +614,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx)
    > list_del(&mb_entry->list);
    > ctx->dst_queue_cnt--;
    > vb2_set_plane_payload(&mb_entry->b->vb2_buf, 0, 0);
    > + mb_entry->b->flags |= V4L2_BUF_FLAG_LAST;
    > vb2_buffer_done(&mb_entry->b->vb2_buf, VB2_BUF_STATE_DONE);
    > }
    >
    >

    \
     
     \ /
      Last update: 2020-09-17 10:49    [W:2.397 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site