<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/pci, branch linux-3.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-04-12T16:12:45Z</updated>
<entry>
<title>bttv: Width must be a multiple of 16 when capturing planar formats</title>
<updated>2016-04-12T16:12:45Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2016-02-07T11:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=99c6a13bc3becce56f8dbf3a6c5944b5b09a051f'/>
<id>urn:sha1:99c6a13bc3becce56f8dbf3a6c5944b5b09a051f</id>
<content type='text'>
commit 5c915c68763889f0183a1cc61c84bb228b60124a upstream.

On my bttv card "Hauppauge WinTV [card=10]" capturing in YV12 fmt at max
size results in a solid green rectangle being captured (all colors 0 in
YUV).

This turns out to be caused by max-width (924) not being a multiple of 16.

We've likely never hit this problem before since normally xawtv / tvtime,
etc. will prefer packed pixel formats. But when using a video card which
is using xf86-video-modesetting + glamor, only planar XVideo fmts are
available, and xawtv will chose a matching capture format to avoid needing
to do conversion, triggering the solid green window problem.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Acked-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>saa7134: Fix bytesperline not being set correctly for planar formats</title>
<updated>2016-04-12T16:12:45Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2016-02-14T19:51:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a1ccbffd953416ba7efce318f1e803f90275772'/>
<id>urn:sha1:4a1ccbffd953416ba7efce318f1e803f90275772</id>
<content type='text'>
commit 3e71da19f9dc22e39a755d6ae9678661abb66adc upstream.

bytesperline should be the bytesperline for the first plane for planar
formats, not that of all planes combined.

This fixes a crash in xawtv caused by the wrong bpl.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1305389
Reported-and-tested-by: Stas Sergeev &lt;stsp@list.ru&gt;

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.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>saa7134-alsa: Only frees registered sound cards</title>
<updated>2016-02-17T20:34:38Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2016-02-04T17:59:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c93f65d05cc53240cc47b5c7c03267d6e13b559'/>
<id>urn:sha1:4c93f65d05cc53240cc47b5c7c03267d6e13b559</id>
<content type='text'>
commit ac75fe5d8fe4a0bf063be18fb29684405279e79e upstream.

