<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/media, branch v3.15.7</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.15.7</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.15.7'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2014-07-28T15:08:19+00:00</updated>
<entry>
<title>media: gspca_pac7302: Add new usb-id for Genius i-Look 317</title>
<updated>2014-07-28T15:08:19+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2014-07-09T09:20:44+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=03dad2842f6ddaf949b6a558c3299df53989f1c3'/>
<id>urn:sha1:03dad2842f6ddaf949b6a558c3299df53989f1c3</id>
<content type='text'>
commit 242841d3d71191348f98310e2d2001e1001d8630 upstream.

Tested-and-reported-by: yullaw &lt;yullaw@mageia.cz&gt;

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.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:13:59+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2014-04-17T10:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.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: uvcvideo: Fix clock param realtime setting</title>
<updated>2014-07-01T03:13:58+00:00</updated>
<author>
<name>Olivier Langlois</name>
<email>olivier@trillion01.com</email>
</author>
<published>2014-03-28T05:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4a579221c86dc35646e5c314804c876524a20675'/>
<id>urn:sha1:4a579221c86dc35646e5c314804c876524a20675</id>
<content type='text'>
commit 3b35fc81e7ec552147a4fd843d0da0bbbe4ef253 upstream.

timestamps in v4l2 buffers returned to userspace are updated in
uvc_video_clock_update() which uses timestamps fetched from
uvc_video_clock_decode() by calling unconditionally ktime_get_ts().

Hence setting the module clock param to realtime has no effect before
this patch.

This has been tested with ffmpeg:

ffmpeg -y -f v4l2 -input_format yuyv422 -video_size 640x480 -framerate 30 -i /dev/video0 \
 -f alsa -acodec pcm_s16le -ar 16000 -ac 1 -i default \
 -c:v libx264 -preset ultrafast \
 -c:a libfdk_aac \
 out.mkv

and inspecting the v4l2 input starting timestamp.

Signed-off-by: Olivier Langlois &lt;olivier@trillion01.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.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: exynos4-is: Fix compilation for !CONFIG_COMMON_CLK</title>
<updated>2014-07-01T03:13:58+00:00</updated>
<author>
<name>Sylwester Nawrocki</name>
<email>s.nawrocki@samsung.com</email>
</author>
<published>2014-04-15T17:34:29+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=079716fe1bb5dd904ecb75b23e8846b45bb116e2'/>
<id>urn:sha1:079716fe1bb5dd904ecb75b23e8846b45bb116e2</id>
<content type='text'>
commit f486e7c3cb9849b6a661931fa8c51a43d477046b upstream.

CONFIG_COMMON_CLK is not enabled on S5PV210 platform, so include
some clk API data structures conditionally to avoid compilation
errors. These #ifdefs will be removed for next kernel release,
when the S5PV210 platform moves to DT and the common clk API.

Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Acked-by: Kyungmin Park &lt;kyungmin.park@samsung.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: exynos4-is: Free FIMC-IS CPU memory only when allocated</title>
<updated>2014-07-01T03:13:58+00:00</updated>
<author>
<name>Sylwester Nawrocki</name>
<email>s.nawrocki@samsung.com</email>
</author>
<published>2014-05-08T17:35:15+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=30520611a4f41bf1276959ad77f1faabed5c09de'/>
<id>urn:sha1:30520611a4f41bf1276959ad77f1faabed5c09de</id>
<content type='text'>
commit 404a90abc60f60df2757cb272660e003d326881f upstream.

Ensure dma_free_coherent() is not called with incorrect arguments
and only when the memory was actually allocated. This will prevent
possible crashes on error paths of the top level media device driver,
when fimc-is device gets unregistered and its driver detached.

Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Acked-by: Kyungmin Park &lt;kyungmin.park@samsung.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: stk1160: Avoid stack-allocated buffer for control URBs</title>
<updated>2014-07-01T03:13:57+00:00</updated>
<author>
<name>Ezequiel Garcia</name>
<email>ezequiel.garcia@free-electrons.com</email>
</author>
<published>2014-04-17T12:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=5a77f6628b73c6fb3d7d092a66f92f5a815dd57a'/>
<id>urn:sha1:5a77f6628b73c6fb3d7d092a66f92f5a815dd57a</id>
<content type='text'>
commit 85ac1a1772bb41da895bad83a81f6a62c8f293f6 upstream.

Currently stk1160_read_reg() uses a stack-allocated char to get the
read control value. This is wrong because usb_control_msg() requires
a kmalloc-ed buffer.

This commit fixes such issue by kmalloc'ating a 1-byte buffer to receive
the read value.

While here, let's remove the urb_buf array which was meant for a similar
purpose, but never really used.

Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Reported-by: Sander Eikelenboom &lt;linux@eikelenboom.it&gt;
Signed-off-by: Ezequiel Garcia &lt;ezequiel.garcia@free-electrons.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;
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:57+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2014-05-05T14:20:05+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.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>rtl28xxu: add [1b80:d3af] Sveon STV27</title>
<updated>2014-06-16T20:44:09+00:00</updated>
<author>
<name>Alessandro Miceli</name>
<email>angelofsky1980@gmail.com</email>
</author>
<published>2014-05-04T10:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=6dcfd1f5d42e1b5f33d45f55186b961270420f00'/>
<id>urn:sha1:6dcfd1f5d42e1b5f33d45f55186b961270420f00</id>
<content type='text'>
commit 74a86272f05c3dae40f2d7b17ff09a0608cf3304 upstream.

Added support for Sveon STV27 device (rtl2832u + FC0013 tuner)

Signed-off-by: Alessandro Miceli &lt;angelofsky1980@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>
</entry>
<entry>
<title>rtl28xxu: add [1b80:d39d] Sveon STV20</title>
<updated>2014-06-16T20:44:09+00:00</updated>
<author>
<name>Alessandro Miceli</name>
<email>angelofsky1980@gmail.com</email>
</author>
<published>2014-05-04T10:37:15+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=8bc4154c9a32eef14220cfaecd641dfc156b7988'/>
<id>urn:sha1:8bc4154c9a32eef14220cfaecd641dfc156b7988</id>
<content type='text'>
commit f27f5b0ee4967babfb8b03511f5e76b79d781014 upstream.

Added Sveon STV20 device based on Realtek RTL2832U and FC0012 tuner

Signed-off-by: Alessandro Miceli &lt;angelofsky1980@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>
</entry>
<entry>
<title>rtl28xxu: add 1b80:d395 Peak DVB-T USB</title>
<updated>2014-06-16T20:44:09+00:00</updated>
<author>
<name>Brian Healy</name>
<email>healybrian@gmail.com</email>
</author>
<published>2014-05-04T21:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b1947d698fa8899f31c26ab1de8c732c0d053781'/>
<id>urn:sha1:b1947d698fa8899f31c26ab1de8c732c0d053781</id>
<content type='text'>
commit 9ca24ae4083665bda38da45f4b5dc9bbaf936bc0 upstream.

Add USB ID for Peak DVB-T USB.

[crope@iki.fi: fix Brian email address and indentation]
Signed-off-by: Brian Healy &lt;healybrian@gmail.com&gt;
Signed-off-by: Antti Palosaari &lt;crope@iki.fi&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;

</content>
</entry>
</feed>
