-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling more video controls: Contrast, Hue, Sharpness, etc
Follow peterbay's docs: https://github.com/peterbay/uvc-gadget/blob/master/doc/src/video-controls.md Buildroot Adding project-specific patches: https://buildroot.org/downloads/manual/manual.html#customize-patches
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
patches/linux-custom/0001-linux-enable-more-video-controls.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c | ||
index fb0a892..5c850be 100644 | ||
--- a/drivers/usb/gadget/function/f_uvc.c | ||
+++ b/drivers/usb/gadget/function/f_uvc.c | ||
@@ -814,8 +814,8 @@ static struct usb_function_instance *uvc_alloc_inst(void) | ||
pd->bSourceID = 1; | ||
pd->wMaxMultiplier = cpu_to_le16(16*1024); | ||
pd->bControlSize = 2; | ||
- pd->bmControls[0] = 1; | ||
- pd->bmControls[1] = 0; | ||
+ pd->bmControls[0] = 255; | ||
+ pd->bmControls[1] = 6; | ||
pd->iProcessing = 0; | ||
|
||
od = &opts->uvc_output_terminal; |