<feed xmlns='http://www.w3.org/2005/Atom'>
<title>blackbird-op-linux/drivers/media/platform/am437x, branch master</title>
<subtitle>Blackbird™ Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/'/>
<updated>2019-11-05T13:33:36+00:00</updated>
<entry>
<title>media: am437x: fix smatch warning</title>
<updated>2019-11-05T13:33:36+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hverkuil-cisco@xs4all.nl</email>
</author>
<published>2019-11-03T11:23:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=6a8c521c529eb0c806780886c7092d7f7fdcca7b'/>
<id>urn:sha1:6a8c521c529eb0c806780886c7092d7f7fdcca7b</id>
<content type='text'>
Fixes this warning:

drivers/media/platform/am437x/am437x-vpfe.c:288 vpfe_ccdc_validate_param() warn: unsigned 'ccdcparam-&gt;alaw.gamma_wd' is never less than zero.

by dropping the gamma_wd &lt; VPFE_CCDC_GAMMA_BITS_15_6 check
since VPFE_CCDC_GAMMA_BITS_15_6 is 0.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reviewed-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Switch to SPDX Licensing</title>
<updated>2019-10-01T19:15:38+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=724de7b5fe72188838bd1f049a85a1f37d8ede26'/>
<id>urn:sha1:724de7b5fe72188838bd1f049a85a1f37d8ede26</id>
<content type='text'>
Switch to SPDX licensing and drop the redundant GPL text.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Remove per bus width static data</title>
<updated>2019-10-01T19:15:12+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=ea169d2d656100cb76c5bf163eeb5e435efe58b7'/>
<id>urn:sha1:ea169d2d656100cb76c5bf163eeb5e435efe58b7</id>
<content type='text'>
The bus related static data included in the vpfe_fmt
static table can be derived dynamically instead.
This simplify the table and it's use.

We instead replace the per bus data info with just
the usual bit per pixel value for each supported
pixel format.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: TRY_FMT ioctl is not really trying anything</title>
<updated>2019-10-01T19:14:43+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=750ef54b7e2b03ce33dd3d7903aa8254e6f2adab'/>
<id>urn:sha1:750ef54b7e2b03ce33dd3d7903aa8254e6f2adab</id>
<content type='text'>
The try_fmt was not actually trying out the provided format
but merely returning the current format basically like get_fmt.
In addition set_fmt should first invoked try_fmt to validate the
given format before applying it to the hardware.

To fix all of these the whole get/try/set ioctl functions had to
be reworked.
When calculating the bytesperline/stride and sizeimage format
member we don't need to locally store the current value of
bytesperpixel as it can easily get derived dynamically.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: fix function trace debug log</title>
<updated>2019-10-01T19:13:51+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=f60de889d7db5428d4d1894f708d78aa58cc9036'/>
<id>urn:sha1:f60de889d7db5428d4d1894f708d78aa58cc9036</id>
<content type='text'>
checkpatch.pl nows reports several:
WARNING: Prefer using '"%s...", __func__' to using '&lt;function name&gt;',
this function's name, in a string.

So fix these for the whole driver.
At the same time remove the function entry trace log as those can be
enabled using ftrace instead.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Use a per instance format array instead of a static one</title>
<updated>2019-10-01T19:12:52+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=0512ccba072a6c2517d2926009eb223ad163f413'/>
<id>urn:sha1:0512ccba072a6c2517d2926009eb223ad163f413</id>
<content type='text'>
Using a statically defined format array would cause issue when
multiple vpfe instance would be connected to sub-device of
different capabilities. We need to use an instance based array
instead to properly maintain a per port/instance format list.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Setting STD to current value is not an error</title>
<updated>2019-10-01T19:12:00+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=13aa21cfe92ce9ebb51824029d89f19c33f81419'/>
<id>urn:sha1:13aa21cfe92ce9ebb51824029d89f19c33f81419</id>
<content type='text'>
VIDIOC_S_STD should not return an error if the value is identical
to the current one.
This error was highlighted by the v4l2-compliance test.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Streamlined vb2 buffer cleanup</title>
<updated>2019-10-01T19:11:16+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=73940235337ee91ba32eaf71d641d74d9b1c9b63'/>
<id>urn:sha1:73940235337ee91ba32eaf71d641d74d9b1c9b63</id>
<content type='text'>
Returning queued vb2 buffers back to user space is a common
task best handled by a helper function.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: fix start streaming error path</title>
<updated>2019-10-01T19:10:38+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=158a1dddf2dbce5fdb3053213c1e9b36a54b4d4d'/>
<id>urn:sha1:158a1dddf2dbce5fdb3053213c1e9b36a54b4d4d</id>
<content type='text'>
When start_streaming fails the h/w module might be left enabled
inadvertently. Make sure it is disabled in the error path.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x-vpfe: Wait for end of frame before tear-down</title>
<updated>2019-10-01T19:10:03+00:00</updated>
<author>
<name>Benoit Parrot</name>
<email>bparrot@ti.com</email>
</author>
<published>2019-09-20T17:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=b58e69e9a573e74946498077ae25e5244303e718'/>
<id>urn:sha1:b58e69e9a573e74946498077ae25e5244303e718</id>
<content type='text'>
We were originally attempting to stop all processing as soon
as possible, but the in-progress DMA operation cannot be canceled.
This led to the module being in a busy state and prevented proper
power management functionality.

The existing implementation would attempt to clean things up by waiting
up to 50ms. However when receiving video frame at 15fps or lower,
it meant an inter frame arrival rate of 66.6 ms or higher.
In such cases upon tear down the following message could be seen:
omap_hwmod: vpfe0: _wait_target_disable failed

This patch fixes this issue by adding a stopping state where
we would wait for the next Vsync before disabling the hardware.

Signed-off-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Acked-by: Lad Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
</feed>
