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:
parent
c375c18fc3
commit
c58b2c0f74
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue