cron job: media_tree daily build: WARNINGS

2016-08-19 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: Sat Aug 20 04:00:26 CEST 2016 git branch: test git hash: b6aa39228966e0d3f0bc3306be1892f87792903a gcc versi

[PATCH 2/3] [media] subdev-formats.rst: adjust tables size for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are two big tables here that are very hard to adjust its size. The first one would fit into one page, but the latex.py logic at Sphinx auto-switches to longtable when there are more than 30 rows. There's no way to override without coding. The second one is really big, and won't fit on a sin

[PATCH 3/3] cec-ioc-receive.rst: one table here should be longtable.

2016-08-19 Thread Mauro Carvalho Chehab
The table is too big to fit into a single page on LaTeX format. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/cec/cec-ioc-receive.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/media/uapi/cec/cec-ioc-receive.rst b/Documentation/media/uapi/cec/cec-ioc

[PATCH 1/3] [media] extended-controls.rst: avoid going past page with LaTeX

2016-08-19 Thread Mauro Carvalho Chehab
It is painful to put code/verbatim code in bold. It seems that the only way is to arrange it like: ``foo`` bar At least on LaTeX output, when this happens, the "foo" string is not hidentable/breakable. The entire string should fit into a single line. Add a workaround for this

Re: [PATCH v4 4/6] media: rc: meson-ir: Add support for newer versions of the IR decoder

2016-08-19 Thread Kevin Hilman
Martin Blumenstingl writes: > From: Neil Armstrong > > Newer SoCs (Meson 8b and GXBB) are using REG2 (offset 0x20) instead of > REG1 to configure the decoder mode. This makes it necessary to > introduce new bindings so the driver knows which register has to be > used. > > Signed-off-by: Neil Arm

Re: [PATCH v4 1/6] pinctrl: amlogic: gxbb: add the IR remote pin

2016-08-19 Thread Kevin Hilman
Martin Blumenstingl writes: > This adds the IR remote receiver to the AO domain devices. nit Re: Subject: should specify IR remote *input* pin. > Signed-off-by: Martin Blumenstingl > --- > drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8 > 1 file changed, 8 insertions(+) > > diff --gi

[PATCH v4 0/6] Add Meson 8b / GXBB support to the IR driver

2016-08-19 Thread Martin Blumenstingl
Newer Amlogic platforms (Meson 8b and GXBB) use a slightly different register layout for their Infrared Remoete Controller. The decoder mode is now configured in another register. Without the changes to the meson-ir driver we are simply getting incorrect "durations" reported from the hardware (beca

[PATCH v4 1/6] pinctrl: amlogic: gxbb: add the IR remote pin

2016-08-19 Thread Martin Blumenstingl
This adds the IR remote receiver to the AO domain devices. Signed-off-by: Martin Blumenstingl --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index

[PATCH] vsp1: add R8A7792 VSP1V support

2016-08-19 Thread Sergei Shtylyov
Add support for the R8A7792 VSP1V cores which are different from the other gen2 VSP1 cores... Signed-off-by: Sergei Shtylyov --- This patch is against the 'media_tree.git' repo's 'master' branch. drivers/media/platform/vsp1/vsp1_drv.c | 20 drivers/media/platform/vsp1/

[PATCH v4 4/6] media: rc: meson-ir: Add support for newer versions of the IR decoder

2016-08-19 Thread Martin Blumenstingl
From: Neil Armstrong Newer SoCs (Meson 8b and GXBB) are using REG2 (offset 0x20) instead of REG1 to configure the decoder mode. This makes it necessary to introduce new bindings so the driver knows which register has to be used. Signed-off-by: Neil Armstrong Signed-off-by: Martin Blumenstingl

[PATCH v4 5/6] ARM64: dts: meson-gxbb: Add Infrared Remote Controller decoder

2016-08-19 Thread Martin Blumenstingl
From: Neil Armstrong This adds the Infrared Remote Controller node so boards with an IR remote can simply enable it. Signed-off-by: Neil Armstrong Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch

[PATCH v4 3/6] dt-bindings: media: meson-ir: Add Meson8b and GXBB compatible strings

2016-08-19 Thread Martin Blumenstingl
From: Neil Armstrong New bindings are needed as the register layout on the newer platforms is slightly different compared to Meson6b. Signed-off-by: Neil Armstrong Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring --- Documentation/devicetree/bindings/media/meson-ir.txt | 5 - 1 f

[PATCH v4 2/6] ARM64: dts: amlogic: add the pin for the IR remote

2016-08-19 Thread Martin Blumenstingl
Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 4f42316..72df302 100644 --- a/arch/arm64/boot/dts/amlogic/

[PATCH v4 6/6] ARM64: dts: meson-gxbb: Enable the the IR decoder on supported boards

2016-08-19 Thread Martin Blumenstingl
Enable the Infrared Remote Controller on boards which have an Infrared receiver. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 6 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 6 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s9

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

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 17:40:38 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 19 Aug 2016 17:52:07 +0200 > Markus Heiser escreveu: > > > After said this, what is your suggestion? For me its all equal, these > > are only my 2cent to this discussion :-) Forgot to mention, but I noticed that, so

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

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 17:52:07 +0200 Markus Heiser escreveu: > Am 19.08.2016 um 14:49 schrieb Jani Nikula : > > > On Fri, 19 Aug 2016, Markus Heiser wrote: > >> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : > >> * the pdf goes to the "latex" folder .. since this is WIP > >> and there are di

