<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/media, branch v3.6</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/media?h=v3.6</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/media?h=v3.6'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-08-21T23:54:38Z</updated>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media</title>
<updated>2012-08-21T23:54:38Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-08-21T23:54:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a484147a52e6910d990ae7cf2a5d16b5bc58dcbe'/>
<id>urn:sha1:a484147a52e6910d990ae7cf2a5d16b5bc58dcbe</id>
<content type='text'>
Pull media fixes from Mauro Carvalho Chehab:
 "For bug fixes, at soc_camera, si470x, uvcvideo, iguanaworks IR driver,
  radio_shark Kbuild fixes, and at the V4L2 core (radio fixes)."

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] media: soc_camera: don't clear pix-&gt;sizeimage in JPEG mode
  [media] media: mx2_camera: Fix clock handling for i.MX27
  [media] video: mx2_camera: Use clk_prepare_enable/clk_disable_unprepare
  [media] video: mx1_camera: Use clk_prepare_enable/clk_disable_unprepare
  [media] media: mx3_camera: buf_init() add buffer state check
  [media] radio-shark2: Only compile led support when CONFIG_LED_CLASS is set
  [media] radio-shark: Only compile led support when CONFIG_LED_CLASS is set
  [media] radio-shark*: Call cancel_work_sync from disconnect rather then release
  [media] radio-shark*: Remove work-around for dangling pointer in usb intfdata
  [media] Add USB dependency for IguanaWorks USB IR Transceiver
  [media] Add missing logging for rangelow/high of hwseek
  [media] VIDIOC_ENUM_FREQ_BANDS fix
  [media] mem2mem_testdev: fix querycap regression
  [media] si470x: v4l2-compliance fixes
  [media] DocBook: Remove a spurious character
  [media] uvcvideo: Reset the bytesused field when recycling an erroneous buffer
</content>
</entry>
<entry>
<title>USB: spca506: remove __devinit* from the struct usb_device_id table</title>
<updated>2012-08-18T00:50:44Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-08-18T00:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e694d518886c7afedcdd1732477832b2e32744e4'/>
<id>urn:sha1:e694d518886c7afedcdd1732477832b2e32744e4</id>
<content type='text'>
This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
CC: Hans de Goede &lt;hdegoede@redhat.com&gt;
CC: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>USB: jl2005bcd: remove __devinit* from the struct usb_device_id table</title>
<updated>2012-08-18T00:50:44Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-08-18T00:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ec063351684298e295dc9444d143ddfd6ab02df8'/>
<id>urn:sha1:ec063351684298e295dc9444d143ddfd6ab02df8</id>
<content type='text'>
This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
CC: Hans de Goede &lt;hdegoede@redhat.com&gt;
CC: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>USB: smsusb: remove __devinit* from the struct usb_device_id table</title>
<updated>2012-08-18T00:50:44Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-08-18T00:48:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d04dbd1c0ec17a13326c8f2279399c225836a79f'/>
<id>urn:sha1:d04dbd1c0ec17a13326c8f2279399c225836a79f</id>
<content type='text'>
This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
CC: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
CC: Michael Krufky &lt;mkrufky@linuxtv.org&gt;
CC: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
CC: Doron Cohen &lt;doronc@siano-ms.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>[media] media: soc_camera: don't clear pix-&gt;sizeimage in JPEG mode</title>
<updated>2012-08-15T22:24:28Z</updated>
<author>
<name>Albert Wang</name>
<email>twang13@marvell.com</email>
</author>
<published>2012-08-01T05:45:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=991b3137f21e13db4711f313edbe67d49bed795b'/>
<id>urn:sha1:991b3137f21e13db4711f313edbe67d49bed795b</id>
<content type='text'>
In JPEG mode, the size of image is variable due to different JPEG compression
rate. We only can get the pix-&gt;sizeimage from the user.

If we clear pix-&gt;sizeimage in soc_camera_try_fmt() then we will get it from:
	ret = soc_mbus_image_size(xlate-&gt;host_fmt, pix-&gt;bytesperline,
				pix-&gt;height);
	if (ret &lt; 0)
		return ret;

	pix-&gt;sizeimage = max_t(u32, pix-&gt;sizeimage, ret);

