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

Commit ba296efe authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Vijayavardhan Vennapusa
Browse files

usb: gadget: uvc: Add support for UVC 1.5



Add UVC 1.5 specification support for the existing
peripheral UVC function driver.
Also add support for H264 format streaming.

Change-Id: I3efe7db77793990ce76af7dcc566f91daeb05436
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent e4246b65
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static struct usb_interface_descriptor uvc_control_intf = {
	.bNumEndpoints		= 1,
	.bInterfaceClass	= USB_CLASS_VIDEO,
	.bInterfaceSubClass	= UVC_SC_VIDEOCONTROL,
	.bInterfaceProtocol	= 0x00,
	.bInterfaceProtocol	= 0x01,
	.iInterface		= 0,
};

@@ -816,16 +816,18 @@ static struct usb_function_instance *uvc_alloc_inst(void)
	cd->bmControls[2]		= 0;

	pd = &opts->uvc_processing;
	pd->bLength			= UVC_DT_PROCESSING_UNIT_SIZE(2);
	pd->bLength			= UVC_DT_PROCESSING_UNIT_SIZE(3);
	pd->bDescriptorType		= USB_DT_CS_INTERFACE;
	pd->bDescriptorSubType		= UVC_VC_PROCESSING_UNIT;
	pd->bUnitID			= 2;
	pd->bSourceID			= 1;
	pd->wMaxMultiplier		= cpu_to_le16(16*1024);
	pd->bControlSize		= 2;
	pd->bmControls[0]		= 1;
	pd->bmControls[1]		= 0;
	pd->bControlSize		= 3;
	pd->bmControls[0]		= 64;
	pd->bmControls[1]		= 16;
	pd->bmControls[2]		= 1;
	pd->iProcessing			= 0;
	pd->bmVideoStandards		= 0;

	od = &opts->uvc_output_terminal;
	od->bLength			= UVC_DT_OUTPUT_TERMINAL_SIZE;
+448 −67

File changed.

Preview size limit exceeded, changes collapsed.

+96 −2

File changed.

Preview size limit exceeded, changes collapsed.