<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/usb/gadget/function/f_uvc.c, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-03-30T07:44:04Z</updated>
<entry>
<title>usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval</title>
<updated>2017-03-30T07:44:04Z</updated>
<author>
<name>Roger Quadros</name>
</author>
<published>2017-03-08T14:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1b221121b1651fa5939e6c99197e121d976fea7'/>
<id>urn:sha1:f1b221121b1651fa5939e6c99197e121d976fea7</id>
<content type='text'>
commit 09424c50b7dff40cb30011c09114404a4656e023 upstream.

The streaming_maxburst module parameter is 0 offset (0..15)
so we must add 1 while using it for wBytesPerInterval
calculation for the SuperSpeed companion descriptor.

Without this host uvcvideo driver will always see the wrong
wBytesPerInterval for SuperSpeed uvc gadget and may not find
a suitable video interface endpoint.
e.g. for streaming_maxburst = 0 case it will always
fail as wBytePerInterval was evaluating to 0.

Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Revert "usb: gadget: uvc: Add missing call for additional setup data"</title>
<updated>2017-03-18T11:18:41Z</updated>
<author>
<name>Roger Quadros</name>
</author>
<published>2017-03-02T08:44:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=222095ea64875d3f6e2d4c58b03df8220d164c35'/>
<id>urn:sha1:222095ea64875d3f6e2d4c58b03df8220d164c35</id>
<content type='text'>
commit eb38d913c27f32f4df173791051fecf6aca34173 upstream.

This reverts commit 4fbac5206afd01b717d4bdc58793d471f3391b4b.

This commit breaks g_webcam when used with uvc-gadget [1].

The user space application (e.g. uvc-gadget) is responsible for
sending response to UVC class specific requests on control endpoint
in uvc_send_response() in uvc_v4l2.c.

The bad commit was causing a duplicate response to be sent with
incorrect response data thus causing UVC probe to fail at the host
and broken control transfer endpoint at the gadget.

[1] - git://git.ideasonboard.org/uvc-gadget.git

Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>usb: gadget: uvc: Add missing call for additional setup data</title>
<updated>2016-08-31T07:06:04Z</updated>
<author>
<name>Petr Cvek</name>
</author>
<published>2016-08-17T10:36:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fbac5206afd01b717d4bdc58793d471f3391b4b'/>
<id>urn:sha1:4fbac5206afd01b717d4bdc58793d471f3391b4b</id>
<content type='text'>
Some UVC commands require additional data (non zero uvc-&gt;event_length).
Add usb_ep_queue() call, so uvc_function_ep0_complete() can be called
and send received data to the userspace.

Signed-off-by: Petr Cvek &lt;petr.cvek@tul.cz&gt;
Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_uvc: eliminate abuse of ep-&gt;driver data</title>
<updated>2015-09-27T15:54:31Z</updated>
<author>
<name>Robert Baldyga</name>
</author>
<published>2015-09-16T10:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d62bf8c16570eb44e2ea3fc5c1f6a8ab83e52778'/>
<id>urn:sha1:d62bf8c16570eb44e2ea3fc5c1f6a8ab83e52778</id>
<content type='text'>
Since ep-&gt;driver_data is not used for endpoint claiming, neither for
enabled/disabled state storing, we can reduce number of places where
we read or modify it's value, as now it has no particular meaning for
function or framework logic.

In case of f_uvc, ep-&gt;driver_data was used only for endpoint claiming
and marking endpoints as enabled, so we can simplify code by reducing
it.

Signed-off-by: Robert Baldyga &lt;r.baldyga@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_uvc: use bind_deactivated flag</title>
<updated>2015-07-29T14:59:20Z</updated>
<author>
<name>Robert Baldyga</name>
</author>
<published>2015-05-04T12:55:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f277bf27cf5cd56bcd1c4b95ae140f61680a6e83'/>
<id>urn:sha1:f277bf27cf5cd56bcd1c4b95ae140f61680a6e83</id>
<content type='text'>
Use bind_deactivated flag instead of calling usb_function_deactivate()
in function bind().

Signed-off-by: Robert Baldyga &lt;r.baldyga@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>[media] gadget/uvc: embed video_device</title>
<updated>2015-04-03T02:36:20Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-03-09T16:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dbe98b30d3a0d703369fef9712482e12fc685805'/>
<id>urn:sha1:dbe98b30d3a0d703369fef9712482e12fc685805</id>
<content type='text'>
Embed the video_device struct to simplify the error handling and in
order to (eventually) get rid of video_device_alloc/release.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] uvc gadget: switch to v4l2 core locking</title>
<updated>2015-03-02T20:05:23Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2015-02-17T08:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8e96c4bf6e3cdb6580381fdad2bfd93fae36ff1'/>
<id>urn:sha1:d8e96c4bf6e3cdb6580381fdad2bfd93fae36ff1</id>
<content type='text'>
Switch this driver over to the V4L2 core locking mechanism in preparation
for switching to unlocked_ioctl. Suggested by Laurent Pinchart.

This patch introduces a new mutex at the struct uvc_video level and
drops the old mutex at the queue level. The new lock is now used for all
ioctl locking and in the release file operation (the driver always has
to take care of locking in file operations, the core only serializes
ioctls).

Note that the mmap and get_unmapped_area file operations no longer take
a lock. Commit f035eb4e976ef5a059e30bc91cfd310ff030a7d3 fixed a AB-BA
deadlock by moving all the locking down into vb2, so the mmap and
get_unmapped_area file operations should no longer do any locking before
calling into vb2.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: uvc: configfs support in uvc function</title>
<updated>2015-01-12T18:13:26Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2014-12-10T11:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46919a23ee87bbc4eeb6d958471174e26836f0e1'/>
<id>urn:sha1:46919a23ee87bbc4eeb6d958471174e26836f0e1</id>
<content type='text'>
Add support for using the uvc function as a component of USB gadgets composed
with configfs.

Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: uvc: verify descriptors presence</title>
<updated>2015-01-12T18:13:26Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2014-12-10T11:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c25955ed632227d28b85db274e519b766e26ddd'/>
<id>urn:sha1:6c25955ed632227d28b85db274e519b766e26ddd</id>
<content type='text'>
If the caller of uvc_alloc() does not provide enough
descriptors, binding the function should fail, so appropriate
code is returned from uvc_copy_descriptors().

uvc_function_bind() is modified accordingly to account for possible
errors from uvc_copy_descriptors().

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_uvc: rename a macro to avoid conflicts</title>
<updated>2015-01-12T18:13:26Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2014-12-10T11:34:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bbea6de1bd12dd509f774f2a3165216eeac7bc54'/>
<id>urn:sha1:bbea6de1bd12dd509f774f2a3165216eeac7bc54</id>
<content type='text'>
When configfs is integrated, CONFIGFS_ATTR_STRUCT and CONFIGFS_ATTR_OPS
macros should be used, but the latter expects that tere is a to_f_uvc_opts
function accepting a config_item, whereas the macro being changed
can be applied to a different type of argument.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
</feed>