In general, this sizeimage will be larger than the actul JPEG image size.

But vb2 will check the buffer and size of image in __qbuf_userptr():
	/* Check if the provided plane buffer is large enough */
	if (planes[plane].length &lt; q-&gt;plane_sizes[plane])

So we shouldn't clear the pix-&gt;sizeimage and also shouldn't re-calculate
the pix-&gt;sizeimage in soc_mbus_image_size() in JPEG mode

We also shouldn't re-calculate pix-&gt;bytesperline:
	ret = soc_mbus_bytes_per_line(pix-&gt;width, xlate-&gt;host_fmt);
	if (ret &lt; 0)
		return ret;

	pix-&gt;bytesperline = max_t(u32, pix-&gt;bytesperline, ret);

pix-&gt;bytesperline also should be set by the user or by the driver's
try_fmt() implementation.

Change-Id: I700690a2287346127a624b5260922eaa5427a596

Signed-off-by: Albert Wang &lt;twang13@marvell.com&gt;
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] media: mx2_camera: Fix clock handling for i.MX27</title>
<updated>2012-08-15T22:24:20Z</updated>
<author>
<name>Javier Martin</name>
<email>javier.martin@vista-silicon.com</email>
</author>
<published>2012-08-01T09:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ad5b987031835b0ac3064ef12209282277dbae54'/>
<id>urn:sha1:ad5b987031835b0ac3064ef12209282277dbae54</id>
<content type='text'>
On i.MX27 two clocks are required: emma-ipg and emma-ahb. The ahb clock
has to be requested using both a device and a connection ID.

Signed-off-by: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
[g.liakhovetski@gmx.de: rebase to the current media tree]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] video: mx2_camera: Use clk_prepare_enable/clk_disable_unprepare</title>
<updated>2012-08-15T22:23:43Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2012-05-25T23:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f8afbf3caa991655e989ecd10c135162d84288b2'/>
<id>urn:sha1:f8afbf3caa991655e989ecd10c135162d84288b2</id>
<content type='text'>
Prepare the clock before enabling it.

Cc: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Cc: &lt;linux-media@vger.kernel.org&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] video: mx1_camera: Use clk_prepare_enable/clk_disable_unprepare</title>
<updated>2012-08-15T22:23:20Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2012-05-25T23:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5c4dfc84a88e1108f5ddba256ecaab6fe45f94e5'/>
<id>urn:sha1:5c4dfc84a88e1108f5ddba256ecaab6fe45f94e5</id>
<content type='text'>
Prepare the clock before enabling it.

Cc: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Cc: &lt;linux-media@vger.kernel.org&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] media: mx3_camera: buf_init() add buffer state check</title>
<updated>2012-08-15T22:23:10Z</updated>
<author>
<name>Alex Gershgorin</name>
<email>alexg@meprolight.com</email>
</author>
<published>2012-08-01T08:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1690d86aa33fa14c0ae4ac97e59d806eeddccd2c'/>
<id>urn:sha1:1690d86aa33fa14c0ae4ac97e59d806eeddccd2c</id>
<content type='text'>
This patch checks the state of the buffer when calling .buf_init() method.
This is needed for the USERPTR buffer type, because in that case
.buf_init() is called every time a buffer is queued, and not only once
during the preparation stage, like in the MMAP case. Without this check
buffers get initialised repeatedly, which also leads to the allocation
of new DMA descriptors, of which there is only a final relatively small
number available. Both MMAP and USERPTR methods were successfully tested.

Signed-off-by: Alex Gershgorin &lt;alexg@meprolight.com&gt;
[g.liakhovetski@gmx.de: remove mx3_camera_buffer::state completely]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] radio-shark2: Only compile led support when CONFIG_LED_CLASS is set</title>
<updated>2012-08-12T16:50:09Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2012-08-11T09:34:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=be0c44fb480fe43fe8794ec4bff0b0e7e0b50c72'/>
<id>urn:sha1:be0c44fb480fe43fe8794ec4bff0b0e7e0b50c72</id>
<content type='text'>
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
