cron job: media_tree daily build: ERRORS

2016-07-08 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 Jul 9 04:00:15 CEST 2016 git branch: test git hash: 9ad52b4db79d168867a2ca105eca00fb9cb28fe5 gcc

Re: linux-next build error "cec-adap.c:141: error: unknown field ‘lost_msgs’ specified in initializer"

2016-07-08 Thread Mauro Carvalho Chehab
Em Fri, 8 Jul 2016 15:55:44 -0700 Vinson Lee escreveu: > Hi. > > Commit 9881fe0ca187 "[media] cec: add HDMI CEC framework (adapter)" > introduced this build error with GCC 4.4. > > CC [M] drivers/staging/media/cec/cec-adap.o > drivers/staging/media/cec/cec-adap.c: In

linux-next build error "cec-adap.c:141: error: unknown field ‘lost_msgs’ specified in initializer"

2016-07-08 Thread Vinson Lee
Hi. Commit 9881fe0ca187 "[media] cec: add HDMI CEC framework (adapter)" introduced this build error with GCC 4.4. CC [M] drivers/staging/media/cec/cec-adap.o drivers/staging/media/cec/cec-adap.c: In function ‘cec_queue_msg_fh’: drivers/staging/media/cec/cec-adap.c:141: error: unknown field

[PATCH] media: s5p-mfc fix invalid memory access from s5p_mfc_release()

2016-07-08 Thread Shuah Khan
If s5p_mfc_release() runs after s5p_mfc_remove(), the former will access invalid s5p_mfc_dev pointer saved in the s5p_mfc_ctx and runs into kernel paging request errors. Clear ctx dev pointer in s5p_mfc_remove() and change s5p_mfc_release() to avoid work that requires ctx->dev. odroid kernel:

[linuxtv-media:master 310/383] drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:360:19: error: implicit declaration of function 'vb2_dma_contig_init_ctx'

2016-07-08 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git master head: 9ad52b4db79d168867a2ca105eca00fb9cb28fe5 commit: 36c0f8b32c4bd4f668cedfba6d97afaa84f055fb [310/383] [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs config: arm-allmodconfig (attached as .config) compiler:

[PATCH 4/4] [media] doc-rst: reformat cec-api.rst

2016-07-08 Thread Mauro Carvalho Chehab
Use the same format as the other parts. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/cec/cec-api.rst | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/media/uapi/cec/cec-api.rst

[PATCH 2/4] [media] doc-rst: linux_tc CEC enhanced markup

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser leaved content unchanged, only improved markup and references * more man-like sections (add Name section) * defined target for each stuct field description * replace constant with ":ref:" to (field) description Signed-off-by: Markus Heiser

[PATCH 3/4] [media] doc-dst: visually improve the CEC pages

2016-07-08 Thread Mauro Carvalho Chehab
Adjust the widths and show error codes as constants. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/cec/cec-func-close.rst | 2 +- Documentation/media/uapi/cec/cec-func-open.rst| 10 +-

[PATCH 1/4] [media] doc-rst: linux_tv CEC part, DocBook to reST migration

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser This is the reST migration of media's CEC part. The migration is based on media_tree's cec branch: https://git.linuxtv.org/media_tree.git c7169ad * cec media_tree/cec [media] DocBook/media: add CEC documentation Signed-off-by: Markus Heiser

doc-rst: too much space around ``foo`` text

2016-07-08 Thread Hans Verkuil
Hi Markus, First of all a big 'Thank you!' for working on this, very much appreciated. And I also am very grateful that you could convert the CEC docs so quickly for me. That said, can you take a look at this:

[PATCH] [media] doc-rst: fix the Z16 format definition

2016-07-08 Thread Mauro Carvalho Chehab
Changeset 811c6d6a4243 ("[media] V4L: fix the Z16 format definition") fixed the definition for DocBook, but we need to replicate it also to ReST. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/pixfmt-z16.rst | 2 +- 1 file changed, 1

Re: [PATCH] [media] doc-rst: add dmabuf as streaming I/O in VIDIOC_REQBUFS description

2016-07-08 Thread Javier Martinez Canillas
Hello Mauro, On Fri, Jul 8, 2016 at 2:41 PM, Mauro Carvalho Chehab wrote: > Commit 707e65831d3b("[media] DocBook: add dmabuf as streaming I/O > in VIDIOC_REQBUFS description") added DMABUF to reqbufs description, > but, as we're migrating to ReST markup, we need to keep

Re: [PATCH] [media] doc-rst: mention the memory type to be set for all streaming I/O

2016-07-08 Thread Javier Martinez Canillas
Hello Mauro, On Fri, Jul 8, 2016 at 3:05 PM, Mauro Carvalho Chehab wrote: > Changeset 8c9f46095176 ("[media] DocBook: mention the memory type to > be set for all streaming I/O") updated the media DocBook to mention > the need of filling the memory types. We need to keep

[PATCH 2/2] drivers/media/platform/Kconfig: fix VIDEO_MEDIATEK_VCODEC dependency

2016-07-08 Thread Hans Verkuil
From: Hans Verkuil Allow VIDEO_MEDIATEK_VCODEC to build when COMPILE_TEST is set (even without MTK_IOMMU). Signed-off-by: Hans Verkuil --- drivers/media/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2] mtk-vcodec: convert driver to use the new vb2_queue dev field

