[PATCH 18/20] [media] dev-subdev.rst: make table fully visible on LaTeX

2016-08-18 Thread Mauro Carvalho Chehab
The table there is too big and doesn't have format hints for LaTeX output. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-subdev.rst | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH 20/20] [media] diff-v4l.rst: Make capabilities table fit in LaTeX

2016-08-18 Thread Mauro Carvalho Chehab
This table has several troubles: - a duplicated "struct" on its name; - a reference to a V4L version 1 struct that will never point to something (as we got rid of V4L1 API a long time ago); - misses hints for LaTeX output (column size and longtable

[PATCH 17/20] [media] dev-rds.rst: adjust table dimentions for LaTeX

2016-08-18 Thread Mauro Carvalho Chehab
One of the tables has wrong column dimentions. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-rds.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/media/uapi/v4l/dev-rds.rst

[PATCH 19/20] [media] subdev-formats.rst: adjust most of the tables to fill in page

2016-08-18 Thread Mauro Carvalho Chehab
Fix mosto fo the tables there in order to make them fit at the page size. There are, however, two exceptions: RGB and YUV big tables, where adding the raw latex adjustbox caused the tables to not be properly formatted. I suspect that the problem is because those are long tables, but not really

[PATCH 04/20] [media] extended-controls.rst: fix table sizes

2016-08-18 Thread Mauro Carvalho Chehab
Lots of tables at extended-controls.rst need explicit hints for LaTeX to adjust their widths. Provide that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/extended-controls.rst | 63 -- 1 file changed, 36 insertions(+), 27

[PATCH 11/20] [media] dev-overlay.rst: don't ident a note

2016-08-18 Thread Mauro Carvalho Chehab
There's one note there that it is indented for no good reason. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-overlay.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 08/20] [media] pixfmt-packed-yuv.rst: adjust tables to fit in LaTeX

2016-08-18 Thread Mauro Carvalho Chehab
Adjust the table to fit at the LaTeX and PDF outputs, just like what was done with pixfmt-packed-rgb.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst | 26 ++ 1 file changed, 17 insertions(+), 9

[PATCH 02/20] [media] docs-rst: add tabularcolumns to all tables

2016-08-18 Thread Mauro Carvalho Chehab
LaTeX doesn't handle too well auto-width on tables, and ReST markup requires an special tag to give it the needed hints. As we're using A4 paper, we have 17cm of useful spaces. As most media tables have widths, let's use it to generate the needed via the following perl script: my ($line_size,

[PATCH 03/20] [media] control.rst: Fix table width

2016-08-18 Thread Mauro Carvalho Chehab
Manually adjust the table width for it to look nice on PDF output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/control.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/media/uapi/v4l/control.rst

[PATCH 00/20] First part of LaTeX build fixes for the media book

2016-08-18 Thread Mauro Carvalho Chehab
This one fix most of the issues with LaTeX output for the media book at the V4L2 book, before "Function Reference". So, up to page 181 of a 969 pages document. There are still some things that I was not able to fix on this set: - the ".. notes::" tag inside a table column are getting the wrong

[PATCH 10/20] [media] buffer.rst: Adjust table columns for LaTeX output

2016-08-18 Thread Mauro Carvalho Chehab
The table columns are not properly displayed. Also, some tables are too big to fit into just one page. So, fix them, in order to better display the tables. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/buffer.rst | 20 ++-- 1

[PATCH 07/20] [media] pixfmt-packed-rgb.rst: adjust tables to fit in LaTeX

2016-08-18 Thread Mauro Carvalho Chehab
Adjust the tables to fit at the LaTeX and PDF outputs. Previously, we were displaying the long table in landscape, but it makes harder to read on displays. This time, let's use the adjustbox to shrink the size of those long tables, as the table size can still be visible on screen, and it is a

[PATCH] [media] pxa_camera: fix spelling mistake: "dequeud" -> "dequeued"

2016-08-18 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in pr_debug message Signed-off-by: Colin Ian King --- drivers/media/platform/soc_camera/pxa_camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 15/20] [media] dev-sliced-vbi.rst: use a footnote for VBI images

2016-08-18 Thread Mauro Carvalho Chehab
Just like on dvb-raw-vbi.rst, the LaTeX output doesn't work well with cell spans. Also, this is actually a note, so, move it to a footnote. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-sliced-vbi.rst | 6 -- 1 file changed, 4

