<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/video/mx2_camera.c, branch linux-3.6.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-08-15T22:24:20Z</updated>
<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>
</author>
<published>2012-08-01T09:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/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>
</author>
<published>2012-05-25T23:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/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: mx2_camera: Fix mbus format handling</title>
<updated>2012-07-11T19:48:24Z</updated>
<author>
<name>Javier Martin</name>
</author>
<published>2012-07-11T15:34:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a76e5383fb5f58868fdd3a2fe1f4b95988f10a8'/>
<id>urn:sha1:8a76e5383fb5f58868fdd3a2fe1f4b95988f10a8</id>
<content type='text'>
Do not use MX2_CAMERA_SWAP16 and MX2_CAMERA_PACK_DIR_MSB flags. The driver
must negotiate with the attached sensor whether the mbus format is UYUV or
YUYV and set CSICR1 configuration accordingly.

This is needed for the video function on mach-imx27_visstrim_m10.c to
perform properly, since an earlier version of this patch has been proven
wrong and has been reverted and a commit, depending on it: "[media]
i.MX27: visstrim_m10: Remove use of MX2_CAMERA_SWAP16" is in the mainline.

Signed-off-by: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
Reviewed-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
[ g.liakhovetski@gmx.de: move a macro definition to a more logical place ]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
[ Applying directly because Mauro is on vacation - Linus ]
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[media] Revert "[media] media: mx2_camera: Fix mbus format handling"</title>
<updated>2012-06-18T11:17:42Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2012-05-25T21:06:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70c276a6abdb1a466a9026da631c396fee2984bd'/>
<id>urn:sha1:70c276a6abdb1a466a9026da631c396fee2984bd</id>
<content type='text'>
This reverts commit d509835e32bd761a2b7b446034a273da568e5573. That commit
breaks support for the generic pass-through mode in the driver for formats,
not natively supported by it. Besides due to a merge conflict it also breaks
driver compilation:

drivers/media/video/mx2_camera.c: In function 'mx2_camera_set_bus_param':
drivers/media/video/mx2_camera.c:937: error: 'pixfmt' undeclared (first use in this function)
drivers/media/video/mx2_camera.c:937: error: (Each undeclared identifier is reported only once
drivers/media/video/mx2_camera.c:937: error: for each function it appears in.)

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Cc: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] V4L: mx2-camera: avoid overflowing 32-bits</title>
<updated>2012-05-15T19:14:01Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2012-05-08T14:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=67e86524b907ed2189f4875cdbe7a5249c71ebb2'/>
<id>urn:sha1:67e86524b907ed2189f4875cdbe7a5249c71ebb2</id>
<content type='text'>
In mx2_camera_try_fmt(), when applying i.MX25 restrictions to frame sizes,
the height is checked to be &lt;= 0xffff. But later an integer multiplication
height * 4 * 0x3ffff is performed, which will overflow even for bounded
height values. This patch switches to using 64-bit multiplication and
division to avoid overflowing.

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] soc-camera: Support user-configurable line stride</title>
<updated>2012-05-15T19:12:54Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2012-03-21T11:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=914f05c8118e17d65c4626ae3ed2edcf79f00031'/>
<id>urn:sha1:914f05c8118e17d65c4626ae3ed2edcf79f00031</id>
<content type='text'>
Add a capabilities field to the soc_camera_host structure to flag hosts
that support user-configurable line strides. soc_camera_try_fmt() then
passes the user-provided bytesperline and sizeimage format fields to
such hosts, and expects the host to check (and fix if needed) the
values.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
[g.liakhovetski@gmx.de: fix a typo in mx2_camera.c]
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] mx2_camera: Use soc_mbus_image_size() instead of manual computation</title>
<updated>2012-05-15T19:11:23Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2012-03-21T11:03:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0a461ff1b476067c24131ea0b2a40571592f761'/>
<id>urn:sha1:b0a461ff1b476067c24131ea0b2a40571592f761</id>
<content type='text'>
Use the new soc_mbus_image_size() function to compute the image size.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.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] soc_camera: Use soc_camera_device::sizeimage to compute buffer sizes</title>
<updated>2012-05-15T19:08:22Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2012-03-21T11:03:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b61d46e2c44568886bc099f8085aefc7107e372'/>
<id>urn:sha1:2b61d46e2c44568886bc099f8085aefc7107e372</id>
<content type='text'>
Instead of computing the buffer size manually in the videobuf queue
setup and buffer prepare callbacks, use the previously negotiated
soc_camera_device::sizeimage value.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.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] mx2_camera: Fix sizeimage computation in try_fmt()</title>
<updated>2012-05-15T19:07:12Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2012-03-21T11:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=584943aa0692fea9ec3356c7d4677dd7a225cdef'/>
<id>urn:sha1:584943aa0692fea9ec3356c7d4677dd7a225cdef</id>
<content type='text'>
The try_fmt() handler restricts the image width based on the hardware
limits and updates the bytesperline value, but doesn't update sizeimage.
Fix it.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.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 mbus format handling</title>
<updated>2012-05-15T12:42:17Z</updated>
<author>
<name>Javier Martin</name>
</author>
<published>2012-03-26T12:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d509835e32bd761a2b7b446034a273da568e5573'/>
<id>urn:sha1:d509835e32bd761a2b7b446034a273da568e5573</id>
<content type='text'>
Remove MX2_CAMERA_SWAP16 and MX2_CAMERA_PACK_DIR_MSB flags
so that the driver can negotiate with the attached sensor
whether the mbus format needs convertion from UYUV to YUYV
or not.

Signed-off-by: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
