<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/media, branch v3.9.6</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/media?h=v3.9.6</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/media?h=v3.9.6'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-04-26T15:17:07Z</updated>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media</title>
<updated>2013-04-26T15:17:07Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-04-26T15:17:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d7d7271f421f1e45289f2a737c7f636c02c673ce'/>
<id>urn:sha1:d7d7271f421f1e45289f2a737c7f636c02c673ce</id>
<content type='text'>
Pull media fixes from Mauro Carvalho Chehab:
 "Two driver fixes.

  One avoids reading any file at a system with a cx25821 board
  (fortunately, this is not a common device).  The other one prevents
  reading after a buffer with ISDB-T devices based on mb86a20s."

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] cx25821: do not expose broken video output streams
  [media] mb86a20s: Fix estimate_rate setting
</content>
</entry>
<entry>
<title>[media] cx25821: do not expose broken video output streams</title>
<updated>2013-04-15T11:28:41Z</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2013-04-14T13:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c95789ecd5a979fd718ae09763df3fa50dd97a91'/>
<id>urn:sha1:c95789ecd5a979fd718ae09763df3fa50dd97a91</id>
<content type='text'>
The cx25821 driver has support for one audio output channel and two video
output channels.
This is implemented in a very ugly and very evil way through a custom ioctl
that passes the filename of a file containing the video data, which is then
read by the driver itself using vfs.
There are a number of problems with this:
1) it's very ugly and very evil (I can't say that often enough).
2) V4L2 supports video output, so why not use that?
3) it's very buggy, closing the filehandle through which you passed the ioctl
   will oops the kernel.
4) it's a nasty security leak since this allows you to load any file in the
   system as a video or audio source, so in theory you can output /etc/passwd
   to audio or video out and record &amp; decode it on another device.
Because of all these issues we no longer register those output video nodes.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] mb86a20s: Fix estimate_rate setting</title>
<updated>2013-04-04T17:32:13Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2013-04-01T14:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f1b0c8217fd9507531152c0d6c12253e2e4e22bd'/>
<id>urn:sha1:f1b0c8217fd9507531152c0d6c12253e2e4e22bd</id>
<content type='text'>
As reported by Dan Carpenter &lt;dan.carpenter@oracle.com&gt;:

	Smatch warnings:
	drivers/media/dvb-frontends/mb86a20s.c:644 mb86a20s_layer_bitrate() error: buffer overflow 'state-&gt;estimated_rate' 3 &lt;= 3

What happens there is that estimate_rate index should be the layer
number, and not the guard interval.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid</title>
<updated>2013-04-04T15:40:45Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-04-04T15:40:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=014642cb0a08d1b12c6089c48c7ba6002a0f6811'/>
<id>urn:sha1:014642cb0a08d1b12c6089c48c7ba6002a0f6811</id>
<content type='text'>
Pull HID fixes from Jiri Kosina:

 - Workaround for device ID conflict between Masterkit MA901 usb radio
   device and Atmel V-USB devices, to avoid regressions from older
   kernels, by Alexey Klimov

 - fix for possible race during input device registration in magicmouse
   driver, by Benjamin Tissoires

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
  HID: magicmouse: fix race between input_register() and probe()
  media: radio-ma901: return ENODEV in probe if usb_device doesn't match
  HID: fix Masterkit MA901 hid quirks
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux</title>
<updated>2013-04-03T17:48:22Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-04-03T17:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=17eb3d8fbe4c573426fc99946040305e79c07803'/>
<id>urn:sha1:17eb3d8fbe4c573426fc99946040305e79c07803</id>
<content type='text'>
Pull s390 fixes from Martin Schwidefsky:
 "Just a bunch of bugfixes"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
  s390/mm: provide emtpy check_pgt_cache() function
  s390/uaccess: fix page table walk
  s390/3270: fix minor_start issue
  s390/uaccess: fix clear_user_pt()
  s390/scm_blk: fix error return code in scm_blk_init()
  s390/scm_block: fix printk format string
  drivers/Kconfig: add several missing GENERIC_HARDIRQS dependencies
