Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8eaf52d7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: gadget: f_uvc: Enable required controls for CT and PU"

parents e1eda9a5 0602963b
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -821,9 +821,9 @@ static struct usb_function_instance *uvc_alloc_inst(void)
	cd->wObjectiveFocalLengthMax	= cpu_to_le16(0);
	cd->wOcularFocalLength		= cpu_to_le16(0);
	cd->bControlSize		= 3;
	cd->bmControls[0]		= 2;
	cd->bmControls[1]		= 0;
	cd->bmControls[2]		= 0;
	cd->bmControls[0]		= 46;
	cd->bmControls[1]		= 2;
	cd->bmControls[2]		= 10;

	pd = &opts->uvc_processing;
	pd->bLength			= UVC_DT_PROCESSING_UNIT_SIZE(3);
@@ -833,9 +833,9 @@ static struct usb_function_instance *uvc_alloc_inst(void)
	pd->bSourceID			= 1;
	pd->wMaxMultiplier		= cpu_to_le16(16*1024);
	pd->bControlSize		= 3;
	pd->bmControls[0]		= 64;
	pd->bmControls[1]		= 16;
	pd->bmControls[2]		= 1;
	pd->bmControls[0]		= 90;
	pd->bmControls[1]		= 20;
	pd->bmControls[2]		= 4;
	pd->iProcessing			= 0;
	pd->bmVideoStandards		= 0;