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

Commit 0602963b authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Gerrit - the friendly Code Review server
Browse files

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



Enable required basic controls for Camera Terminal and Processing Unit.

Change-Id: Ibff376cab41a709c073655ba2415274eacc37544
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 9093207f
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;