[PATCH 5/6] [media] docs-rst: Convert LIRC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

[PATCH 2/6] [media] docs-rst: Convert V4L2 uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/func-close.rst | 2 +- Documentation/media/

[PATCH 1/6] [media] docs-next: stop abusing on the cpp domain

2016-08-19 Thread Mauro Carvalho Chehab
Now that we have an override for the c domain that will do the right thing for the Kernel, stop abusing on the cpp domain. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/conf_nitpick.py| 33 +++--- Documentation/media/kapi/dtv-core.rst |

[PATCH 4/6] [media] docs-rst: Convert CEC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

[PATCH 3/6] [media] docs-rst: Convert DVB uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation, marking the deprecated ioctls, and making the non-deprecated ones more like the rest of t

[PATCH 0/6] Convert media uAPI to c domain

2016-08-19 Thread Mauro Carvalho Chehab
Those patches make usage of the new c-domain override extension written by Markus. They allow stopping abusing of the cpp domain to allow "overriding" the ioctl function, and converts all syscall documentation at the media uAPI book to c domain. Mauro Carvalho Chehab (6): [media] docs-next: stop

[PATCH 6/6] [media] docs-rst: Convert MC uAPI to use C function references

2016-08-19 Thread Mauro Carvalho Chehab
Name all ioctl references and make them match the ioctls that are documented. That will improve the cross-reference index, as it will have all ioctls and syscalls there. While here, improve the documentation to make them to look more like the rest of the document. Signed-off-by: Mauro Carvalho Ch

Re: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-19 Thread Alexandre-Xavier Labonté-Lamoureux
Hi, If this is the SVID2USB23 with the id 0xeb1a, 0x5051, then I hope someone will get it to work, because it will fix my Ion Video 2 PC which has the same hardware. I wrote a wiki page about it: https://www.linuxtv.org/wiki/index.php/Ion_Video_2_PC Best regards to every of you, Alexandre-Xavier

[PATCH 2/4] pulse8-cec: serialize communication with adapter

2016-08-19 Thread Johan Fjeldtvedt
Make sending messages to the adapter serialized within the driver. send_and_wait is split into send_and_wait_once, which only sends once and checks for the result, and the higher level send_and_wait, which performs locking and retries. Signed-off-by: Johan Fjeldtvedt --- drivers/staging/media/p

[PATCH 3/4] pulse8-cec: add notes about behavior in autonomous mode