2016-07-08 Thread Hans Verkuil
From: Hans Verkuil The patch dropping the vb2_dma_contig_init_ctx() and _cleanup_ctx() functions was already applied before this driver was added. So convert this driver as well. Signed-off-by: Hans Verkuil ---

[PATCH 0/2] mtk-vcodec fixups

2016-07-08 Thread Hans Verkuil
From: Hans Verkuil Two patches: the first converts the driver to use the new vb2_queue dev field (this came in after the pull request of this driver was posted). The second allows this driver to be built when COMPILE_TEST is set and MTK_IOMMU is not set. Regards,

[PATCH] [media] doc-rst: mention the memory type to be set for all streaming I/O

2016-07-08 Thread Mauro Carvalho Chehab
Changeset 8c9f46095176 ("[media] DocBook: mention the memory type to be set for all streaming I/O") updated the media DocBook to mention the need of filling the memory types. We need to keep the ReST doc updated to such change. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH] [media] doc-rst: add dmabuf as streaming I/O in VIDIOC_REQBUFS description

2016-07-08 Thread Mauro Carvalho Chehab
Commit 707e65831d3b("[media] DocBook: add dmabuf as streaming I/O in VIDIOC_REQBUFS description") added DMABUF to reqbufs description, but, as we're migrating to ReST markup, we need to keep it in sync with the change. Signed-off-by: Mauro Carvalho Chehab ---

Re: [PATCH] media: Doc s5p-mfc add missing fields to s5p_mfc_dev structure definition

2016-07-08 Thread Javier Martinez Canillas
Hello Shuah, On 07/08/2016 10:12 AM, Shuah Khan wrote: > Add missing documentation for s5p_mfc_dev structure definition. > > Signed-off-by: Shuah Khan > --- > drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [ANN] Media documentation converted to ReST markup language

2016-07-08 Thread Mauro Carvalho Chehab
Em Fri, 8 Jul 2016 15:45:52 +0200 Hans Verkuil escreveu: > On 07/08/2016 03:34 PM, Mauro Carvalho Chehab wrote: > > As commented on the patch series I just submitted, we finished the > > conversion > > of the Media uAPI book from DocBook to ReST. > > > > For now, I'm

[PATCH v5 1/2] media: i2c/ov5645: add the device tree binding document

2016-07-08 Thread Todor Tomov
Add the document for ov5645 device tree binding. Signed-off-by: Todor Tomov Acked-by: Rob Herring --- .../devicetree/bindings/media/i2c/ov5645.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644

[PATCH v5 2/2] media: Add a driver for the ov5645 camera sensor.

2016-07-08 Thread Todor Tomov
The ov5645 sensor from Omnivision supports up to 2592x1944 and CSI2 interface. The driver adds support for the following modes: - 1280x960 - 1920x1080 - 2592x1944 Output format is packed 8bit UYVY. Signed-off-by: Todor Tomov --- drivers/media/i2c/Kconfig | 12 +

[PATCH v5 0/2] OV5645 camera sensor driver

