<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/media, branch v3.14.24</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>media: tda7432: Fix setting TDA7432_MUTE bit for TDA7432_RF register</title>
<updated>2014-11-14T16:59:54+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2014-08-08T13:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=da034065ab8d6c0d3ff7678de144f2a583bb2cff'/>
<id>da034065ab8d6c0d3ff7678de144f2a583bb2cff</id>
<content type='text'>
commit 91ba0e59babdb3c7aca836a65f1095b3eaff7b06 upstream.

Fix a copy-paste bug when converting to the control framework.

Fixes: commit 5d478e0de871 ("[media] tda7432: convert to the control framework")

Signed-off-by: Axel Lin &lt;axel.lin@ingics.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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 91ba0e59babdb3c7aca836a65f1095b3eaff7b06 upstream.

Fix a copy-paste bug when converting to the control framework.

Fixes: commit 5d478e0de871 ("[media] tda7432: convert to the control framework")

Signed-off-by: Axel Lin &lt;axel.lin@ingics.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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: ds3000: fix LNB supply voltage on Tevii S480 on initialization</title>
<updated>2014-11-14T16:59:54+00:00</updated>
<author>
<name>Ulrich Eckhardt</name>
<email>uli-lirc@uli-eckhardt.de</email>
</author>
<published>2014-10-10T17:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d72df4e2460fb3569a0a377a37e88658368867e2'/>
<id>d72df4e2460fb3569a0a377a37e88658368867e2</id>
<content type='text'>
commit 8c5bcded11cb607b1bb5920de3b9c882136d27db upstream.

The Tevii S480 outputs 18V on startup for the LNB supply voltage and does not
automatically power down. This blocks other receivers connected
to a satellite channel router (EN50494), since the receivers can not send the
required DiSEqC sequences when the Tevii card is connected to a the same SCR.

This patch switches off the LNB supply voltage on initialization of the frontend.

[mchehab@osg.samsung.com: add a comment about why we're explicitly
 turning off voltage at device init]
Signed-off-by: Ulrich Eckhardt &lt;uli@uli-eckhardt.de&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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 8c5bcded11cb607b1bb5920de3b9c882136d27db upstream.

The Tevii S480 outputs 18V on startup for the LNB supply voltage and does not
automatically power down. This blocks other receivers connected
to a satellite channel router (EN50494), since the receivers can not send the
required DiSEqC sequences when the Tevii card is connected to a the same SCR.

This patch switches off the LNB supply voltage on initialization of the frontend.

[mchehab@osg.samsung.com: add a comment about why we're explicitly
 turning off voltage at device init]
Signed-off-by: Ulrich Eckhardt &lt;uli@uli-eckhardt.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</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-14T16:59:54+00:00</updated>
<author>
<name>Frank Schaefer</name>
<email>fschaefer.oss@googlemail.com</email>
</author>
<published>2014-08-09T09:37:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b6b7c3ec68d527be72c47d3b0c2b7c139bfe895f'/>
<id>b6b7c3ec68d527be72c47d3b0c2b7c139bfe895f</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: m88ts2022: fix 32bit overflow on filter calc</title>
<updated>2014-11-14T16:59:54+00:00</updated>
<author>
<name>Antti Palosaari</name>
<email>crope@iki.fi</email>
</author>
<published>2014-08-21T17:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5b1a2427d4db51cf4a7094c408dc1f9277980ce0'/>
<id>5b1a2427d4db51cf4a7094c408dc1f9277980ce0</id>
<content type='text'>
commit f538e085138e519e25ae0828bd6c6e7492ce8ca4 upstream.

Maximum satellite symbol rate used is 45000000Sps which overflows
when multiplied by 135. As final calculation result is fraction,
we could use mult_frac macro in order to keep calculation inside
32 bit number limits and prevent overflow.

Original bug and fix was provided by Nibble Max. I decided to
implement it differently as it is now.