2016-08-19 Thread Johan Fjeldtvedt
The pulse8 dongle has some quirky behaviors when in autonomous mode. Document these. Signed-off-by: Johan Fjeldtvedt --- drivers/staging/media/pulse8-cec/pulse8-cec.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/staging/media/pulse8-cec/pulse8-cec.c b/dri

[PATCH 1/4] cec: allow configuration both from within driver and from user space

2016-08-19 Thread Johan Fjeldtvedt
It makes sense for adapters such as the Pulse-Eight to be configurable both from within the driver and from user space, so remove the requirement that drivers only can call cec_s_log_addrs or cec_s_phys_addr if they don't expose those capabilities to user space. Signed-off-by: Johan Fjeldtvedt --

[PATCH 4/4] pulse8-cec: sync configuration with adapter

2016-08-19 Thread Johan Fjeldtvedt
When the configuration is changed, they are also written to the adapter. This allows the adapter to continue operating in autonomous mode with the same settings when it is disconnected from the driver (typically by going into suspend). For adapters with firmware version 2 or greater, the settings a

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

2016-08-19 Thread Markus Heiser
Am 19.08.2016 um 14:49 schrieb Jani Nikula : > On Fri, 19 Aug 2016, Markus Heiser wrote: >> Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : >> * the pdf goes to the "latex" folder .. since this is WIP >> and there are different solutions conceivable ... I left >> it open for the first. > > M

RE: Sony tuner chip driver questions

2016-08-19 Thread Takiguchi, Yasunari
Dear Mauro We discuss about > At the DVB frontend, the tuner and demodulators should be implemented > on different drivers, even when both are encapsulated on the same silicon. with our HW developers and SW designers. Our codes for tuner and demodulator driver of user-space driver are encapsulat

[PATCH 2/2] [media] Fix a few additional tables at uAPI for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are still a few tables with wrong columns at the uAPI docs. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/fe-get-info.rst| 2 +- Documentation/media/uapi/dvb/fe_property_parameters.rst | 5 ++--- Documentation/media/uapi/v4l/buffer.rst

[PATCH 1/2] [media] docs-rst: fix warnings introduced by LaTeX patchset

2016-08-19 Thread Mauro Carvalho Chehab
Sphinx is really pedantic with respect to the order where table tags and references are created. Putting things at the wrong order causes troubles. The order that seems to work is: .. raw:: latex .. tabularcolumns:: .. _foo_name: .. cssclass: longtable

Re: [PATCH v4 1/8] media: adv7180: fix field type

2016-08-19 Thread Lars-Peter Clausen
On 08/03/2016 08:03 PM, Steve Longerbeam wrote: > From: Steve Longerbeam > > The ADV7180 and ADV7182 transmit whole fields, bottom field followed > by top (or vice-versa, depending on detected video standard). So > for chips that do not have support for explicitly setting the field > mode via I2P

Re: [PATCH v4 2/4] dt-bindings: Add a binding for Mediatek MDP

