<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/usb, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-12-16T17:37:08Z</updated>
<entry>
<title>media: s2255drv: fix payload size for JPG, MJPEG</title>
<updated>2014-12-16T17:37:08Z</updated>
<author>
<name>sensoray-dev</name>
</author>
<published>2014-11-17T22:50:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ce7c82e8f8616f03120f8bed8e4f344b69fa6a47'/>
<id>urn:sha1:ce7c82e8f8616f03120f8bed8e4f344b69fa6a47</id>
<content type='text'>
commit 1f391217ad8d7cd7b1e48e6e2abf49970cd91d18 upstream.

length is the size of the buffer, not the payload. That's set using
vb2_set_plane_payload().

Signed-off-by: Dean Anderson &lt;linux-dev@sensoray.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: ttusb-dec: buffer overflow in ioctl</title>
<updated>2014-11-21T17:23:14Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2014-09-05T12:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20cd3408e31ba6aecc07d48e1b24cc7ddfd7a988'/>
<id>urn:sha1:20cd3408e31ba6aecc07d48e1b24cc7ddfd7a988</id>
<content type='text'>
commit f2e323ec96077642d397bb1c355def536d489d16 upstream.

We need to add a limit check here so we don't overflow the buffer.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: em28xx-v4l: fix video buffer field order reporting in progressive mode</title>
<updated>2014-11-14T18:10:27Z</updated>
<author>
<name>Frank Schaefer</name>
</author>
<published>2014-08-09T09:37:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2691838d90588731f31a7eca3c3bd022ec64587c'/>
<id>urn:sha1:2691838d90588731f31a7eca3c3bd022ec64587c</id>
<content type='text'>
commit 662c97cf8f9e9d67d45d0a9f0c1565a1ede364c2 upstream.

The correct field order in progressive mode is V4L2_FIELD_NONE, not V4L2_FIELD_INTERLACED.

Signed-off-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: em28xx-v4l: give back all active video buffers to the vb2 core properly on streaming stop</title>
<updated>2014-11-14T18:10:27Z</updated>
<author>
<name>Frank Schaefer</name>
</author>
<published>2014-08-09T09:37:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=525f3e77bcf3cb1162deaff773168f082e149023'/>
<id>urn:sha1:525f3e77bcf3cb1162deaff773168f082e149023</id>
<content type='text'>
commit 627530c32a43283474e9dd3e954519410ffa033a upstream.

When a new video frame is started, the driver takes the next video buffer from
the list of active buffers and moves it to dev-&gt;usb_ctl.vid_buf / dev-&gt;usb_ctl.vbi_buf
for further processing.

On streaming stop we currently only give back the pending buffers from the list
but not the ones which are currently processed.

This causes the following warning from the vb2 core since kernel 3.15:

...
 ------------[ cut here ]------------
 WARNING: CPU: 1 PID: 2284 at drivers/media/v4l2-core/videobuf2-core.c:2115 __vb2_queue_cancel+0xed/0x150 [videobuf2_core]()
 [...]
 Call Trace:
  [&lt;c0769c46&gt;] dump_stack+0x48/0x69
  [&lt;c0245b69&gt;] warn_slowpath_common+0x79/0x90
  [&lt;f925e4ad&gt;] ? __vb2_queue_cancel+0xed/0x150 [videobuf2_core]
  [&lt;f925e4ad&gt;] ? __vb2_queue_cancel+0xed/0x150 [videobuf2_core]
  [&lt;c0245bfd&gt;] warn_slowpath_null+0x1d/0x20
  [&lt;f925e4ad&gt;] __vb2_queue_cancel+0xed/0x150 [videobuf2_core]
  [&lt;f925fa35&gt;] vb2_internal_streamoff+0x35/0x90 [videobuf2_core]
  [&lt;f925fac5&gt;] vb2_streamoff+0x35/0x60 [videobuf2_core]
  [&lt;f925fb27&gt;] vb2_ioctl_streamoff+0x37/0x40 [videobuf2_core]
  [&lt;f8e45895&gt;] v4l_streamoff+0x15/0x20 [videodev]
  [&lt;f8e4925d&gt;] __video_do_ioctl+0x23d/0x2d0 [videodev]
  [&lt;f8e49020&gt;] ? video_ioctl2+0x20/0x20 [videodev]
  [&lt;f8e48c63&gt;] video_usercopy+0x203/0x5a0 [videodev]
  [&lt;f8e49020&gt;] ? video_ioctl2+0x20/0x20 [videodev]
  [&lt;c039d0e7&gt;] ? fsnotify+0x1e7/0x2b0
  [&lt;f8e49012&gt;] video_ioctl2+0x12/0x20 [videodev]
  [&lt;f8e49020&gt;] ? video_ioctl2+0x20/0x20 [videodev]
  [&lt;f8e4461e&gt;] v4l2_ioctl+0xee/0x130 [videodev]
  [&lt;f8e44530&gt;] ? v4l2_open+0xf0/0xf0 [videodev]
  [&lt;c0378de2&gt;] do_vfs_ioctl+0x2e2/0x4d0
  [&lt;c0368eec&gt;] ? vfs_write+0x13c/0x1c0
  [&lt;c0369a8f&gt;] ? vfs_writev+0x2f/0x50
  [&lt;c0379028&gt;] SyS_ioctl+0x58/0x80
  [&lt;c076fff3&gt;] sysenter_do_call+0x12/0x12
 ---[ end trace 5545f934409f13f4 ]---