Reported-by: Nibble Max &lt;nibble.max@gmail.com&gt;
Tested-by: Nibble Max &lt;nibble.max@gmail.com&gt;
Signed-off-by: Antti Palosaari &lt;crope@iki.fi&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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit f538e085138e519e25ae0828bd6c6e7492ce8ca4 upstream.

Maximum satellite symbol rate used is 45000000Sps which overflows
when multiplied by 135. As final calculation result is fraction,
we could use mult_frac macro in order to keep calculation inside
32 bit number limits and prevent overflow.

Original bug and fix was provided by Nibble Max. I decided to
implement it differently as it is now.

Reported-by: Nibble Max &lt;nibble.max@gmail.com&gt;
Tested-by: Nibble Max &lt;nibble.max@gmail.com&gt;
Signed-off-by: Antti Palosaari &lt;crope@iki.fi&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: em28xx: check if a device has audio earlier"</title>
<updated>2014-11-14T16:59:53+00:00</updated>
<author>
<name>Frank Schaefer</name>
<email>fschaefer.oss@googlemail.com</email>
</author>
<published>2013-12-27T03:16:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2589a22324a0dd1c869f91d276e07248c31aa68a'/>
<id>2589a22324a0dd1c869f91d276e07248c31aa68a</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: usb: uvc: add a quirk for Dell XPS M1330 webcam</title>
<updated>2014-11-14T16:59:53+00:00</updated>
<author>
<name>Paul Fertser</name>
<email>fercerpav@gmail.com</email>
</author>
<published>2014-06-08T15:16:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0c44cf55254b9017c9d276458233f7eaf70cc7a0'/>
<id>0c44cf55254b9017c9d276458233f7eaf70cc7a0</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: v4l2-common: fix overflow in v4l_bound_align_image()</title>
<updated>2014-11-14T16:59:53+00:00</updated>
<author>
<name>Maciej Matraszek</name>
<email>m.matraszek@samsung.com</email>
</author>
<published>2014-09-15T08:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a0670d68ca4ba581718b6a7ae83f9abcaadc26bc'/>
<id>a0670d68ca4ba581718b6a7ae83f9abcaadc26bc</id>
<content type='text'>
commit 3bacc10cd4a85bc70bc0b6c001d3bf995c7fe04c upstream.

Fix clamp_align() used in v4l_bound_align_image() to prevent overflow
when passed large value like UINT32_MAX.

 In the current implementation:
    clamp_align(UINT32_MAX, 8, 8192, 3)

returns 8, because in line:

    x = (x + (1 &lt;&lt; (align - 1))) &amp; mask;

x overflows to (-1 + 4) &amp; 0x7 = 3, while expected value is 8192.

v4l_bound_align_image() is heavily used in VIDIOC_S_FMT and
VIDIOC_SUBDEV_S_FMT ioctls handlers, and documentation of the latter
explicitly states that:

"The modified format should be as close as possible to the original
request."
  -- http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-subdev-g-fmt.html

Thus one would expect, that passing UINT32_MAX as format width and
height will result in setting maximum possible resolution for the
device. Particularly, when the driver doesn't support
VIDIOC_ENUM_FRAMESIZES ioctl, which is common in the codebase.

Fixes changeset: b0d3159be9a3

Signed-off-by: Maciej Matraszek &lt;m.matraszek@samsung.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 3bacc10cd4a85bc70bc0b6c001d3bf995c7fe04c upstream.

Fix clamp_align() used in v4l_bound_align_image() to prevent overflow
when passed large value like UINT32_MAX.

 In the current implementation:
    clamp_align(UINT32_MAX, 8, 8192, 3)

returns 8, because in line:

    x = (x + (1 &lt;&lt; (align - 1))) &amp; mask;

x overflows to (-1 + 4) &amp; 0x7 = 3, while expected value is 8192.