2016-07-08 Thread Todor Tomov
This is the fifth version of the OV5645 camera sensor driver patchset. Two one-line changes since version 4: - return current format on set_format; - return all frame sizes when enumerating them. Only one change since version 3: - build failure on kernel v4.7-rc1 fixed:

[PATCH] media: Doc s5p-mfc add missing fields to s5p_mfc_dev structure definition

2016-07-08 Thread Shuah Khan
Add missing documentation for s5p_mfc_dev structure definition. Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h

Re: A potential race

2016-07-08 Thread Pavel Andrianov
Hi! We have no hardware to test possible fixes. If somebody has it and agrees to check our patches, we will prepare them. Best regards, Pavel 01.07.2016 20:17, Hans Verkuil пишет: On 07/01/2016 05:02 PM, Pavel Andrianov wrote: 01.07.2016 19:53, Hans Verkuil пишет: On 07/01/2016 04:39 PM,

Re: [ANN] Media documentation converted to ReST markup language

2016-07-08 Thread Hans Verkuil
On 07/08/2016 03:34 PM, Mauro Carvalho Chehab wrote: > As commented on the patch series I just submitted, we finished the conversion > of the Media uAPI book from DocBook to ReST. > > For now, I'm placing the new documentation, after parsed by Sphinx, at this > place: >

[ANN] Media documentation converted to ReST markup language

2016-07-08 Thread Mauro Carvalho Chehab
As commented on the patch series I just submitted, we finished the conversion of the Media uAPI book from DocBook to ReST. For now, I'm placing the new documentation, after parsed by Sphinx, at this place: https://mchehab.fedorapeople.org/media_API_book/ There are some instructions there

Re: [PATCH 00/54] Second series of ReST convert patches for media

2016-07-08 Thread Hans Verkuil
On 07/08/2016 03:02 PM, Mauro Carvalho Chehab wrote: > That's the second series of patches related to DocBook to ReST > conversion. With this patch series, we're ready to merge it > upstream. > > There are still one thing to do: there are some new updates at > the DocBook pages on two topic

[PATCH 36/54] doc-rst: parse-headers: fix multiline typedef handler

2016-07-08 Thread Mauro Carvalho Chehab
The typedef handler should do two things to be generic: 1) parse typedef enums; 2) accept both possible syntaxes: typedef struct foo { .. } foo_t; typedef struct { .. } foo_t; Unfortunately, this is needed to parse some legacy DVB files, like dvb/audio.h. Signed-off-by:

[PATCH 51/54] doc-rst: linux_tv/Makefile: Honor quiet mode

2016-07-08 Thread Mauro Carvalho Chehab
Cleanup the Makefile and handle the V=1 flag and make it to work when specifying an output directory with O=dir Signed-off-by: Mauro Carvalho Chehab --- Documentation/Makefile.sphinx | 2 +- Documentation/linux_tv/Makefile | 49

[PATCH 50/54] doc-rst: videodev2.h: add cross-references for defines

2016-07-08 Thread Mauro Carvalho Chehab
Remove most of ignore stuff for defines, pointing them to the proper tables/sections. Signed-off-by: Mauro Carvalho Chehab --- .../linux_tv/media/v4l/vidioc-dv-timings-cap.rst | 8 +- .../linux_tv/media/v4l/vidioc-g-dv-timings.rst | 26 +-

[PATCH 35/54] doc-rst: parse-headers: better handle typedefs

2016-07-08 Thread Mauro Carvalho Chehab
When typedef is used on its multiline format, we need to also parse enum and struct in the same line. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parse-headers.pl | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH 19/54] doc-rst: media-controller.rst: add missing copy symbol

2016-07-08 Thread Mauro Carvalho Chehab
Just like V4L and DVB parts, add the copyright symbol. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/mediactl/media-controller.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 20/54] doc-rst: media-controller-model: fix a typo

2016-07-08 Thread Mauro Carvalho Chehab
Remove a 'm' at the end of the last phrase. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/mediactl/media-controller-model.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 10/54] doc-rst: linux_tv: use :cpp:function:: on all syscalls

