<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/pci, branch linux-3.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-07-01T03:13:59Z</updated>
<entry>
<title>media: saa7134: fix regression with tvtime</title>
<updated>2014-07-01T03:13:59Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-04-17T10:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba04d3758729d795c7ffca9f8d7dd1c4e07ac2c8'/>
<id>urn:sha1:ba04d3758729d795c7ffca9f8d7dd1c4e07ac2c8</id>
<content type='text'>
commit 17e7f1b515803e1a79b246688aacbddd2e34165d upstream.

This solves this bug:

https://bugzilla.kernel.org/show_bug.cgi?id=73361

The problem is that when you quit tvtime it calls STREAMOFF, but then it queues a
bunch of buffers for no good reason before closing the file descriptor.

In the past closing the fd would free the vb queue since that was part of the file
handle struct. Since that was moved to the global struct that no longer happened.

This wouldn't be a problem, but the extra QBUF calls that tvtime does meant that
the buffer list in videobuf (q-&gt;stream) contained buffers, so REQBUFS would fail
with -EBUSY.

The solution is to init the list head explicitly when releasing the file
descriptor and to not free the video resource when calling streamoff.

The real fix will hopefully go into kernel 3.16 when the vb2 conversion is
merged. Basically the saa7134 driver with the old videobuf is so full of holes it
ain't funny anymore, so consider this a band-aid for kernels 3.14 and 15.

Signed-off-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>
</entry>
<entry>
<title>media: ivtv: Fix Oops when no firmware is loaded</title>
<updated>2014-07-01T03:13:57Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2014-05-05T14:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e84b7ee8356e2df799c6329e0a4994d4a04bcece'/>
<id>urn:sha1:e84b7ee8356e2df799c6329e0a4994d4a04bcece</id>
<content type='text'>
commit deb29e90221a6d4417aa67be971613c353180331 upstream.

When ivtv PCM device is accessed at the state where no firmware is
loaded, it oopses like:

  BUG: unable to handle kernel NULL pointer dereference at 0000000000000050
  IP: [&lt;ffffffffa049a881&gt;] try_mailbox.isra.0+0x11/0x50 [ivtv]
  Call Trace:
    [&lt;ffffffffa049aa20&gt;] ivtv_api_call+0x160/0x6b0 [ivtv]
    [&lt;ffffffffa049af86&gt;] ivtv_api+0x16/0x40 [ivtv]
    [&lt;ffffffffa049b10c&gt;] ivtv_vapi+0xac/0xc0 [ivtv]
    [&lt;ffffffffa049d40d&gt;] ivtv_start_v4l2_encode_stream+0x19d/0x630 [ivtv]
    [&lt;ffffffffa0530653&gt;] snd_ivtv_pcm_capture_open+0x173/0x1c0 [ivtv_alsa]
    [&lt;ffffffffa04526f1&gt;] snd_pcm_open_substream+0x51/0x100 [snd_pcm]
    [&lt;ffffffffa0452853&gt;] snd_pcm_open+0xb3/0x260 [snd_pcm]
    [&lt;ffffffffa0452a37&gt;] snd_pcm_capture_open+0x37/0x50 [snd_pcm]
    [&lt;ffffffffa033f557&gt;] snd_open+0xa7/0x1e0 [snd]
    [&lt;ffffffff8118a628&gt;] chrdev_open+0x88/0x1d0
    [&lt;ffffffff811840be&gt;] do_dentry_open+0x1de/0x270
    [&lt;ffffffff81193a73&gt;] do_last+0x1c3/0xec0
    [&lt;ffffffff81194826&gt;] path_openat+0xb6/0x670
    [&lt;ffffffff81195b65&gt;] do_filp_open+0x35/0x80
    [&lt;ffffffff81185449&gt;] do_sys_open+0x129/0x210
    [&lt;ffffffff815b782d&gt;] system_call_fastpath+0x1a/0x1f

This patch adds the check of firmware at PCM open callback like other
open callbacks of this driver.