[PATCH 16/20] [media] dev-sliced-vbi.rst: Adjust tables on LaTeX output

2016-08-18 Thread Mauro Carvalho Chehab
Better format the tables in a way that will fit inside the page. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-sliced-vbi.rst | 34 + 1 file changed, 24 insertions(+), 10 deletions(-) diff --git

[PATCH 06/20] [media] pixfmt-packed-rgb.rst: Fix cell spans

2016-08-18 Thread Mauro Carvalho Chehab
There is an extra column just before eack pack of bits, to improve table reading, but the header file didn't take this into account. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst | 78 -- 1 file

[PATCH 14/20] [media] docs-rst: re-generate vbi_525.pdf and vbi_625.pdf

2016-08-18 Thread Mauro Carvalho Chehab
Originally, each image were one page big, causing them to be displayed on separate pages at the PDF output. Re-generate them from the gif files. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/v4l/dev-raw-vbi_files/vbi_525.pdf | Bin 3395 -> 3706 bytes

[PATCH 12/20] [media] dev-raw-vbi.rst: add a footnote for the count limits

2016-08-18 Thread Mauro Carvalho Chehab
There's a bug with LaTeX output on flat-tables with Sphinx 1.4.5 that prevents references at a cell span to be broken. As the text is indeed too long, it makes sense to place the reference to the pictures showing the VBI limits as a footnote. That makes the text easier to read and also solves the

[PATCH 13/20] [media] dev-raw-vbi.rst: adjust table columns for LaTeX output

2016-08-18 Thread Mauro Carvalho Chehab
Add the needed tags to fix LaTeX output of the tables there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/dev-raw-vbi.rst | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/v4l/dev-raw-vbi.rst

[PATCH 09/20] [media] docs-rst: remove width hints from pixfmt byte order tables

2016-08-18 Thread Mauro Carvalho Chehab
Those hints are wrong, and doesn't really improve the look of those tables. So, keep them only when they're useful. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/pixfmt-grey.rst | 7 --- Documentation/media/uapi/v4l/pixfmt-m420.rst

[PATCH] docs-rst: add support for LaTeX output

2016-08-18 Thread Mauro Carvalho Chehab
Sphinx supports LaTeX output. Sometimes, it is interesting to call it directly, instead of also generating a PDF. As it comes for free, add a target for it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile | 1 + Documentation/Makefile.sphinx |

[PATCH 05/20] [media] docs-rst: add column hints for pixfmt-002 and pixfmt-006

2016-08-18 Thread Mauro Carvalho Chehab
Add column hints for LaTeX to format columns on the tables inside pixfmt-002.rst and pixfmt-006.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/pixfmt-002.rst | 4 +++- Documentation/media/uapi/v4l/pixfmt-006.rst | 5 + 2 files changed, 8

cron job: media_tree daily build: WARNINGS

2016-08-18 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Fri Aug 19 04:00:16 CEST 2016 git branch: test git hash: b6aa39228966e0d3f0bc3306be1892f87792903a gcc

Re: [PATCH 00/20] First part of LaTeX build fixes for the media book

2016-08-18 Thread Mauro Carvalho Chehab
Em Thu, 18 Aug 2016 13:15:29 -0300 Mauro Carvalho Chehab escreveu: > This one fix most of the issues with LaTeX output for the media book at > the V4L2 book, before "Function Reference". So, up to page 181 of a 969 > pages document. > > There are still some things that

Re: [PATCH 1/7] doc-rst: generic way to build only sphinx sub-folders

2016-08-18 Thread Jonathan Corbet
On Sat, 13 Aug 2016 16:12:42 +0200 Markus Heiser wrote: > Add a generic way to build only a reST sub-folder with or > without a individual *build-theme*. > > * control *sub-folders* by environment SPHINXDIRS > * control *build-theme* by environment SPHINX_CONF > >

Re: [PATCH 0/9] Prepare Sphinx to build media PDF books

2016-08-18 Thread Jonathan Corbet
On Tue, 16 Aug 2016 13:25:34 -0300 Mauro Carvalho Chehab wrote: > I think this patch series belong to docs-next. Feel free to merge them there, > if > you agree. There's one extra patch that touches Documentation/conf.py, > re-adding the media book to the PDF build,

Re: [RFC PATCH 0/5] doc-rst: improvements Sphinx's C-domain

