1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-26 03:05:06 +03:00

uvc: also set dwMinBitRate, dwMaxBitRate and dwDefaultFrameInterval on set_frame

This commit is contained in:
Michael Grzeschik 2024-09-24 23:28:32 +02:00
parent c375c18fc3
commit c58b2c0f74

View file

@ -1049,10 +1049,22 @@ static int uvc_set_frame(char *format_path, const char *format, const struct usb
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "dwDefaultFrameInterval", attrs->dwDefaultFrameInterval);
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "dwMaxVideoFrameBufferSize", attrs->dwMaxVideoFrameBufferSize);
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "dwMinBitRate", attrs->dwMinBitRate);
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "dwMaxBitRate", attrs->dwMaxBitRate);
if (ret != USBG_SUCCESS)
return ret;
ret = usbg_write_dec(frame_path, frame_name, "wHeight", attrs->wHeight);
if (ret != USBG_SUCCESS)
return ret;