2016-07-08 Thread Mauro Carvalho Chehab
Now that we have one syscall per page, using :cpp:function:: cleans up almost all warnings, with is a great thing. Signed-off-by: Mauro Carvalho Chehab --- .../media/dvb/audio-bilingual-channel-select.rst | 2 +- .../linux_tv/media/dvb/audio-channel-select.rst

[PATCH 22/54] doc-rst: media-ioc-g-topology: Fix tables

2016-07-08 Thread Mauro Carvalho Chehab
The tables were not properly converted. It looked a little ackward already at DocBook, but the conversion made it worse. Fix them. Signed-off-by: Mauro Carvalho Chehab --- .../media/mediactl/media-ioc-g-topology.rst| 63 +++--- 1 file changed,

[PATCH 23/54] doc-rst: media-ioc-enum-entities: better format the table

2016-07-08 Thread Mauro Carvalho Chehab
Add a :widths: at the flat-table, to improve the visual. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/mediactl/media-ioc-enum-entities.rst | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 34/54] doc-rst: parse-headers: be more formal about the valid symbols

2016-07-08 Thread Mauro Carvalho Chehab
Be more formal about the valid symbols that are expected by the parser, to match what c language expects. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parse-headers.pl | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 31/54] doc-rst: parse-headers: improve delimiters to detect symbols

2016-07-08 Thread Mauro Carvalho Chehab
As we had to escape the symbols for the ReST markup to not do the wrong thing, the logic to discover start/end of strings are not trivial. Improve the end delimiter detection, in order to highlight more occurrences of the strings. Signed-off-by: Mauro Carvalho Chehab

[PATCH 21/54] doc-rst: mediactl: fix some wrong cross references

2016-07-08 Thread Mauro Carvalho Chehab
Those cross references should point to media control syscalls, and not to V4L ones. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/mediactl/media-func-close.rst | 2 +- Documentation/linux_tv/media/mediactl/media-func-ioctl.rst | 4 ++--

[PATCH] doc-rst: remove an invalid include from the docs

2016-07-08 Thread Mauro Carvalho Chehab
I suspect that this is a left over from Markus tests. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/dvb/audio_h.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/linux_tv/media/dvb/audio_h.rst

[PATCH 26/54] doc-rst: Rename the title of the Digital TV section

2016-07-08 Thread Mauro Carvalho Chehab
The Digital TV section is ackward for two reasons: 1) it is the only one with everything in upper case; 2) its name is associated with the European digital TV standard. Rename the part name, and add a notice that it refers to what's known as "DVB API". Signed-off-by: Mauro Carvalho Chehab

[PATCH 25/54] doc-rst: remote_controllers: fix conversion issues

2016-07-08 Thread Mauro Carvalho Chehab
Make it look like V4L, DVB and MC docbooks initial page. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/rc/remote_controllers.rst | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH 12/54] doc-rst: dev-overlay: fix the last warning

2016-07-08 Thread Mauro Carvalho Chehab
Fixes this warning: Documentation/linux_tv/media/v4l/dev-overlay.rst:247: WARNING: Title underline too short. struct v4l2_clip [4]_ Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/v4l/dev-overlay.rst | 2 +- 1 file changed, 1

[PATCH 30/54] doc-rst: auto-build the frontend.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This file is auto-generated with DocBook, from the uapi header. Do the same with Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/Makefile.sphinx| 1 + Documentation/linux_tv/Makefile | 12 +

[PATCH 24/54] doc-rst: gen-errors: Improve table layout

2016-07-08 Thread Mauro Carvalho Chehab
Add a :widths: at the flat-table, to make it to look nicer. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/gen-errors.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/linux_tv/media/gen-errors.rst

[PATCH 37/54] doc-rst: auto-generate dmx.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This file should be auto-generated from the header files, and not hardcoded. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/Makefile | 5 +- Documentation/linux_tv/dmx.h.rst| 162

[PATCH 27/54] doc-rst: v4l2: Rename the V4L2 API title

2016-07-08 Thread Mauro Carvalho Chehab
The V4L2 is the only part of the doc that has the word "Specification" and mentions its version on the title. Having the version there was important in the past, while we were getting rid of V4L version 1. But, as v1 is long gone, all it lasts is history (with is, btw, covered on the spec). So,