</content>
</entry>
<entry>
<title>media: radio-ma901: return ENODEV in probe if usb_device doesn't match</title>
<updated>2013-03-29T14:13:40Z</updated>
<author>
<name>Alexey Klimov</name>
<email>klimov.linux@gmail.com</email>
</author>
<published>2013-03-27T20:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=30b29537bcba070b3df8d7d24c1975676a1a6a4f'/>
<id>urn:sha1:30b29537bcba070b3df8d7d24c1975676a1a6a4f</id>
<content type='text'>
Masterkit MA901 usb radio device shares USB ID with Atmel V-USB devices.
This patch adds additional checks in usb_ma901radio_probe() and if
product or manufacturer doesn't match we return -ENODEV and don't
continue. This allows hid drivers to handle not MA901 device.

Signed-off-by: Alexey Klimov &lt;klimov.linux@gmail.com&gt;
Acked-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>[media] [REGRESSION] bt8xx: Fix too large height in cropcap</title>
<updated>2013-03-26T11:37:00Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2013-03-25T17:45:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=35ccecef6ed48a5602755ddf580c45a026a1dc05'/>
<id>urn:sha1:35ccecef6ed48a5602755ddf580c45a026a1dc05</id>
<content type='text'>
Since commit a1fd287780c8e91fed4957b30c757b0c93021162:
"[media] bttv-driver: fix two warnings"
cropcap.defrect.height and cropcap.bounds.height for the PAL entry are 32
resp 30 pixels too large, if a userspace app (ie xawtv) actually tries to use
the full advertised height, the resulting image is broken in ways only a
screenshot can describe.
The cause of this is the fix for this warning:
drivers/media/pci/bt8xx/bttv-driver.c:308:3: warning: initialized field overwritten [-Woverride-init]
In this chunk of the commit:
@@ -301,11 +301,10 @@ const struct bttv_tvnorm bttv_tvnorms[] = {
                        /* totalwidth */ 1135,
                        /* sqwidth */ 944,
                        /* vdelay */ 0x20,
-                       /* sheight */ 576,
-                       /* videostart0 */ 23)
                /* bt878 (and bt848?) can capture another
                   line below active video. */
-               .cropcap.bounds.height = (576 + 2) + 0x20 - 2,
+                       /* sheight */ (576 + 2) + 0x20 - 2,
+                       /* videostart0 */ 23)
        },{
                .v4l2_id        = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR,
                .name           = "NTSC",
Which replaces the overriding of cropcap.bounds.height initialization outside
of the CROPCAP macro (which also initializes it), with passing a
different sheight value to the CROPCAP macro.
There are 2 problems with this warning fix:
1) The sheight value is used twice in the CROPCAP macro, and the old code
   only changed one resulting value.
2) The old code increased the .cropcap.bounds.height value (and did not
   touch the .cropcap.defrect.height value at all) by 2, where as the fixed
   code increases it by 32, as the fixed code passes (576 + 2) + 0x20 - 2
   to the CROPCAP macro, but the + 0x20 - 2 is already done by the macro so
   now is done twice for .cropcap.bounds.height, and also is applied to
   .cropcap.defrect.height where it should not be applied at all.
This patch fixes this by adding an extraheight parameter to the CROPCAP entry
and using it for the PAL entry.

Cc: stable@kernel.org	# For Kernel 3.8
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] fix compilation with both V4L2 and I2C as 'm'</title>
<updated>2013-03-25T18:09:38Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2013-03-25T15:24:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=532ee00c4459086840eb35cc9c198bf580420aeb'/>
<id>urn:sha1:532ee00c4459086840eb35cc9c198bf580420aeb</id>
<content type='text'>
When config options are:
	CONFIG_VIDEO_DEV=y
	CONFIG_VIDEO_V4L2=m
	CONFIG_I2C=m

