media: bcm2835-unicam: change minimum number of vb2_queue buffers to 1
authorDavid Plowman <david.plowman@raspberrypi.com>
Thu, 28 May 2020 10:09:48 +0000 (11:09 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:06 +0000 (16:04 +0000)
commit65c6287ca6c5ded404637369afb64c313568de40
tree9511aa25abcc5fecf06ea9cf02e0d9e7a67d06f8
parentea42c0f9d60cfa4c792507d15ec59274c17ef56d
media: bcm2835-unicam: change minimum number of vb2_queue buffers to 1

Since the unicam driver was modified to write to a dummy buffer when no
user-supplied buffer is available, it can now write to and return a
buffer even when there's only a single one. Enable this by changing the
min_buffers_needed in the vb2_queue; it will be useful for enabling
still captures without allocating more memory than absolutely necessary.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c