[PATCH 39/54] doc-rst: auto-generate ca.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/Makefile| 5 +- Documentation/linux_tv/ca.h.rst| 97

[PATCH 45/54] doc-rst: autogenerate videodev2.h.rst file

2016-07-08 Thread Mauro Carvalho Chehab
This file comes from the uAPI definitions for V4L2, with is dynamic and updated on almost every Kernel version. So, this file needs to be auto-updated, as otherwise the documentation will become obsolete too early. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 29/54] doc-rst: add parse-headers.pl script

2016-07-08 Thread Mauro Carvalho Chehab
This script parses a header file and converts it into a parsed-literal block, creating references for ioctls, defines, typedefs, enums and structs. It also allow an external file to modify the rules, in order to fix the expressions. Signed-off-by: Mauro Carvalho Chehab

[PATCH 38/54] doc-rst: auto-generate audio.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This is an auto-generated header. Remove the hardcoded one and do the right thing here. NOTE: this is a deprecated API. So, we won't make any effort to try identifying the meaning of this obscure API that is used only on a legacy driver. Signed-off-by: Mauro Carvalho Chehab

[PATCH 28/54] doc-rst: linux_tv/index: Rename the book name

2016-07-08 Thread Mauro Carvalho Chehab
There's no need for all caps at its name. As the book title is now showing at the top of each page, let's use Camel Case, to make it less bold. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/index.rst | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 14/54] doc-rst: fix intro_files/dvbstb.png image

2016-07-08 Thread Mauro Carvalho Chehab
The png image was not base64 decoded correctly. Fix it. Signed-off-by: Mauro Carvalho Chehab --- .../linux_tv/media/dvb/intro_files/dvbstb.png | Bin 22703 -> 22655 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git

[PATCH 40/54] doc-rst: auto-generate net.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/Makefile | 10 +++-- Documentation/linux_tv/net.h.rst| 59

[PATCH 18/54] doc-rst: media-controller: missing credits

2016-07-08 Thread Mauro Carvalho Chehab
When I wrote the MC next gen patches, I also improved the media controller documentation and added documentation for MEDIA_IOC_G_TOPOLOGY, but I forgot to add the credits on that time. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 11/54] doc-rst: dmabuf: Fix the cross-reference

2016-07-08 Thread Mauro Carvalho Chehab
Fixes this warning: Documentation/linux_tv/media/v4l/dmabuf.rst:150: WARNING: undefined label: vidioc_dqbuf (if the link has no caption the label must precede a section header) Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/v4l/dmabuf.rst |

[PATCH 17/54] doc-rst: media-controller: fix conversion issues

2016-07-08 Thread Mauro Carvalho Chehab
Make it look just like v4l and DVB parts. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/mediactl/media-controller.rst | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 16/54] doc-rst: intro: remove obsolete headers

2016-07-08 Thread Mauro Carvalho Chehab
The video, audio and OSD APIs are obsolete. V4L2 should be used instead. So, remove them from this intro item. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/dvb/intro.rst | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 47/54] doc-rst: linux_tv: Don't ignore pix formats

2016-07-08 Thread Mauro Carvalho Chehab
Now that the reference problems were solved, let's not ignore anymore the pix formats, as all of them are already documented. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/v4l/pixfmt-nv12.rst | 1 +

[PATCH 41/54] doc-rst: auto-generate video.h.rst

2016-07-08 Thread Mauro Carvalho Chehab
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/Makefile | 5 +- Documentation/linux_tv/video.h.rst| 280

[PATCH 46/54] doc-rst: fix some badly converted references

2016-07-08 Thread Mauro Carvalho Chehab
Several references were not converted right. That's why so many symbols were lost when parsing videodev2.h header. Fix them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/dvb/dmx_types.rst | 8 +- .../linux_tv/media/dvb/fe-bandwidth-t.rst

[PATCH 42/54] doc-rst: parse-headers: better handle comments at the source code

2016-07-08 Thread Mauro Carvalho Chehab
We should not let comments to mangle with the symbols parsing. Unfortunately, videodev2.h has lots of those in the middle of enums and structs. So, we need to improve our parser to discard them. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 32/54] doc-dst: parse-headers: highlight deprecated comments

