Commit 4c2cef19 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Neill Kapron
Browse files

FROMGIT: usb: gadget: uvc: set nbuffers to minimum STREAMING_MIN_BUFFERS in uvc_queue_setup



We set the minimum amount of v4l2 buffers that is possibly be pending
to UVCG_STREAMING_MIN_BUFFERS which is two. This way the driver will
always have at least one frame pending to be encoded while the other
is being enqueued in the hardware.

Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20240403-uvc_request_length_by_interval-v7-7-e224bb1035f0@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 379236348
(cherry picked from commit 1dc2527c https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/

 usb-next)
Change-Id: I7b699270d0960d905a938d500d80a0691a22df10
Signed-off-by: default avatarSelvarasu Ganesan <selvarasu.g@samsung.com>
parent ef1542d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment