Re: [PATCH v3] Add tw5864 driver

2016-07-10 Thread Hans Verkuil
Hi Andrey, Thanks for this driver. Some review comments below: On 07/09/2016 09:46 PM, Andrey Utkin wrote: > From: Andrey Utkin > > > Changes in v3 since v2: > - Kconfig: select VIDEOBUF2_DMA_CONTIG, not SG > - drop i2c code as unused > - Dropped

[GIT PULL FOR v4.8] Various fixes

2016-07-10 Thread Hans Verkuil
The following changes since commit a4d020e97d8e65d57061677c15c89e99609d0b37: [media] Convert Wideview WT220 DVB USB driver to rc-core (2016-07-09 12:10:33 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.8i for you to fetch changes up to

Re: [PATCH] vcodec: mediatek: Add g/s_selection support for V4L2 Encoder

2016-07-10 Thread Hans Verkuil
Hi Tiffany, My apologies for the delay, but here is my review at last: On 05/30/2016 09:52 AM, Tiffany Lin wrote: > This patch add g/s_selection support for MT8173 > > Signed-off-by: Tiffany Lin > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 74 >

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

2016-07-10 Thread Hans Verkuil
On 07/11/2016 05:48 AM, tiffany lin wrote: > > reviewed-by: Tiffany Lin > > > May I know why and how we use struct device *alloc_devs[] in queue_setup > callback function? That's only needed if the hardware has to allocate each plane buffer from a different memory

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

2016-07-10 Thread tiffany lin
Hi Hans, On Fri, 2016-07-08 at 13:44 +0200, Hans Verkuil wrote: > 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 > >>

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

2016-07-10 Thread tiffany lin
reviewed-by: Tiffany Lin May I know why and how we use struct device *alloc_devs[] in queue_setup callback function? best regards, Tiffany On Fri, 2016-07-08 at 21:11 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > The patch dropping

af9033: fix compiler warnings

2016-07-10 Thread Hans Verkuil
Fix two warnings: af9033.c: In function 'af9033_read_status': af9033.c:883:25: warning: 'snr_lut' may be used uninitialized in this function [-Wmaybe-uninitialized] const struct val_snr *snr_lut; ^ af9033.c:952:25: warning: 'tmp' may be used uninitialized in this

cron job: media_tree daily build: WARNINGS

2016-07-10 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: Mon Jul 11 04:00:30 CEST 2016 git branch: test git hash: a4d020e97d8e65d57061677c15c89e99609d0b37 gcc

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

2016-07-10 Thread tiffany lin
On Fri, 2016-07-08 at 21:11 +0200, Hans Verkuil wrote: > 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

Re: [PATCH 1/2] mtk-vcodec: fix two compiler warnings

2016-07-10 Thread tiffany lin
On Sat, 2016-07-09 at 09:32 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > mtk-vcodec/mtk_vcodec_enc.c: In function 'mtk_venc_worker': > mtk-vcodec/mtk_vcodec_enc.c:1030:43: warning: format '%lx' expects argument > of type 'long unsigned int', but argument 7 has

Re: [PATCH 2/2] mtk-vcodec: fix compiler warning

2016-07-10 Thread tiffany lin
On Sat, 2016-07-09 at 09:32 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > mtk-vcodec/venc_vpu_if.c:40:30: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] > struct venc_vpu_inst *vpu = (struct venc_vpu_inst *)msg->venc_inst; >

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

2016-07-10 Thread tiffany lin
Hi Hans, On Fri, 2016-07-08 at 12:23 +0200, Hans Verkuil wrote: > 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

Re: [PATCH v2 2/9] [media] : v4l: add Mediatek compressed video block format

2016-07-10 Thread tiffany lin
Hi Hans, On Fri, 2016-07-08 at 12:18 +0200, Hans Verkuil wrote: > On 05/12/2016 01:24 PM, Tiffany Lin wrote: > > Add V4L2_PIX_FMT_MT21 format used on MT8173 driver. > > It is compressed format and need MT8173 MDP driver to transfer to other > > standard format. > > > > Signed-off-by: Tiffany

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-10 Thread Steve Longerbeam
On 07/10/2016 07:30 AM, Hans Verkuil wrote: On 07/10/2016 04:17 PM, Ian Arkver wrote: On 10/07/16 13:55, Hans Verkuil wrote: On 07/10/2016 02:10 PM, Lars-Peter Clausen wrote: On 07/09/2016 11:36 PM, Steve Longerbeam wrote: On 07/09/2016 02:10 PM, Steve Longerbeam wrote: On 07/09/2016

[PATCH 3/5] [media] redrat3: fix timeout handling

2016-07-10 Thread Sean Young
The redrat3 sends an usb packet to the host either when the minimum pause or the timeout occurs, so we can always add a trailing space in our processing. Signed-off-by: Sean Young --- drivers/media/rc/redrat3.c | 48 +++--- 1 file changed,