2016-07-08 Thread Mauro Carvalho Chehab
When something is deprecated, highlight it, as we want it to be clearer to the reader. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parse-headers.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/sphinx/parse-headers.pl

[PATCH 33/54] doc-rst: fix parsing comments and '{' on a separate line

2016-07-08 Thread Mauro Carvalho Chehab
The dmx.h header has two things that causes the parser to break while handling enums: per-header enums and the '{' starts on a new line Both makes the parser to get lexical marks to be detected as if they were symbols. Fix it. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 44/54] doc-rst: parse-headers: don't do substituition references

2016-07-08 Thread Mauro Carvalho Chehab
Add one extra escape character to avoid those warnings: Documentation/linux_tv/videodev2.h.rst:6: WARNING: Inline substitution_reference start-string without end-string. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parse-headers.pl | 2 +- 1

[PATCH 43/54] doc-rst: parse-headers: add an option to ignore enum symbols

2016-07-08 Thread Mauro Carvalho Chehab
At videodev2.h, we have hundreds of symbols that don't currently have a reference yet. Let's ignore for how, while we don't improve those cross-refs. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/parse-headers.pl | 4 1 file changed, 4

[PATCH 15/54] doc-rst: dvb/intro: Better show the needed include blocks

2016-07-08 Thread Mauro Carvalho Chehab
The include blocks were not properly displayed. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/dvb/intro.rst | 18 -- 1 file changed, 18 deletions(-) diff --git a/Documentation/linux_tv/media/dvb/intro.rst

[PATCH 13/54] doc-rst: dvbapi: Fix conversion issues

2016-07-08 Thread Mauro Carvalho Chehab
The conversion of this file didn't happen too well. We want the items numbered, and format it just like what we did with part 1 of the document. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/media/dvb/dvbapi.rst | 25 - 1 file

[PATCH 06/54] doc-rst: remove Documentation/linux_tv/conf.py file

2016-07-08 Thread Mauro Carvalho Chehab
This file is actually not used to build the media uAPI docbook. So, remove it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/conf.py | 221 - 1 file changed, 221 deletions(-) delete mode 100644

[PATCH 54/54] doc-rst: linux_tv/Makefile: Honor quiet make O=dir

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser To honor the: make O=dir [targets] Locate all output files in "dir" * activate kernel-include directive * export BUILDDIR=$(BUILDDIR) * linux_tv: replace '.. include::' with '.. kernel-include:: $BUILDDIR/' Signed-off-by: Markus Heiser

[PATCH 53/54] doc-rst: add kernel-include directive

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser The kernel-include directive is needed to include the auto generated rst content from a build (pre-) process. E.g. the linux_tv Makefile generates intermediate reST-files from header files. Since there is a O= option: make O=dir [targets] Locate

[PATCH 49/54] doc-rst: document enum symbols

2016-07-08 Thread Mauro Carvalho Chehab
After checking that all enum fields are documented at the corresponding table on the rst file, let's point to the table, instead of ignore the symbols. A few symbols are not meant to be documented, as they're deprecated stuff. keep ignoring them. One enum field is not documented. Either it is

[PATCH 48/54] doc-rst: videodev2.h: don't ignore V4L2_STD macros

2016-07-08 Thread Mauro Carvalho Chehab
The content of those macros are all declared at the v4l2-std-id table. So, point to it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/videodev2.h.rst.exceptions | 94 --- 1 file changed, 48 insertions(+), 46 deletions(-) diff

[PATCH 52/54] doc-rst: auto-generate: fixed include "output/*.h.rst" content

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser Include auto-generate reST header files. BTW fixed linux_tv/Makefile. Signed-off-by: Markus Heiser Signed-off-by: Mauro Carvalho Chehab --- Documentation/linux_tv/Makefile | 7

[PATCH 04/54] doc-rst: linux_tv: dvb: put return value at the end

2016-07-08 Thread Mauro Carvalho Chehab
On some syscall descriptions, the tables are described after the return value. Do that inside descriptions. Signed-off-by: Mauro Carvalho Chehab --- .../linux_tv/media/dvb/audio-set-attributes.rst | 2 -- Documentation/linux_tv/media/dvb/audio-set-ext-id.rst |