Bugzilla: https://apibugzilla.novell.com/show_bug.cgi?id=875440

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-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>
</entry>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media</title>
<updated>2014-04-04T16:50:07Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2014-04-04T16:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c83e61e67256e0bb08c46cc2db43b58fd617251'/>
<id>urn:sha1:3c83e61e67256e0bb08c46cc2db43b58fd617251</id>
<content type='text'>
Pull media updates from Mauro Carvalho Chehab:
 "The main set of series of patches for media subsystem, including:
   - document RC sysfs class
   - added an API to setup scancode to allow waking up systems using the
     Remote Controller
   - add API for SDR devices.  Drivers are still on staging
   - some API improvements for getting EDID data from media
     inputs/outputs
   - new DVB frontend driver for drx-j (ATSC)
   - one driver (it913x/it9137) got removed, in favor of an improvement
     on another driver (af9035)
   - added a skeleton V4L2 PCI driver at documentation
   - added a dual flash driver (lm3646)
   - added a new IR driver (img-ir)
   - added an IR scancode decoder for the Sharp protocol
   - some improvements at the usbtv driver, to allow its core to be
     reused.
   - added a new SDR driver (rtl2832u_sdr)
   - added a new tuner driver (msi001)
   - several improvements at em28xx driver to fix PM support, device
     removal and to split the V4L2 specific bits into a separate
     sub-driver
   - one driver got converted to videobuf2 (s2255drv)
   - the e4000 tuner driver now follows an improved binding model
   - some fixes at V4L2 compat32 code
   - several fixes and enhancements at videobuf2 code
   - some cleanups at V4L2 API documentation
   - usual driver enhancements, new board additions and misc fixups"