2016-08-18 Thread Jonathan Corbet
On Mon, 15 Aug 2016 16:08:23 +0200 Markus Heiser wrote: > this is my approach to eliminate some distortions we have with the c/cpp > Sphinx > domains. The C domain is simple: it assumes that all functions, enums, etc > are global, e. g. there should be just one

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-08-18 Thread Sakari Ailus
Hi Pavel, On Thu, Aug 18, 2016 at 12:45:39PM +0200, Pavel Machek wrote: > On Thu 2016-08-11 14:16:34, Sakari Ailus wrote: > > On Tue, Aug 09, 2016 at 01:23:23AM +0200, Pavel Machek wrote: > > > On Wed 2016-08-10 15:01:05, Sakari Ailus wrote: > > > > On Mon, Aug 08, 2016 at 11:41:32PM +0200, Pavel

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-08-18 Thread Pavel Machek
Hi! > > Heh. Basically anything is easier to develop for than n900 :-(. > > Is it? > > I actually find the old Nokia devices very practical. It's easy to boot your > own kernel and things just work... until musb broke a bit recently. It > requires reconnecting the usb cable again to function. >

Re: Adding Linux support for the Ion Video 2 PC analog video capture device (em28xx)

2016-08-18 Thread Alexandre-Xavier Labonté-Lamoureux
Hi Mauro! Thank you for your help. I made the change that you suggested. It fixed the video freeze. I still have issues though. There is a huge green bar at the bottom of the screen and the colors don't work correctly. On my Atari Flashback, the screen is in black and white:

[PATCH v5 08/12] [media] vivid: Fix YUV555 and YUV565 handling

2016-08-18 Thread Ricardo Ribalda Delgado
precalculate_color() had a optimization that avoided duplicated conversion for YUV formats. This optimization did not take into consideration YUV444, YUV555, YUV565 or limited range quantization. This patch keeps the optimization, but fixes the wrong handling. Signed-off-by: Ricardo Ribalda

[PATCH v5 04/12] [media] vivid: Code refactor for color encoding

2016-08-18 Thread Ricardo Ribalda Delgado
Replace is_yuv with color_enc Which can be used by other color encodings such us HSV. This change should ease the review of the following patches. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 49 +++

Re: [PATCH] v4l: rcar-fcp: Don't force users to check for disabled FCP support

2016-08-18 Thread Niklas Söderlund
On 2016-08-17 16:32:08 +0300, Laurent Pinchart wrote: > The rcar_fcp_enable() function immediately returns successfully when the > FCP device pointer is NULL to avoid forcing the users to check the FCP > device manually before every call. However, the stub version of the > function used when the

[PATCH v5 06/12] [media] vivid: Rename variable

2016-08-18 Thread Ricardo Ribalda Delgado
r_y and g_u now also contain the H and V components on the HSV formats. Rename the variables to reflect this. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 209 +- 1 file changed, 105 insertions(+),

[PATCH v5 07/12] [media] vivid: Introduce TPG_COLOR_ENC_LUMA

2016-08-18 Thread Ricardo Ribalda Delgado
Simplifies handling of Gray formats. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 26 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 6 +++--- include/media/v4l2-tpg.h

[PATCH v5 05/12] [media] vivid: Add support for HSV formats

2016-08-18 Thread Ricardo Ribalda Delgado
This patch adds support for V4L2_PIX_FMT_HSV24 and V4L2_PIX_FMT_HSV32. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 93 +++-- drivers/media/platform/vivid/vivid-vid-common.c | 14

[PATCH v5 12/12] [media] vivid: Add support for HSV encoding

2016-08-18 Thread Ricardo Ribalda Delgado
Support HSV encoding. Most of the logic is replicated from ycbcr_enc. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 25 + drivers/media/platform/vivid/vivid-core.h | 1 +

[PATCH v5 00/12] Add HSV format

2016-08-18 Thread Ricardo Ribalda Delgado
HSV formats are extremely useful for image segmentation. This set of patches makes v4l2 aware of this kind of formats. Vivid changes have been divided to ease the reviewing process. We are working on patches for Gstreamer and OpenCV that will make use of these formats. We still need to decide

[PATCH v5 10/12] [media] videodev2.h Add HSV encoding

2016-08-18 Thread Ricardo Ribalda Delgado
Some hardware maps the Hue between 0 and 255 instead of 0-179. Support this format with a new field hsv_enc. Signed-off-by: Ricardo Ribalda Delgado --- include/uapi/linux/videodev2.h | 32 +++- 1 file changed, 27 insertions(+), 5

[PATCH v5 02/12] [media] Documentation: Add HSV format

2016-08-18 Thread Ricardo Ribalda Delgado
Describe the HSV formats Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/hsv-formats.rst | 19 +++ Documentation/media/uapi/v4l/pixfmt-packed-hsv.rst | 158 + Documentation/media/uapi/v4l/pixfmt.rst| 1 +

[PATCH v5 11/12] [media] Documentation: Add HSV encodings

2016-08-18 Thread Ricardo Ribalda Delgado
Describe the hsv_enc field and its use. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/pixfmt-002.rst| 12 ++- Documentation/media/uapi/v4l/pixfmt-003.rst| 14 ++-- Documentation/media/uapi/v4l/pixfmt-006.rst|

[PATCH v5 09/12] [media] vivid: Local optimization

2016-08-18 Thread Ricardo Ribalda Delgado
Avoid duplicated clamps when possible. Suggested-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git

[PATCH v5 03/12] [media] Documentation: Add Ricardo Ribalda

2016-08-18 Thread Ricardo Ribalda Delgado
My initials were on the Changelog, but there was no link to my name. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/v4l2.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/media/uapi/v4l/v4l2.rst

[PATCH v5 01/12] [media] videodev2.h Add HSV formats

2016-08-18 Thread Ricardo Ribalda Delgado
These formats store the color information of the image in a geometrical representation. The colors are mapped into a cylinder, where the angle is the HUE, the height is the VALUE and the distance to the center is the SATURATION. This is a very useful format for image segmentation algorithms.

Re: pwc over musb: 100% frame drop (lost) on high resolution stream

2016-08-18 Thread Matwey V. Kornilov
Any ideas? 2016-08-04 23:08 GMT+03:00 Matwey V. Kornilov : > When DMA is not used, I see the same behavior: lots of zero-length > packages received. > > Can It be related to some kind of USB overflow due to long input data > processing with disabled IRQ? > When HCD_BC is used

[PATCH] v4l: vsp1: Fix tri-planar format support through DRM API

2016-08-18 Thread Laurent Pinchart
The vsp1 driver supports tri-planar formats, but the DRM API only passes two memory addresses. Add a third one. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_drm.c | 6 +++--- include/media/vsp1.h | 2 +- 2

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-08-18 Thread Pavel Machek
On Thu 2016-08-11 14:16:34, Sakari Ailus wrote: > On Tue, Aug 09, 2016 at 01:23:23AM +0200, Pavel Machek wrote: > > On Wed 2016-08-10 15:01:05, Sakari Ailus wrote: > > > On Mon, Aug 08, 2016 at 11:41:32PM +0200, Pavel Machek wrote: > > > > On Mon 2016-08-08 11:09:56, Sakari Ailus wrote: > > > > >

[PATCH] [media] v4l: omap_vout: vrfb: Convert to dmaengine

2016-08-18 Thread Peter Ujfalusi
The dmaengine driver for sDMA now have support for interleaved transfer. This trasnfer type was open coded with the legacy omap-dma API, but now we can move it to dmaengine. Signed-off-by: Peter Ujfalusi --- The dmaengine driver for sDMA now have support for interleaved

Re: Adding Linux support for the Ion Video 2 PC analog video capture device (em28xx)

2016-08-18 Thread Mauro Carvalho Chehab
Em Wed, 17 Aug 2016 15:26:40 -0400 Alexandre-Xavier Labonté-Lamoureux escreveu: > Hi, > > I have an Ion Video 2 PC and a StarTech svid2usb23 (id: 0xeb1a, > 0x5051). I have documented them here: > https://linuxtv.org/wiki/index.php/Ion_Video_2_PC > > I can get them to be

[PATCH for v4.8] cec-edid: check for IEEE identifier

2016-08-18 Thread Hans Verkuil
The cec_get_edid_spa_location() function did not verify that the IEEE identifier in the Vendor Specific Data Block matched the HDMI-LLC identifier. This could result in the wrong VSDB block being returned. For example, for HDMI 2.0 EDIDs there is also a HDMI Forum VSDB. So check the IEEE