diff options
-rw-r--r-- | uvc-gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uvc-gadget.c b/uvc-gadget.c index 5ec81fb..8ccfa07 100644 --- a/uvc-gadget.c +++ b/uvc-gadget.c @@ -298,7 +298,7 @@ uvc_fill_streaming_control(struct uvc_device *dev, break; } - ctrl->dwMaxPayloadTransferSize = 512; /* TODO this should be filled by the driver. */ + ctrl->dwMaxPayloadTransferSize = dev->fc->streaming.ep.wMaxPacketSize; ctrl->bmFramingInfo = 3; ctrl->bPreferedVersion = 1; ctrl->bMaxVersion = 1; |