[PATCH 08/54] doc-rst: customize RTD theme, captions & inline literal

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser The layout of (table) captions in the RTD theme is a bit ugly and the bordered, red colored of inline literals is a bit to gaudy. The requirements has been discussed in the ML [1]. captions: - captions should have 100% (not 85%) font size -

[PATCH 03/54] doc-rst: linux_tv: dvb: use lowercase for filenames

2016-07-08 Thread Mauro Carvalho Chehab
There are some ioctls in upper case. This is not the standard. Put them on lowercase, to match what's done with other ioctls. Signed-off-by: Mauro Carvalho Chehab --- ...LEGACY_CMD.rst => fe-dishnetwork-send-legacy-cmd.rst} | 0 .../media/dvb/{FE_GET_EVENT.rst =>

[PATCH 07/54] doc-rst: customize RTD theme, table & full width

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser The default table layout of the RTD theme does not fit for vast tables, like the ones we have in the linux_tv project. This has been discussed on the ML [1]. The RTD theme is a two column layout, with a navigation column on the left and a content

[PATCH 00/54] Second series of ReST convert patches for media

2016-07-08 Thread Mauro Carvalho Chehab
That's the second series of patches related to DocBook to ReST conversion. With this patch series, we're ready to merge it upstream. There are still one thing to do: there are some new updates at the DocBook pages on two topic branches (cec and vsp1). Those changes should also be converted, in

[PATCH 05/54] doc-rst: boilerplate HTML theme customization

2016-07-08 Thread Mauro Carvalho Chehab
From: Markus Heiser Implements the minimal boilerplate for Sphinx HTML theme customization. Signed-off-by: Markus Heiser Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py |

[PATCH] media: usbtv: prevent access to free'd resources

2016-07-08 Thread Matthew Leach
When disconnecting the usbtv device, the sound card is unregistered from ALSA and the snd member of the usbtv struct is set to NULL. If the usbtv snd_trigger work is running, this can cause a race condition where the kernel will attempt to access free'd resources, shown in [1]. This patch fixes

Re: [PATCH v3 0/9] Add MT8173 Video Decoder Driver

2016-07-08 Thread Hans Verkuil
On 07/07/2016 12:16 PM, tiffany lin wrote: > Hi Hans, > > > On Wed, 2016-07-06 at 15:19 +0200, Hans Verkuil wrote: >> Hi Tiffany, >> >> I plan to review this patch series on Friday, but one obvious question is >> what the reason for these failures is: >> >>> Input/Output configuration ioctls:

[PATCH v7 08/11] Input: atmel_mxt_ts - add diagnostic data support for mXT1386

2016-07-08 Thread Nick Dyer
The mXT1386 family of chips have a different architecture which splits the diagnostic data into 3 columns. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff

[PATCH v7 10/11] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-08 Thread Nick Dyer
Function 54 implements access to various RMI4 diagnostic features. This patch adds support for retrieving this data. It registers a V4L2 device to output the data to user space. Signed-off-by: Nick Dyer Tested-by: Andrew Duggan Tested-by: Chris Healy

[PATCH v7 06/11] Input: atmel_mxt_ts - read touchscreen size

2016-07-08 Thread Nick Dyer
The touchscreen may have a margin where not all the matrix is used. Read the parameters from T9 and T100 and take account of the difference. Note: this does not read the XORIGIN/YORIGIN fields so it assumes that the touchscreen starts at (0,0) Signed-off-by: Nick Dyer ---

[PATCH v7 03/11] DocBook: add support for touch devices

2016-07-08 Thread Nick Dyer
Signed-off-by: Nick Dyer --- Documentation/DocBook/media/v4l/dev-touch.xml | 51 Documentation/DocBook/media/v4l/media-types.xml|5 ++ .../DocBook/media/v4l/pixfmt-tch-td08.xml | 66

[PATCH v7 07/11] Input: atmel_mxt_ts - handle diagnostic data orientation

2016-07-08 Thread Nick Dyer
Invert the diagnostic data to match the orientation of the input device. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git

[PATCH v7 05/11] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device

2016-07-08 Thread Nick Dyer
Register a video device to output T37 diagnostic data. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig|6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 244 ++ 2 files changed, 248 insertions(+), 2 deletions(-) diff