Compilation breaks, as reported by:
	https://bugzilla.kernel.org/show_bug.cgi?id=55681

Before changeset 7b34be71db533f3e0cf93d53cf62d036cdb5418a,
no compilation errors occurred. However, the I2C code there at
v4l2-device was incorrectly disabled.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] m5mols: Fix bug in stream on handler</title>
<updated>2013-03-21T21:25:09Z</updated>
<author>
<name>Andrzej Hajda</name>
<email>a.hajda@samsung.com</email>
</author>
<published>2013-02-27T11:21:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6ba4d05e84eeb450011f7f3514ec8556d3b46743'/>
<id>urn:sha1:6ba4d05e84eeb450011f7f3514ec8556d3b46743</id>
<content type='text'>
Due to improper condition check streaming start for some pixel
formats was prevent and the s_stream just reatuned -EINVAL.
This fixes regression introduced in commit 5565a2ad47cdd8e697
[media] m5mols: Protect driver data with a mutex.

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] s5p-fimc: Do not attempt to disable not enabled media pipeline</title>
<updated>2013-03-21T21:24:57Z</updated>
<author>
<name>Sylwester Nawrocki</name>
<email>s.nawrocki@samsung.com</email>
</author>
<published>2013-02-05T18:43:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8c6ecdd7ce11e737eeffbd78fd6a9d4c47d0b26d'/>
<id>urn:sha1:8c6ecdd7ce11e737eeffbd78fd6a9d4c47d0b26d</id>
<content type='text'>
This fixes following warnings when all links are being disconnected:
[   20.080000] WARNING: at drivers/media/platform/s5p-fimc/fimc-mdevice.c:1269 __fimc_md_set_camclk+0x208/0x20c()
[   20.090000] Modules linked in:
[   20.095000] [&lt;c001603c&gt;] (unwind_backtrace+0x0/0x13c) from [&lt;c00246dc&gt;] (warn_slowpath_common+0x54/0x64)
[   20.105000] [&lt;c00246dc&gt;] (warn_slowpath_common+0x54/0x64) from [&lt;c0024708&gt;] (warn_slowpath_null+0x1c/0x24)
[   20.115000] [&lt;c0024708&gt;] (warn_slowpath_null+0x1c/0x24) from [&lt;c0323fe8&gt;] (__fimc_md_set_camclk+0x208/0x20c)
[   20.125000] [&lt;c0323fe8&gt;] (__fimc_md_set_camclk+0x208/0x20c) from [&lt;c0324368&gt;] (__fimc_pipeline_close+0x38/0x48)
[   20.135000] [&lt;c0324368&gt;] (__fimc_pipeline_close+0x38/0x48) from [&lt;c0325848&gt;] (fimc_md_link_notify+0x10c/0x198)
[   20.145000] [&lt;c0325848&gt;] (fimc_md_link_notify+0x10c/0x198) from [&lt;c02f9dd4&gt;] (__media_entity_setup_link+0x1c0/0x1e8)
[   20.155000] [&lt;c02f9dd4&gt;] (__media_entity_setup_link+0x1c0/0x1e8) from [&lt;c02f9710&gt;] (media_device_ioctl+0x2c0/0x41c)
[   20.165000] [&lt;c02f9710&gt;] (media_device_ioctl+0x2c0/0x41c) from [&lt;c02f9938&gt;] (media_ioctl+0x30/0x34)
[   20.175000] [&lt;c02f9938&gt;] (media_ioctl+0x30/0x34) from [&lt;c00cf0bc&gt;] (do_vfs_ioctl+0x84/0x5e8)
[   20.185000] [&lt;c00cf0bc&gt;] (do_vfs_ioctl+0x84/0x5e8) from [&lt;c00cf65c&gt;] (sys_ioctl+0x3c/0x60)
[   20.190000] [&lt;c00cf65c&gt;] (sys_ioctl+0x3c/0x60) from [&lt;c000f040&gt;] (ret_fast_syscall+0x0/0x30)

Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