...

Many thanks to Hans Verkuil, whose recently added check in the vb2 core unveiled
this long standing issue and who has investigated it further.

Signed-off-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: siano: add support for PCTV 77e</title>
<updated>2014-11-14T18:10:27Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2014-08-11T21:09:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e8d91d907d58964afb4c13c5173cd6876158a76'/>
<id>urn:sha1:5e8d91d907d58964afb4c13c5173cd6876158a76</id>
<content type='text'>
commit 29bbb7bd0a65e01a0423e1df764676119b71ecb3 upstream.

Add support for PCTV microStick (77e) device that uses a sms1140
chipset.

Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: em28xx: check if a device has audio earlier"</title>
<updated>2014-11-14T18:10:27Z</updated>
<author>
<name>Frank Schaefer</name>
</author>
<published>2013-12-27T03:16:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b98e9bb0f504895604abd1f1d1a586ab51ee1c4d'/>
<id>urn:sha1:b98e9bb0f504895604abd1f1d1a586ab51ee1c4d</id>
<content type='text'>
commit fb91bde9d3664dd879655f3a1013c0b5728e7a09 upstream.

GIT_AUTHOR_DATE=1409603039
This reverts

commit b99f0aadd33fad269c8e62b5bec8b5c012a44a56
Author: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;

    [media] em28xx: check if a device has audio earlier

    Better to split chipset detection from the audio setup. So, move the
    detection code to em28xx_init_dev().

It broke analog audio of the Hauppauge winTV HVR 900 and very likely many other
em28xx devices.

Background:
The local variable has_audio in em28xx_usb_probe() describes if the currently
probed _usb_interface_ has an audio endpoint, while dev-&gt;audio_mode.has_audio
means that the _device_ as a whole provides analog audio.
Hence it is wrong to set dev-&gt;audio_mode.has_audio = has_audio in em28xx_usb_probe().
As result, audio support is no longer detected and configured on devices which
have the audio endpoint on a separate interface, because em28xx_audio_setup()
bails out immediately at the beginning.

Revert the faulty commit to restore the old audio detection procedure, which checks
the chip configuration register to determine if the device has analog audio.

Cc: &lt;stable@vger.kernel.org&gt;	# 3.14 to 3.16
Reported-by: Oravecz Csaba &lt;oravecz@nytud.mta.hu&gt;
Tested-by: Oravecz Csaba &lt;oravecz@nytud.mta.hu&gt;
Signed-off-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: usb: uvc: add a quirk for Dell XPS M1330 webcam</title>
<updated>2014-11-14T18:10:27Z</updated>
<author>
<name>Paul Fertser</name>
</author>
<published>2014-06-08T15:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa0e20007c07952e1caff5573d64ee18cab73cd5'/>
<id>urn:sha1:fa0e20007c07952e1caff5573d64ee18cab73cd5</id>
<content type='text'>
commit 62ea864f84fed6e04dd033d500d4c9183a83d590 upstream.

As reported on [1], this device needs this quirk to be able to
reliably initialise the webcam.

[1] http://ubuntuforums.org/showthread.php?t=2145996

Cc: stable@vger.kernel.org
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Revert "[media] media: em28xx - remove reset_resume interface"</title>
<updated>2014-09-29T01:25:24Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2014-09-26T09:53:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90a5dbef1a66e9f55b76ccb83c0ef27c0bd87c27'/>
<id>urn:sha1:90a5dbef1a66e9f55b76ccb83c0ef27c0bd87c27</id>
<content type='text'>
The reset_resume call is needed, otherwise it will break resume
on some conditions, depending on the usb ehci/xhci controller.

This reverts commit b89193e0b06f44f48e3bf897a5b5cb4a7aff3359.

Reported-by: Johannes Stezenbach &lt;js@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2"</title>
<updated>2014-09-22T00:27:57Z</updated>
<author>
<name>Frank Schaefer</name>
</author>
<published>2014-09-18T20:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e2c8717c1812628b5538c05250057b37c66fdbe'/>
<id>urn:sha1:8e2c8717c1812628b5538c05250057b37c66fdbe</id>
<content type='text'>
This reverts commit 747dba7de2a51a3db58b665ed3bc8c07921546ec.

It breaks concurrent vbi and video capturing:
While v4l2-&gt;users is the number of users of the whole device (all device nodes),
v4l2_fh_is_singular() only checks the number of users of a specific device node.
As a result. if one device node is open and a second device node is opened
(closed), the device is reinitialized (streaming is stopped).

Reported-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Tested-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] em28xx: fix VBI handling logic</title>
<updated>2014-09-22T00:07:29Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2014-09-19T16:02:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7854c2c5d692a329b4d9a9a73bcf36ae137ee7c'/>
<id>urn:sha1:c7854c2c5d692a329b4d9a9a73bcf36ae137ee7c</id>
<content type='text'>
When both VBI and video are streaming, and video stream is stopped,
a subsequent trial to restart it will fail, because S_FMT will
return -EBUSY.

That prevents applications like zvbi to work properly.

Please notice that, while this fix it fully for zvbi, the
best is to get rid of streaming_users and res_get logic as a hole.

However, this single-line patch is better to be merged at -stable.

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
