]> Git Repo - J-linux.git/commitdiff
media: verisilicon: Support removing buffers on capture queue
authorBenjamin Gaignard <[email protected]>
Thu, 14 Mar 2024 15:32:26 +0000 (16:32 +0100)
committerHans Verkuil <[email protected]>
Mon, 25 Mar 2024 11:00:44 +0000 (12:00 +0100)
Allow to remove buffers on capture queue because it the one which
own the decoded buffers. After a dynamic resolution change lot of
them could remain allocated but won't be used anymore so deleting
them save memory.

Signed-off-by: Benjamin Gaignard <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
drivers/media/platform/verisilicon/hantro_v4l2.c

index 941fa23c211a533e807f7e92ddc81116c07ffe77..df6f2536263bb61f26ec2e7742a1f38a2b56e91a 100644 (file)
@@ -756,6 +756,7 @@ const struct v4l2_ioctl_ops hantro_ioctl_ops = {
        .vidioc_dqbuf = v4l2_m2m_ioctl_dqbuf,
        .vidioc_prepare_buf = v4l2_m2m_ioctl_prepare_buf,
        .vidioc_create_bufs = v4l2_m2m_ioctl_create_bufs,
+       .vidioc_remove_bufs = v4l2_m2m_ioctl_remove_bufs,
        .vidioc_expbuf = v4l2_m2m_ioctl_expbuf,
 
        .vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
This page took 0.071872 seconds and 4 git commands to generate.