v4l_bound_align_image() is heavily used in VIDIOC_S_FMT and
VIDIOC_SUBDEV_S_FMT ioctls handlers, and documentation of the latter
explicitly states that:

"The modified format should be as close as possible to the original
request."
  -- http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-subdev-g-fmt.html

Thus one would expect, that passing UINT32_MAX as format width and
height will result in setting maximum possible resolution for the
device. Particularly, when the driver doesn't support
VIDIOC_ENUM_FRAMESIZES ioctl, which is common in the codebase.

Fixes changeset: b0d3159be9a3

Signed-off-by: Maciej Matraszek &lt;m.matraszek@samsung.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: vb2: fix VBI/poll regression</title>
<updated>2014-10-09T19:21:27+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2014-09-20T19:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cbb87efb98dfabed6dd73b040f25badeaf319960'/>
<id>cbb87efb98dfabed6dd73b040f25badeaf319960</id>
<content type='text'>
commit 58d75f4b1ce26324b4d809b18f94819843a98731 upstream.

The recent conversion of saa7134 to vb2 unconvered a poll() bug that
broke the teletext applications alevt and mtt. These applications
expect that calling poll() without having called VIDIOC_STREAMON will
cause poll() to return POLLERR. That did not happen in vb2.

This patch fixes that behavior. It also fixes what should happen when
poll() is called when STREAMON is called but no buffers have been
queued. In that case poll() will also return POLLERR, but only for
capture queues since output queues will always return POLLOUT
anyway in that situation.

This brings the vb2 behavior in line with the old videobuf behavior.

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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 58d75f4b1ce26324b4d809b18f94819843a98731 upstream.

The recent conversion of saa7134 to vb2 unconvered a poll() bug that
broke the teletext applications alevt and mtt. These applications
expect that calling poll() without having called VIDIOC_STREAMON will
cause poll() to return POLLERR. That did not happen in vb2.

This patch fixes that behavior. It also fixes what should happen when
poll() is called when STREAMON is called but no buffers have been
queued. In that case poll() will also return POLLERR, but only for
capture queues since output queues will always return POLLOUT
anyway in that situation.

This brings the vb2 behavior in line with the old videobuf behavior.

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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: adv7604: fix inverted condition</title>
<updated>2014-10-05T21:52:23+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil@xs4all.nl</email>
</author>
<published>2014-09-12T09:02:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4f31b027c3f2671d3d1da47666a23eca930baafb'/>
<id>4f31b027c3f2671d3d1da47666a23eca930baafb</id>
<content type='text'>
commit 77639ff2b3404a913b8037d230a384798b854bae upstream.

The log_status function should show HDMI information, but the test checking for
an HDMI input was inverted. Fix this.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 77639ff2b3404a913b8037d230a384798b854bae upstream.

The log_status function should show HDMI information, but the test checking for
an HDMI input was inverted. Fix this.

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;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: cx18: fix kernel oops with tda8290 tuner</title>
<updated>2014-10-05T21:52:23+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2014-08-26T05:59:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=66c644d7226b430e499757177c27872ba3479b23'/>
<id>66c644d7226b430e499757177c27872ba3479b23</id>
<content type='text'>
commit 6a03dc92cc2edfa2257502557b9f714893987383 upstream.

This was caused by an uninitialized setup.config field.

Based on a suggestion from Devin Heitmueller.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Thanks-to: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Reported-by: Scott Robinson &lt;scott.robinson55@gmail.com&gt;
Tested-by: Hans Verkuil &lt;hans.verkuil@cisco.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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 6a03dc92cc2edfa2257502557b9f714893987383 upstream.

This was caused by an uninitialized setup.config field.

Based on a suggestion from Devin Heitmueller.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Thanks-to: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Reported-by: Scott Robinson &lt;scott.robinson55@gmail.com&gt;
Tested-by: Hans Verkuil &lt;hans.verkuil@cisco.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;

</pre>
</div>
</content>
</entry>
</feed>