2016-08-19 Thread Rob Herring
On Fri, Aug 19, 2016 at 07:39:25PM +0800, Minghsiu Tsai wrote: > Add a DT binding documentation of MDP for the MT8173 SoC > from Mediatek > > Signed-off-by: Minghsiu Tsai > --- > .../devicetree/bindings/media/mediatek-mdp.txt | 109 > > 1 file changed, 109 insertions(+

Re: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-19 Thread Andrey Utkin
On Fri, Aug 19, 2016 at 01:52:23PM +, Steve Preston wrote: > Hello everyone, > > Sorry for the slow response. Several people have offered to help and this is > greatly appreciated. I'm not the occultation person actually doing the dev > work on our Linux project. You should CC your Linux p

Re: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-19 Thread Devin Heitmueller
Hi Steve, > We have two models of the StarTech in use: SVID2USB2 and SVID2USB23. The > "23" version is the only version currently listed on StarTech's website. It > is available via Amazon in the USA but I'm not sure about other countries. Have you actually opened these units up and confirmed

[GIT PULL FOR v4.9] Add atmel-isc driver

2016-08-19 Thread Hans Verkuil
New Atmel ISC driver. Regards, Hans The following changes since commit b6aa39228966e0d3f0bc3306be1892f87792903a: Merge tag 'v4.8-rc1' into patchwork (2016-08-08 07:30:25 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git atmel-isc for you to

RE: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-19 Thread Steve Preston
Hello everyone, Sorry for the slow response. Several people have offered to help and this is greatly appreciated. I'm not the occultation person actually doing the dev work on our Linux project. I have forwarded the suggestions from this thread on the list and we let you know as we make progr

[GIT PULL FOR v4.8] Fixes and updates (mostly cec-related) (v3)

2016-08-19 Thread Hans Verkuil
Hi Mauro, These are (regression) fixes for 4.8, mostly related to the cec framework. It fixes some dubious locking code, two typos in cec-funcs.h, a missing reply for the Record On/Off messages, improves the documentation, adds a TODO line, adds a flag to explicitly allow fallback to Unregistered

Re: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 10:37:50 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 19 Aug 2016 15:24:16 +0200 > Hans Verkuil escreveu: > > > On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: > > > There are some things there that aren't ok for ReST format. > > > > > > Fix them. > > > > > > Signe

Re: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Aug 2016 15:24:16 +0200 Hans Verkuil escreveu: > On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: > > There are some things there that aren't ok for ReST format. > > > > Fix them. > > > > Signed-off-by: Mauro Carvalho Chehab > > OK, so I posted a similar patch for this: > > ht

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

2016-08-19 Thread Mauro Carvalho Chehab
Em Thu, 18 Aug 2016 16:35:14 -0600 Jonathan Corbet escreveu: > 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 > > * contr

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

2016-08-19 Thread Mauro Carvalho Chehab
Em Thu, 18 Aug 2016 17:21:27 -0600 Jonathan Corbet escreveu: > 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: [PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Hans Verkuil
On 08/19/2016 03:05 PM, Mauro Carvalho Chehab wrote: There are some things there that aren't ok for ReST format. Fix them. Signed-off-by: Mauro Carvalho Chehab OK, so I posted a similar patch for this: https://patchwork.linuxtv.org/patch/36376/ It's part of one of my pull requests, but I g

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

2016-08-19 Thread Hans Verkuil
On 08/18/2016 04:33 PM, Ricardo Ribalda Delgado wrote: > 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 fil

[PATCH 10/15] [media] adjust remaining tables at DVB uAPI documentation

2016-08-19 Thread Mauro Carvalho Chehab
There are a few broken tables on LaTeX output at the DVB uAPI documentation. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/audio-fopen.rst| 2 ++ Documentation/media/uapi/dvb/ca-fopen.rst | 2 ++ Documentation/media/uapi/dvb/dmx-fread.rst

[PATCH 06/15] [media] vidioc-g-tuner.rst: improve documentation for tuner type

2016-08-19 Thread Mauro Carvalho Chehab
The tuner type table misses descriptions for each type. While most of stuff are obvious, the two SDR definitions aren't. So, add descriptions to all of them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 12 ++-- 1 file changed, 6 insertions(

[PATCH 05/15] [media] adjust some vidioc-*rst tables with wrong columns

2016-08-19 Thread Mauro Carvalho Chehab
Adjust simple cases where the columns on some vidioc files are overriding their neighbours. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dqevent.rst | 2 ++ Documentation/media/uapi/v4l/vidioc-enum-fmt.rst| 4 +++- Documentation/media/uapi/v4l/vi

[PATCH 12/15] [media] docs-rst: move cec kAPI documentation to the media book

2016-08-19 Thread Mauro Carvalho Chehab
The CEC kAPI documentation should also be part of the media book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/{cec.txt => media/kapi/cec-core.rst} | 0 Documentation/media/media_kapi.rst | 1 + 2 files changed, 1 insertion(+) rename Documentation/{cec.txt => media/kap

[PATCH 04/15] [media] vidioc-g-sliced-vbi-cap.rst: make tables fit on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
The tables don't fit at the page on this file. As noticed before, Sphinx (or LaTeX?) does a crap job on tables with cell span, and some work has to be done to make it fit. Move the see also reference to a footnote, break one paragraph into two and adjust the table columns to make it visible. Sign

[PATCH 02/15] [media] vidioc-dv-timings-cap.rst: Adjust LaTeX columns

2016-08-19 Thread Mauro Carvalho Chehab
Some tables are not properly displayed on LaTeX. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst b/

[PATCH 00/15] Fix (most of) the remaining issues with uAPI book and LaTeX

2016-08-19 Thread Mauro Carvalho Chehab
This patch series addresses (almost all) remaining issues of texts going out of the page width. There are just two places that need fixes: - Two big tables at Documentation/media/uapi/v4l/subdev-formats.rst; - some texts at Documentation/media/uapi/v4l/extended-controls.rst

[PATCH 08/15] [media] fix v4l2-selection-*.rst tables for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Adjust the tables there to fit inside the page margins. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/v4l2-selection-flags.rst | 1 + Documentation/media/uapi/v4l/v4l2-selection-targets.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/media/uapi/

[PATCH 07/15] [media] vidioc-g-tuner.rst: Fix tables to fit at LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Several tables are missing column definitions and/or are too big to fit into the page. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-g-tuner.rst | 32 ++--- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/Documentatio

[PATCH 01/15] [media] vidioc-dqevent.rst: adjust two table columns for LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
There are two tables with mangled columns. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc-dqevent.rst | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/v4l/vidioc-dqevent.rst b/Documentation/media/uapi/v4l/vi

[PATCH 09/15] [media] fe_property_parameters.rst: Adjust column sizes

2016-08-19 Thread Mauro Carvalho Chehab
Add position hints for some tables, in order for them to be shown properly on LaTeX output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/fe_property_parameters.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/media/uapi/dvb/fe_property_parameters.

[PATCH 14/15] [media] uapi/cec: adjust tables on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
Fix tables to avoid text to overflow the cell limits. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/cec/cec-ioc-adap-g-caps.rst | 4 ++-- .../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst| 6 -- Documentation/media/uapi/cec/cec-ioc-dqevent.rst | 23 +--

[PATCH 11/15] [media] media-types.rst: adjust tables to fit on LaTeX output

2016-08-19 Thread Mauro Carvalho Chehab
A few tables at the media uAPI documentation have columns not well dimentioned. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/mediactl/media-types.rst | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/media/uapi/med

[PATCH 03/15] [media] vidioc-enumstd.rst: adjust video standards table

2016-08-19 Thread Mauro Carvalho Chehab
This table is too big for LaTeX output, and lacks columns specs for LaTeX format. Also, it has a hidden column, as there are some cell spans with the wrong values. Fix it, so it can be displayed properly on LaTeX/PDF. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/vidioc

[PATCH 13/15] [media] cec-core: Convert it to ReST format

2016-08-19 Thread Mauro Carvalho Chehab
There are some things there that aren't ok for ReST format. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/cec-core.rst | 145 ++ 1 file changed, 93 insertions(+), 52 deletions(-) diff --git a/Documentation/media/kapi/cec-core.rst b

[PATCH 15/15] [media] gen-errors.rst fix error table column limits

2016-08-19 Thread Mauro Carvalho Chehab
Fix the generic errors table to avoid column overflows on LaTeX output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/gen-errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/media/uapi/gen-errors.rst b/Documentation/media/uapi/gen-err

[PATCH] docs-rst: conf.py: adjust the size of .. note:: tag

2016-08-19 Thread Mauro Carvalho Chehab
While the current implementation works well when using as a paragraph, it doesn't work properly if inside a table. As we have quite a few such cases, fix the logic to take the column size into account. PS.: I took the logic there from the latest version of Sphinx.sty Signed-off-by: Mauro Carvalho

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

2016-08-19 Thread Jani Nikula
On Fri, 19 Aug 2016, Markus Heiser wrote: > Am 19.08.2016 um 00:35 schrieb Jonathan Corbet : > * the pdf goes to the "latex" folder .. since this is WIP > and there are different solutions conceivable ... I left > it open for the first. Mea culpa. As I said, I intended my patches as RFC only.

[PATCH v4 1/4] VPU: mediatek: Add mdp support

2016-08-19 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f457479..291ae46 100644 --- a/drivers/media/

[PATCH v4 3/4] media: Add Mediatek MDP Driver

2016-08-19 Thread Minghsiu Tsai
Add MDP driver for MT8173 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig| 17 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-mdp/Makefile |9 + drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 159 drivers/me

[PATCH v4 0/4] Add MT8173 MDP Driver

2016-08-19 Thread Minghsiu Tsai
Changes in v4: - Add "depends on HAS_DMA" in Kconfig. - Fix s/g_selection() - Replace struct v4l2_crop with u32 and struct v4l2_rect - Remove VB2_USERPTR - Move mutex lock after ctx allocation in mtk_mdp_m2m_open() - Add new format V4L2_PIX_FMT_YVU420 to support software on Android platform. - Onl

[PATCH v4 2/4] dt-bindings: Add a binding for Mediatek MDP

2016-08-19 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek-mdp.txt

[PATCH v4 4/4] arm64: dts: mediatek: Add MDP for MT8173

2016-08-19 Thread Minghsiu Tsai
Add MDP node for MT8173 Signed-off-by: Minghsiu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 84 ++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 10f638f..cd93228 1006

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

2016-08-19 Thread Markus Heiser
Am 19.08.2016 um 00:35 schrieb 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*

[RFC v2 15/17] omap3isp: Allocate the media device dynamically

2016-08-19 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 25 + drivers/media/platform/omap3isp/isp.h | 2 +- drivers/media/platform/omap3isp/ispvideo.c | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/media/platfor

[RFC v2 14/17] media-device: Postpone graph object removal until free

2016-08-19 Thread Sakari Ailus
The media device itself will be unregistered based on it being unbound and driver's remove callback being called. The graph objects themselves may still be in use; rely on the media device release callback to release them. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 44 +++

[RFC v2 10/17] media: Provide a way to the driver to set a private pointer

2016-08-19 Thread Sakari Ailus
Now that the media device can be allocated dynamically, drivers have no longer a way to conveniently obtain the driver private data structure. Provide one again in the form of a private pointer passed to the media_device_alloc() function. Signed-off-by: Sakari Ailus --- drivers/media/media-devic

[RFC v2 13/17] media: Shuffle functions around

2016-08-19 Thread Sakari Ailus
As the call paths of the functions in question will change, move them around in anticipation of that. No other changes. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 88 ++-- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/

[RFC v2 12/17] v4l: Acquire a reference to the media device for every video device

2016-08-19 Thread Sakari Ailus
The video device depends on the existence of its media device --- if there is one. Acquire a reference to it. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-dev.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-dev.c

[RFC v2 11/17] media: Add release callback for media device

2016-08-19 Thread Sakari Ailus
The release callback may be used by the driver to signal the release of the media device. This makes it possible to embed a driver private struct to the same memory allocation. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 11 ++- include/media/media-device.h | 8 ++

[RFC v2 07/17] media: Split initialisation and adding device

2016-08-19 Thread Sakari Ailus
As registering a device node of an entity belonging to a media device will require a reference to the struct device. Taking that reference is only possible once the device has been initialised, which took place only when it was registered. Split this in two, and initialise the device when the media

[RFC v2 16/17] omap3isp: Release the isp device struct by media device callback

2016-08-19 Thread Sakari Ailus
Use the media device release callback to release the isp device's data structure. This approach has the benefit of not releasing memory which may still be accessed through open file handles whilst the isp driver is being unbound. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/is

[RFC v2 06/17] media: Dynamically allocate the media device

2016-08-19 Thread Sakari Ailus
From: Sakari Ailus Allow allocating the media device dynamically. As the struct media_device embeds struct media_devnode, the lifetime of that object is that same than that of the media_device. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 22 ++ include/me

[RFC v2 09/17] media-device: struct media_device requires struct device

2016-08-19 Thread Sakari Ailus
The media device always has a device around. Require one as an argument for media_device_alloc(). Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 12 ++-- include/media/media-device.h | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/media/

[RFC v2 17/17] omap3isp: Don't rely on devm for memory resource management

2016-08-19 Thread Sakari Ailus
devm functions are fine for managing resources that are directly related to the device at hand and that have no other dependencies. However, a process holding a file handle to a device created by a driver for a device may result in the file handle left behind after the device is long gone. This wil

[RFC v2 01/17] Revert "[media] media: fix media devnode ioctl/syscall and unregister race"

2016-08-19 Thread Sakari Ailus
This reverts commit 6f0dd24a084a ("[media] media: fix media devnode ioctl/syscall and unregister race"). The commit was part of an original patchset to avoid crashes when an unregistering device is in use. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 15 +++ driver

[RFC v2 08/17] media-device: Make devnode.dev->kobj parent of devnode.cdev

2016-08-19 Thread Sakari Ailus
The struct cdev embedded in struct media_devnode contains its own kobj. Instead of trying to manage its lifetime separately from struct media_devnode, make the cdev kobj a parent of the struct media_device.dev kobj. The cdev will thus be released during unregistering the media_devnode, not in medi

[RFC v2 03/17] Revert "[media] media-device: dynamically allocate struct media_devnode"

2016-08-19 Thread Sakari Ailus
This reverts commit a087ce704b80 ("[media] media-device: dynamically allocate struct media_devnode"). The commit was part of an original patchset to avoid crashes when an unregistering device is in use. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 44 +++--

[RFC v2 02/17] Revert "[media] media: fix use-after-free in cdev_put() when app exits after driver unbind"

2016-08-19 Thread Sakari Ailus
This reverts commit 5b28dde51d0c ("[media] media: fix use-after-free in cdev_put() when app exits after driver unbind"). The commit was part of an original patchset to avoid crashes when an unregistering device is in use. Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 6 ++

[RFC v2 05/17] media: devnode: Rename mdev argument as devnode

2016-08-19 Thread Sakari Ailus
Historically, mdev argument name was being used on both struct media_device and struct media_devnode. Recently most occurrences of mdev referring to struct media_devnode were replaced by devnode, which makes more sense. Fix the last remaining occurrence. Fixes: 163f1e93e9950 ("[media] media-devnod

[RFC v2 04/17] media: Remove useless curly braces and parentheses

2016-08-19 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/media-device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index a1cd50f..8bdc316 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/media-device.c @@

[RFC v2 00/17] Make use of kref in media device, grab references as needed

2016-08-19 Thread Sakari Ailus
Hi folks, Here's the second version of the media reference patchset I've been working on for some time. The lifetime of the media device (and media devnode) is now bound to that of struct device embedded in it and its memory is only released once the last reference is gone: unregistering is simpl

[PATCH 2/2] uvc_v4l2: One function call less in uvc_ioctl_ctrl_map() after error detection

2016-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 19 Aug 2016 11:00:38 +0200 The kfree() function was called in two cases by the uvc_ioctl_ctrl_map() function during error handling even if the passed data structure element contained a null pointer. Adjust jump targets according to the Linux coding style conventio

[PATCH 1/2] uvc_v4l2: Use memdup_user() rather than duplicating its implementation

2016-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 19 Aug 2016 10:50:05 +0200 Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_v4l2.c | 11 +++ 1

[PATCH 0/2] uvc_v4l2: Fine-tuning for uvc_ioctl_ctrl_map()

2016-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 19 Aug 2016 11:11:01 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use memdup_user() rather than duplicating its implementation One function call less after error detection drivers/media/usb/uvc/

Re: [PATCH 1/6] drm: Don't implement empty prepare_fb()/cleanup_fb()

2016-08-19 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 11:39:29AM +0300, Laurent Pinchart wrote: > The plane .prepare_fb() and .cleanup_fb() helpers are optional, there's > no need to implement empty stubs, and no need to explicitly set the > function pointers to NULL either. > > Signed-off-by: Laurent Pinchart Rebased onto C

[PATCH] cec-follower/cec-compliance: fix bug in string conversion

2016-08-19 Thread Johan Fjeldtvedt
In all_dev_types2s: don't try to erase the last two characters in the string if it is empty. This was fixed in cec-ctl, so the same fix is applied to cec-compliance and cec-follower. Signed-off-by: Johan Fjeldtvedt --- utils/cec-compliance/cec-compliance.cpp | 4 +++- utils/cec-follower/cec-fol

Re: [PATCH 3/6] v4l: rcar-fcp: Don't get/put module reference

2016-08-19 Thread Geert Uytterhoeven
On Fri, Aug 19, 2016 at 10:39 AM, Laurent Pinchart wrote: > Direct callers of the FCP API hold a reference to the FCP module due to > module linkage, there's no need to take another one manually. Take a > reference to the device instead to ensure that it won't disappear being ... behind > the ca

[PATCH 2/6] drm: Unconstify state argument to prepare_fb()/cleanup_fb()

2016-08-19 Thread Laurent Pinchart
The functions might need to modify the state to store memory-related data. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 4 ++-- drivers/gpu/drm/i915/intel_display.c| 4 ++-- drivers/gpu/drm/i915/intel_drv.h| 4 ++-- drivers/gpu

[PATCH 4/6] v4l: rcar-fcp: Add an API to retrieve the FCP device

2016-08-19 Thread Laurent Pinchart
The new rcar_fcp_get_device() function retrieves the struct device related to the FCP device. This is useful to handle DMA mapping through the right device. Signed-off-by: Laurent Pinchart --- drivers/media/platform/rcar-fcp.c | 6 ++ include/media/rcar-fcp.h | 5 + 2 files chan

[PATCH 5/6] v4l: vsp1: Add API to map and unmap DRM buffers through the VSP

2016-08-19 Thread Laurent Pinchart
The display buffers must be mapped for DMA through the device that performs memory access. Expose an API to map and unmap memory through the VSP device to be used by the DU. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_drm.c | 24 include/media/vs

[PATCH 6/6] drm: rcar-du: Map memory through the VSP device

2016-08-19 Thread Laurent Pinchart
For planes handled by a VSP instance, map the framebuffer memory through the VSP to ensure proper IOMMU handling. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 74 --- drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 2 + 2 files changed, 70

[PATCH 1/6] drm: Don't implement empty prepare_fb()/cleanup_fb()

2016-08-19 Thread Laurent Pinchart
The plane .prepare_fb() and .cleanup_fb() helpers are optional, there's no need to implement empty stubs, and no need to explicitly set the function pointers to NULL either. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/arc/arcpgu_crtc.c | 2 -- drivers/gpu/drm/fsl-dcu/fsl_d

[PATCH 3/6] v4l: rcar-fcp: Don't get/put module reference

2016-08-19 Thread Laurent Pinchart
Direct callers of the FCP API hold a reference to the FCP module due to module linkage, there's no need to take another one manually. Take a reference to the device instead to ensure that it won't disappear being the caller's back. Signed-off-by: Laurent Pinchart --- drivers/media/platform/rcar-

[PATCH 0/6] R-Car DU: Fix IOMMU operation when connected to VSP

2016-08-19 Thread Laurent Pinchart
Hello, This patch series fixes the rcar-du-drm driver to support VSP plane sources with an IOMMU. It is available for convenience at git://linuxtv.org/pinchartl/media.git iommu/devel/du On R-Car Gen3 the DU has no direct memory access but sources planes through VSP instances. When an IOM

  1   2   >