[PATCH v7 0/11] Output raw touch data via V4L2

2016-07-08 Thread Nick Dyer
This is a series of patches to add output of raw touch diagnostic data via V4L2 to the Atmel maXTouch and Synaptics RMI4 drivers. It's a rewrite of the previous implementation which output via debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. We have a utility which can

[PATCH v7 04/11] Input: atmel_mxt_ts - add support for T37 diagnostic data

2016-07-08 Thread Nick Dyer
Atmel maXTouch devices have a T37 object which can be used to read raw touch deltas from the device. This consists of an array of 16-bit integers, one for each node on the touchscreen matrix. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/Kconfig|6 ++

[PATCH v7 11/11] Input: sur40 - use new V4L2 touch input type

2016-07-08 Thread Nick Dyer
Support both V4L2_TCH_FMT_TU08 and V4L2_PIX_FMT_GREY for backwards compatibility. Note: I have not tested these changes (I have no access to the hardware) so not signing off. --- drivers/input/touchscreen/sur40.c | 123 +++-- 1 file changed, 89 insertions(+), 34

[PATCH] v4l2-compliance: Changes to support touch sensors

2016-07-08 Thread Nick Dyer
Signed-off-by: Nick Dyer --- utils/v4l2-compliance/v4l2-compliance.cpp| 51 +- utils/v4l2-compliance/v4l2-compliance.h |1 + utils/v4l2-compliance/v4l2-test-input-output.cpp |4 +- 3 files changed, 53 insertions(+), 3

[PATCH v7 01/11] Input: atmel_mxt_ts - update MAINTAINERS email address

2016-07-08 Thread Nick Dyer
I'm leaving ITDev, so change to my personal email. My understanding is that someone at Atmel will take this on once their takeover by Microchip has settled down. Signed-off-by: Nick Dyer --- MAINTAINERS |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v7 09/11] Input: atmel_mxt_ts - add support for reference data

2016-07-08 Thread Nick Dyer
There are different datatypes available from a maXTouch chip. Add support to retrieve reference data as well. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 57 ++ 1 file changed, 51 insertions(+), 6 deletions(-) diff

[PATCH v7 02/11] v4l2-core: Add support for touch devices

2016-07-08 Thread Nick Dyer
Some touch controllers send out touch data in a similar way to a greyscale frame grabber. Add new device type VFL_TYPE_TOUCH: - This uses a new device prefix v4l-touch for these devices, to stop generic capture software from treating them as webcams. Otherwise, touch is treated similarly to

Re: [PATCH v3 5/9] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver

2016-07-08 Thread Hans Verkuil
On 05/30/2016 02:29 PM, Tiffany Lin wrote: > Add v4l2 layer decoder driver for MT8173 > > Signed-off-by: Tiffany Lin > --- > drivers/media/platform/mtk-vcodec/Makefile | 10 +- > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 1348 >

Re: [PATCH 07/11] media: adv7180: change mbus format to UYVY

2016-07-08 Thread Niklas Söderlund
On 2016-07-07 17:18:25 +0200, Lars-Peter Clausen wrote: > On 07/07/2016 01:00 AM, Steve Longerbeam wrote: > > Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors > > now look correct when capturing with the i.mx6 backend. The other > > option is to set the SWPC bit in register 0x27 to

[PATCH] [media] rcar-vin: add legacy mode for wrong media bus formats

2016-07-08 Thread Niklas Söderlund
A recent bugfix to adv7180 brought to light that the rcar-vin driver are looking for the wrong media bus format. It was looking for a YUVU format but then expecting UYVY data. The bugfix for adv7180 will break the usage of rcar-vin together with a adv7180 as found on Renesas R-Car2 Koelsch boards

Re: [PATCH v3 3/9] DocBook/v4l: Add compressed video formats used on MT8173 codec driver

2016-07-08 Thread Hans Verkuil
On 05/30/2016 02:29 PM, Tiffany Lin wrote: > Add V4L2_PIX_FMT_MT21 documentation > > Signed-off-by: Tiffany Lin > --- > Documentation/DocBook/media/v4l/pixfmt.xml |6 ++ > 1 file changed, 6 insertions(+) > > diff --git

  1   2   >