[PATCH 4/5] [media] redrat3: make hardware timeout configurable

2016-07-10 Thread Sean Young
Signed-off-by: Sean Young --- drivers/media/rc/ir-lirc-codec.c | 5 - drivers/media/rc/redrat3.c | 34 ++ include/media/rc-core.h | 3 +++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git

[PATCH 5/5] [media] redrat3: add sysfs attributes for hardware specific options

2016-07-10 Thread Sean Young
Signed-off-by: Sean Young --- Documentation/ABI/testing/sysfs-class-rc-redrat3 | 33 drivers/media/rc/redrat3.c | 200 +++ 2 files changed, 233 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-rc-redrat3 diff

[PATCH] [V4L-UTILS] ir-ctl: add new tool for sending & receiving raw IR

2016-07-10 Thread Sean Young
Currently v4l-utils has no tooling provided for receiving and sending raw IR using the lirc interface. Some of this can be done using various tools from the user-space lirc package, but not everything is covered. We want to be able to do the following: - List all the features that a lirc device

[PATCH 2/5] [media] rc: make s_tx_carrier consistent

2016-07-10 Thread Sean Young
LIRC_SET_SEND_CARRIER should return 0 on success or -errno. Signed-off-by: Sean Young --- Documentation/DocBook/media/v4l/lirc_device_interface.xml | 2 +- drivers/media/rc/ene_ir.c | 2 +- drivers/media/rc/iguanair.c

[PATCH 1/5] [media] rc: make s_tx_mask consistent

2016-07-10 Thread Sean Young
When s_tx_mask is given an invalid bitmask, the number of transmitters should be returned. See the LIRC_SET_TRANSMITTER_MASK lirc ioctl documentation. Signed-off-by: Sean Young --- drivers/media/rc/mceusb.c | 6 ++ drivers/media/rc/winbond-cir.c | 4 2 files

Re: [PATCH 28/54] MAINTAINERS: Add file patterns for media device tree bindings

2016-07-10 Thread Mauro Carvalho Chehab
Em Sun, 22 May 2016 11:06:05 +0200 Geert Uytterhoeven escreveu: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. I'm assuming that this patch will go via DT git tree, so: > > Signed-off-by: Geert

[PATCH 1/3] [media] doc-rst: improve documentation for DTV_FREQUENCY

2016-07-10 Thread Mauro Carvalho Chehab
Make the note better formatted and documented. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/dvb/fe_property_parameters.rst | 26 +- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git

[PATCH 3/3] [media] doc-rst: improve display of notes and warnings

2016-07-10 Thread Mauro Carvalho Chehab
There are several notes and warning mesages in the middle of the media docbook. Use the ReST tags for that, as it makes them visually better and hightlights them. While here, modify a few ones to make them clearer. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 2/3] [media] doc-rst: improve DTV_BANDWIDTH_HZ notes

2016-07-10 Thread Mauro Carvalho Chehab
There are several notes for this DTV property. Some are outdated, so take some care of it, making it updated. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/dvb/fe_property_parameters.rst | 28 +- 1 file changed, 17 insertions(+), 11

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-10 Thread Hans Verkuil
On 07/10/2016 04:17 PM, Ian Arkver wrote: > On 10/07/16 13:55, Hans Verkuil wrote: >> On 07/10/2016 02:10 PM, Lars-Peter Clausen wrote: >>> On 07/09/2016 11:36 PM, Steve Longerbeam wrote: On 07/09/2016 02:10 PM, Steve Longerbeam wrote: > > On 07/09/2016 11:59 AM, Steve Longerbeam

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-10 Thread Ian Arkver
On 10/07/16 13:55, Hans Verkuil wrote: On 07/10/2016 02:10 PM, Lars-Peter Clausen wrote: On 07/09/2016 11:36 PM, Steve Longerbeam wrote: On 07/09/2016 02:10 PM, Steve Longerbeam wrote: On 07/09/2016 11:59 AM, Steve Longerbeam wrote: On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: On

Re: [PATCH 2/5] serio.h: add new define for the Pulse-Eight USB-CEC Adapter

2016-07-10 Thread Hans Verkuil
Added linux-input to the Cc list. Dmitry, it probably makes the most sense if this goes through the media tree with your Ack, unless you know there will be a conflict. Regards, Hans On 07/10/2016 03:11 PM, Hans Verkuil wrote: > From: Hans Verkuil > > This is

[PATCH 2/5] serio.h: add new define for the Pulse-Eight USB-CEC Adapter

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil This is for the new pulse8-cec staging driver. Signed-off-by: Hans Verkuil Cc: Dmitry Torokhov --- include/uapi/linux/serio.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 4/5] MAINTAINERS: add entry for the pulse8-cec driver

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil Add entry for the pulse8-cec driver. Signed-off-by: Hans Verkuil --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a975b8e..7486757 100644 --- a/MAINTAINERS +++