That prevents this bug:
[ 2382.269496] BUG: unable to handle kernel NULL pointer dereference at 0000000000000540
[ 2382.270013] IP: [&lt;ffffffffa01fe616&gt;] snd_card_free+0x36/0x70 [snd]
[ 2382.270013] PGD 0
[ 2382.270013] Oops: 0002 [#1] SMP
[ 2382.270013] Modules linked in: saa7134_alsa(-) tda1004x saa7134_dvb videobuf2_dvb dvb_core tda827x tda8290 tuner saa7134 tveeprom videobuf2_dma_sg videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media auth_rpcgss nfsv4 dns_resolver nfs lockd grace sunrpc tun bridge stp llc ebtables ip6table_filter ip6_tables nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack it87 hwmon_vid snd_hda_codec_idt snd_hda_codec_generic iTCO_wdt iTCO_vendor_support snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_seq pcspkr i2c_i801 snd_seq_device snd_pcm snd_timer lpc_ich snd mfd_core soundcore binfmt_misc i915 video i2c_algo_bit drm_kms_helper drm r8169 ata_generic serio_raw pata_acpi mii i2c_core [last unloaded: videobuf2_memops]
[ 2382.270013] CPU: 0 PID: 4899 Comm: rmmod Not tainted 4.5.0-rc1+ #4
[ 2382.270013] Hardware name: PCCHIPS P17G/P17G, BIOS 080012  05/14/2008
[ 2382.270013] task: ffff880039c38000 ti: ffff88003c764000 task.ti: ffff88003c764000
[ 2382.270013] RIP: 0010:[&lt;ffffffffa01fe616&gt;]  [&lt;ffffffffa01fe616&gt;] snd_card_free+0x36/0x70 [snd]
[ 2382.270013] RSP: 0018:ffff88003c767ea0  EFLAGS: 00010286
[ 2382.270013] RAX: ffff88003c767eb8 RBX: 0000000000000000 RCX: 0000000000006260
[ 2382.270013] RDX: ffffffffa020a060 RSI: ffffffffa0206de1 RDI: ffff88003c767eb0
[ 2382.270013] RBP: ffff88003c767ed8 R08: 0000000000019960 R09: ffffffff811a5412
[ 2382.270013] R10: ffffea0000d7c200 R11: 0000000000000000 R12: ffff88003c767ea8
[ 2382.270013] R13: 00007ffe760617f7 R14: 0000000000000000 R15: 0000557625d7f1e0
[ 2382.270013] FS:  00007f80bb1c0700(0000) GS:ffff88003f400000(0000) knlGS:0000000000000000
[ 2382.270013] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 2382.270013] CR2: 0000000000000540 CR3: 000000003c00f000 CR4: 00000000000006f0
[ 2382.270013] Stack:
[ 2382.270013]  000000003c767ed8 ffffffff00000000 ffff880000000000 ffff88003c767eb8
[ 2382.270013]  ffff88003c767eb8 ffffffffa049a890 00007ffe76060060 ffff88003c767ef0
[ 2382.270013]  ffffffffa049889d ffffffffa049a500 ffff88003c767f48 ffffffff8111079c
[ 2382.270013] Call Trace:
[ 2382.270013]  [&lt;ffffffffa049889d&gt;] saa7134_alsa_exit+0x1d/0x780 [saa7134_alsa]
[ 2382.270013]  [&lt;ffffffff8111079c&gt;] SyS_delete_module+0x19c/0x1f0
[ 2382.270013]  [&lt;ffffffff8170fc2e&gt;] entry_SYSCALL_64_fastpath+0x12/0x71
[ 2382.270013] Code: 20 a0 48 c7 c6 e1 6d 20 a0 48 89 e5 41 54 53 4c 8d 65 d0 48 89 fb 48 83 ec 28 c7 45 d0 00 00 00 00 49 8d 7c 24 08 e8 7a 55 ed e0 &lt;4c&gt; 89 a3 40 05 00 00 48 89 df e8 eb fd ff ff 85 c0 75 1a 48 8d
[ 2382.270013] RIP  [&lt;ffffffffa01fe616&gt;] snd_card_free+0x36/0x70 [snd]
[ 2382.270013]  RSP &lt;ffff88003c767ea0&gt;
[ 2382.270013] CR2: 0000000000000540

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: cx18: fix kernel oops with tda8290 tuner</title>
<updated>2014-10-05T21:52:23Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-08-26T05:59:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66c644d7226b430e499757177c27872ba3479b23'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>media: saa7134: fix regression with tvtime</title>
<updated>2014-07-01T03:11: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=8fad854f23f319248d7533cb92896a3527c99719'/>
<id>urn:sha1:8fad854f23f319248d7533cb92896a3527c99719</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:11:58Z</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=edf9ebfc0e9cb7058d97cffadee22f5aa94cc19e'/>
<id>urn:sha1:edf9ebfc0e9cb7058d97cffadee22f5aa94cc19e</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>media: saa7134: fix WARN_ON during resume</title>
<updated>2014-05-06T14:59:32Z</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=dadb8da6f06b6c38ad64a39432e470ca75028ef7'/>
<id>urn:sha1:dadb8da6f06b6c38ad64a39432e470ca75028ef7</id>
<content type='text'>
commit 30d652823de5fd7907d40e969a2d8e23938d8d03 upstream.

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;
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] update Michael Krufky's email address</title>
<updated>2014-02-04T08:34:21Z</updated>
<author>
<name>Michael Krufky</name>
</author>
<published>2014-01-30T02:10:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=08e10972661db78d0e0a2d4a4c28fc3bf93617ba'/>
<id>urn:sha1:08e10972661db78d0e0a2d4a4c28fc3bf93617ba</id>
<content type='text'>
I am no longer available at the kernellabs.com or m1k.net email
addresses.  Update each instance of my email to my linuxtv.org
account.

Signed-off-by: Michael Krufky &lt;mkrufky@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: bt8xx: add missing put_device call</title>
<updated>2014-02-04T08:27:38Z</updated>
<author>
<name>Levente Kurusa</name>
</author>
<published>2013-12-19T15:06:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38121b6ef314e556d3b59acc0c41a4d6f7e597fa'/>
<id>urn:sha1:38121b6ef314e556d3b59acc0c41a4d6f7e597fa</id>
<content type='text'>
This is required so that we give up the last reference to the device.
Remove the kfree() because the put_device() call will actually call
release_sub_device which in turn kfrees the device.

Signed-off-by: Levente Kurusa &lt;levex@linux.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] videodev2: Set vb2_rect's width and height as unsigned</title>
<updated>2014-01-07T10:02:39Z</updated>
<author>
<name>Ricardo Ribalda</name>
</author>
<published>2013-11-26T08:31:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f90580ca0133c533763a6cb3e632a21098a382df'/>
<id>urn:sha1:f90580ca0133c533763a6cb3e632a21098a382df</id>
<content type='text'>
As discussed on the media summit 2013, there is no reason for the width
and height to be signed.

Therefore this patch is an attempt to convert those fields from __s32 to
__u32.

Signed-off-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt; (documentation and smiapp)
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
</feed>