[ NOTE! This merge effective drops commit 4329b93b283c ("of: Reduce
  indentation in of_graph_get_next_endpoint").

  The of_graph_get_next_endpoint() function was moved and renamed by
  commit fd9fdb78a9bf ("[media] of: move graph helpers from
  drivers/media/v4l2-core to drivers/of").  It was originally called
  v4l2_of_get_next_endpoint() and lived in the file
  drivers/media/v4l2-core/v4l2-of.c.

  In that original location, it was then fixed to support empty port
  nodes by commit b9db140c1e46 ("[media] v4l: of: Support empty port
  nodes"), and that commit clashes badly with the dropped "Reduce
  intendation" commit.  I had to choose one or the other, and decided
  that the "Support empty port nodes" commit was more important ]

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (426 commits)
  [media] em28xx-dvb: fix PCTV 461e tuner I2C binding
  Revert "[media] em28xx-dvb: fix PCTV 461e tuner I2C binding"
  [media] em28xx: fix PCTV 290e LNA oops
  [media] em28xx-dvb: fix PCTV 461e tuner I2C binding
  [media] m88ds3103: fix bug on .set_tone()
  [media] saa7134: fix WARN_ON during resume
  [media] v4l2-dv-timings: add module name, description, license
  [media] videodev2.h: add parenthesis around macro arguments
  [media] saa6752hs: depends on CRC32
  [media] si4713: fix Kconfig dependencies
  [media] Sensoray 2255 uses videobuf2
  [media] adv7180: free an interrupt on failure paths in init_device()
  [media] e4000: make VIDEO_V4L2 dependency optional
  [media] af9033: Don't export functions for the hardware filter
  [media] af9035: use af9033 PID filters
  [media] af9033: implement PID filter
  [media] rtl2832_sdr: do not use dynamic stack allocation
  [media] e4000: fix 32-bit build error
  [media] em28xx-audio: make sure audio is unmuted on open()
  [media] DocBook media: v4l2_format_sdr was renamed to v4l2_sdr_format
  ...
</content>
</entry>
<entry>
<title>[media] saa7134: fix WARN_ON during resume</title>
<updated>2014-03-28T21:09:49Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-03-07T10:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30d652823de5fd7907d40e969a2d8e23938d8d03'/>
<id>urn:sha1:30d652823de5fd7907d40e969a2d8e23938d8d03</id>
<content type='text'>
Do not attempt to reload the tuner modules when resuming after a suspend.
This triggers a WARN_ON in kernel/kmod.c:148 __request_module.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=69581.

This has always been wrong, but it was never noticed until the WARN_ON
was added in 3.9.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Cc: stable@vger.kernel.org      # for v3.9 and up
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] ddbridge: remove unneeded an NULL check</title>
<updated>2014-03-11T18:55:37Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2014-03-01T13:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdcb12e78a4559c1842fbf8fb82e770b9f7362d6'/>
<id>urn:sha1:cdcb12e78a4559c1842fbf8fb82e770b9f7362d6</id>
<content type='text'>
Static checkers complain about the inconsistent NULL check here.

There is an unchecked dereference of "input-&gt;fe" in the call to
tuner_attach_tda18271() and there is a second unchecked dereference a
couple lines later when we do:
	input-&gt;fe2-&gt;tuner_priv = input-&gt;fe-&gt;tuner_priv;

But actually "intput-&gt;fe" can't be NULL because if demod_attach_drxk()
fails to allocate it, then we would have return an error code.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] av7110_hw: fix a sanity check in av7110_fw_cmd()</title>
<updated>2014-03-11T18:54:49Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2014-03-01T13:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f8817c9ea1f44aca9f342c6a314da4eb64ba0cb4'/>
<id>urn:sha1:f8817c9ea1f44aca9f342c6a314da4eb64ba0cb4</id>
<content type='text'>
ARRAY_SIZE(buf) (8 elements) was intended instead of sizeof(buf) (16
bytes).  But this is just a sanity check and the callers always pass
valid values so this doesn't cause a problem.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: abstract access to allowed/enabled protocols</title>
<updated>2014-03-11T16:24:39Z</updated>
<author>
<name>James Hogan</name>
</author>
<published>2014-02-28T23:17:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a1934fab0c920f0d3bceeb60c9fe2dae8a56be9'/>
<id>urn:sha1:1a1934fab0c920f0d3bceeb60c9fe2dae8a56be9</id>
<content type='text'>
The allowed and enabled protocol masks need to be expanded to be per
filter type in order to support wakeup filter protocol selection. To
ease that process abstract access to the rc_dev::allowed_protos and
rc_dev::enabled_protocols members with inline functions.

Signed-off-by: James Hogan &lt;james.hogan@imgtec.com&gt;
Reviewed-by: Antti Seppälä &lt;a.seppala@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] bttv: Add support for Kworld V-Stream Xpert TV PVR878</title>
<updated>2014-03-11T14:40:31Z</updated>
<author>
<name>Pojar George</name>
</author>
<published>2014-02-07T17:56:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=493a9cfdb9f7bd576603d15778419dddd49994a2'/>
<id>urn:sha1:493a9cfdb9f7bd576603d15778419dddd49994a2</id>
<content type='text'>
New board addition. No other changes.

[m.chehab@samsung.com: rebase patch and fix whitespace mangling]
Signed-off-by: Pojar George &lt;geoubuntu@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vb2: call buf_finish from __queue_cancel</title>
<updated>2014-03-11T09:56:39Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-03-04T10:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c0863b1cc485f2bacac0675c68b73e5341cfd26'/>
<id>urn:sha1:9c0863b1cc485f2bacac0675c68b73e5341cfd26</id>
<content type='text'>
If a queue was canceled, then the buf_finish op was never called for the
pending buffers. So add this call to queue_cancel. Before calling buf_finish
set the buffer state to PREPARED, which is the correct state. That way the
states DONE and ERROR will only be seen in buf_finish if streaming is in
progress.

Since buf_finish can now be called from non-streaming state we need to
adapt the handful of drivers that actually need to know this.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] vb2: change result code of buf_finish to void</title>
<updated>2014-03-11T09:56:38Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-03-04T10:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0647064293d745720fc62e2edc7734fa8af06adf'/>
<id>urn:sha1:0647064293d745720fc62e2edc7734fa8af06adf</id>
<content type='text'>
The buf_finish op should always work, so change the return type to void.
Update the few drivers that use it.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Pawel Osciak &lt;pawel@osciak.com&gt;
Reviewed-by: Pawel Osciak &lt;pawel@osciak.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
</feed>
