]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: rkisp1: Reduce min_queued_buffers to 1
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Mon, 7 Oct 2024 12:42:24 +0000 (14:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Dec 2024 14:51:32 +0000 (15:51 +0100)
commit6c10d1adae82e1c8da16e7ebd2320e69f20b9d6f
tree67579c1988dc46bdaebadac01ab63498933a899b
parent86e5e8efb82cbee416e726e141decdc9e1a2d5f3
media: rkisp1: Reduce min_queued_buffers to 1

There apparently is no reason to require 3 queued buffers to call
streamon() for the RkISP1 as the driver operates with a scratch buffer
where frames can be directed to if there's no available buffer provided
by userspace.

Reduce the number of required buffers to 1 to allow applications to
operate with a single queued buffer.

Tested with libcamera, by operating with a single capture request. The
same request (and associated capture buffer) gets recycled once
completed. This of course causes a frame rate drop but doesn't hinder
operations.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20241007124225.63463-1-jacopo.mondi@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c