[PATCH 5/5] pulse8-cec: add TODO file

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil Explain what needs to be done to move this driver out of staging. Signed-off-by: Hans Verkuil --- drivers/staging/media/pulse8-cec/TODO | 35 +++ 1 file changed, 35 insertions(+) create mode

[PATCH 1/5] cec: add check if adapter is unregistered.

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil CEC USB dongles can be unplugged at any time, and at that point they will be unregistered. Make sure that any attempt afterwards to set the physical or logical addresses will be ignored. Signed-off-by: Hans Verkuil ---

[PATCH 0/5] Pulse-Eight USB CEC driver

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil This adds support for the Pulse-Eight USB CEC dongle. It has been tested with both v4 and v5 firmware. It is still in staging because 1) the CEC framework it depends on is still in staging, 2) the code needs to be refactored a bit and 3) it needs more

[PATCH 3/5] pulse8-cec: new driver for the Pulse-Eight USB-CEC Adapter

2016-07-10 Thread Hans Verkuil
From: Hans Verkuil This supports the Pulse-Eight USB-CEC Adapter. It has been tested with firmware versions 4 and 5, but it should hopefully work fine with older firmwares as well. Signed-off-by: Hans Verkuil --- drivers/staging/media/Kconfig

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-10 Thread Hans Verkuil
On 07/10/2016 02:10 PM, Lars-Peter Clausen wrote: > On 07/09/2016 11:36 PM, Steve Longerbeam wrote: >> >> >> On 07/09/2016 02:10 PM, Steve Longerbeam wrote: >>> >>> >>> On 07/09/2016 11:59 AM, Steve Longerbeam wrote: On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: > On

[PATCH v2] [media] doc-rst: Don't use captions for examples

2016-07-10 Thread Mauro Carvalho Chehab
Unfortunately, captions are new on Sphinx for c blocks: it was added only on version 1.3. Also, it were already bad enough not being able to auto-numerate them. So, let's give up and use, instead, titles before the examples. Not much is lost, and, as a side track, we don't need to numerate them

Re: [PATCH 06/11] media: adv7180: add bt.656-4 OF property

2016-07-10 Thread Lars-Peter Clausen
On 07/09/2016 11:36 PM, Steve Longerbeam wrote: > > > On 07/09/2016 02:10 PM, Steve Longerbeam wrote: >> >> >> On 07/09/2016 11:59 AM, Steve Longerbeam wrote: >>> >>> >>> On 07/07/2016 07:52 AM, Lars-Peter Clausen wrote: On 07/07/2016 12:59 AM, Steve Longerbeam wrote: > Add a device

[PATCH] [media] doc-rst: Don't use captions for examples

2016-07-10 Thread Mauro Carvalho Chehab
Unfortunately, captions are new on Sphinx for c blocks: it was added only on version 1.3. Also, it were already bad enough not being able to auto-numerate them. So, let's give up and use, instead, titles before the examples. Not much is lost, and, as a side track, we don't need to numerate them

[PATCH 4/6] [media] doc-rst: improve LIRC syscall documentation

2016-07-10 Thread Mauro Carvalho Chehab
The lirc syscall documentation uses a very different and simplified way than the rest of the media book. make it closer. Still, there's just one page for all ioctls. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/rc/lirc_ioctl.rst | 187

[PATCH 5/6] [media] doc-rst: add LIRC header to the book

2016-07-10 Thread Mauro Carvalho Chehab
Just like the other parts of the document, let's add the LIRC header, as it is part of the API. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/Makefile | 5 - Documentation/media/lirc.h.rst.exceptions | 2 ++

[PATCH 1/6] [media] doc-rst: Group function references together for MC

2016-07-10 Thread Mauro Carvalho Chehab
Just like the other parts of the media book, group the MC functions together on one chapter. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/mediactl/media-controller.rst | 20 +--- Documentation/media/uapi/mediactl/media-funcs.rst|

[PATCH 3/6] [media] doc-rst: rename some RC files

2016-07-10 Thread Mauro Carvalho Chehab
Some files start with an upper letter. Also, they have big names. rename them. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- .../media/uapi/rc/{Remote_controllers_Intro.rst => rc-intro.rst} | 0 .../rc/{remote_controllers_sysfs_nodes.rst =>

[PATCH 2/6] [media] doc-rst: remove an extra label on V4L2 and CEC parts

2016-07-10 Thread Mauro Carvalho Chehab
There's no need to say: Table of Contents there. Also, this generates a duplicated caption xref. So, remove, to use the same format on every part. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/cec/cec-api.rst | 1 -

[PATCH 6/6] [media] doc-rst: do cross-references between header and the doc

2016-07-10 Thread Mauro Carvalho Chehab
Now that the LIRC header was added, we can cross-reference it and identify the documentation gaps. There are lots of stuff missing there, but at least now we can avoid the gap to increase. Signed-off-by: Mauro Carvalho Chehab ---