[v4l-utils PATCH 1/1] dvbv5-zap.c: fix setting signal handlers

2015-12-18 Thread Jemma Denson
Signal handlers are currently out of order - SIGALRM is always set, and SIGINT only set when timeout is set. These should be the other way round. Signed-off-by: Jemma Denson --- utils/dvb/dvbv5-zap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mauro Carvalho Chehab
Em Thu, 17 Dec 2015 17:48:57 +0100 Mason escreveu: > On 17/12/2015 17:09, Mauro Carvalho Chehab wrote: > > Em Thu, 17 Dec 2015 16:32:54 +0100 > > Mason escreveu: > > > >> I wanted to fix the NEED_WRITEL_RELAXED warning, but I don't know Perl. > >> > >>

[PATCH 1/3] Documentation: devicetree: add STI HVA binding

2015-12-18 Thread Yannick Fertre
This patch documents DT compatible string "st,st-hva". Signed-off-by: Yannick Fertre --- .../devicetree/bindings/media/st,sti-hva.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644

[PATCH 0/3] support of v4l2 encoder for STMicroelectronics SOC.

2015-12-18 Thread Yannick Fertre
version 1: - Initial submission. Only one feature supported and tested: - encode (RGB32, RGB24, RGB16, NV12, NV21, UYVY, VYUY) to h264 video format The driver is mainly implemented across three files: - hva-v4l2.c - hva-h264.c - hva-hw.c hva-v4l2.c manages the V4L2 interface with the

[PATCH 2/3] [media] hva: STiH41x multi-format video encoder V4L2 driver

2015-12-18 Thread Yannick Fertre
This patch adds HVA (Hardware Video Accelerator) support for STI platform. Signed-off-by: Yannick Fertre --- drivers/media/platform/Kconfig| 13 + drivers/media/platform/Makefile |1 + drivers/media/platform/sti/hva/Makefile |2 +

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 17/12/2015 18:03, Mason wrote: > The media_build process prints: > > "Preparing to compile for kernel version 3.4.3913" > > In fact, the custom kernel's Makefile contains: > > VERSION = 3 > PATCHLEVEL = 4 > SUBLEVEL = 39 > EXTRAVERSION = 13 > NAME = Saber-toothed Squirrel > > Is it

[PATCH 3/3] [media] hva: add h264 support

2015-12-18 Thread Yannick Fertre
Signed-off-by: Yannick Fertre --- drivers/media/platform/sti/hva/Makefile |2 +- drivers/media/platform/sti/hva/hva-h264.c | 1225 + drivers/media/platform/sti/hva/hva-v4l2.c | 126 +++ 3 files changed, 1352 insertions(+), 1 deletion(-)

Re: Preliminary HDCP code available in my tree

2015-12-18 Thread Hans Verkuil
On 12/18/2015 10:59 AM, Jean-Michel Hautbois wrote: > Hi Hans, > > > 2015-12-18 9:04 GMT+01:00 Hans Verkuil >: > > Hi all, > > Two years ago Cisco did some work on HDCP support for HDMI receivers and > transmitters, > but for one

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 11:37, Mauro Carvalho Chehab wrote: > Em Thu, 17 Dec 2015 17:48:57 +0100 > Mason escreveu: > >> On 17/12/2015 17:09, Mauro Carvalho Chehab wrote: >>> Em Thu, 17 Dec 2015 16:32:54 +0100 >>> Mason escreveu: >>> I wanted to fix the

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mauro Carvalho Chehab
Em Fri, 18 Dec 2015 11:44:35 +0100 Mason escreveu: > On 17/12/2015 18:03, Mason wrote: > > > The media_build process prints: > > > > "Preparing to compile for kernel version 3.4.3913" > > > > In fact, the custom kernel's Makefile contains: > > > > VERSION = 3 > >

Re: [PATCH/RFC 26/48] videodev2.h: Add request field to v4l2_pix_format_mplane

2015-12-18 Thread Hans Verkuil
Hi Laurent, On 12/17/2015 09:40 AM, Laurent Pinchart wrote: > Let userspace specify a request ID when getting or setting formats. The > support is limited to the multi-planar API at the moment, extending it > to the single-planar API is possible if needed. > > From a userspace point of view the

Preliminary HDCP code available in my tree

2015-12-18 Thread Hans Verkuil
Hi all, Two years ago Cisco did some work on HDCP support for HDMI receivers and transmitters, but for one reason or another that work was never put into actual use. Rather than letting that work go unnoticed I decided to put it up in my git tree:

Re: [PATCH/RFC 27/48] v4l2-subdev.h: Add request field to format and selection structures

2015-12-18 Thread Hans Verkuil
On 12/17/2015 09:40 AM, Laurent Pinchart wrote: > Let userspace specify a request ID when getting or setting formats or > selection rectangles. > > From a userspace point of view the API change is minimized and doesn't > require any new ioctl. > > Signed-off-by: Laurent Pinchart

Re: [PATCH 2/3] [media] hva: STiH41x multi-format video encoder V4L2 driver

2015-12-18 Thread kbuild test robot
Hi Yannick, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.4-rc5 next-20151217] url: https://github.com/0day-ci/linux/commits/Yannick-Fertre/Documentation-devicetree-add-STI-HVA-binding/20151218-184834 base: git://linuxtv.org/media_tree.git master config

sn9c20x: incorrect support for 0c45:6270 MT9V011/MT9V111 ?

2015-12-18 Thread TJ
I've been trying to get the 0c45:6270 Vehoh VMS-001 'Discovery' Microscope to work correctly and discovered what seem to be differences in the bridge_init and other control commands. The most obvious difference currently is the LEDs do not turn on, but there seem to be other problems with

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 12:22, Mauro Carvalho Chehab wrote: > Patch applied. Great! Thanks. Using the latest media_build master + my writel_relaxed work-around, compilation proceeds much further, then dies on device tree stuff: (same error with vanilla and custom kernel) Will look into it. Any idea? :-(

Re: problem with coda when running qt-gstreamer and video reaches its end (resending in plain text)

2015-12-18 Thread Piotr Lewicki
Thank you, I updated GStreamer to version 1.6.1 and applied patches from Nicolas (https://bugzilla.gnome.org/show_bug.cgi?id=733864). This resolved the issue witch "CODA PIC_RUN timeout". At the moment situation looks a little bit different: 1. Playing flv videos (video codec: Sorenson Spark

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mauro Carvalho Chehab
Em Fri, 18 Dec 2015 09:03:45 -0200 Mauro Carvalho Chehab escreveu: > Em Fri, 18 Dec 2015 11:44:35 +0100 > Mason escreveu: > > > On 17/12/2015 18:03, Mason wrote: > > > > > The media_build process prints: > > > > > > "Preparing to compile for kernel

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 13:10, Mason wrote: > On 18/12/2015 12:22, Mauro Carvalho Chehab wrote: > >> Patch applied. > > Great! Thanks. > > Using the latest media_build master + my writel_relaxed work-around, > compilation proceeds much further, then dies on device tree stuff: > (same error with vanilla

[PATCH 5/5] staging: media: lirc: use new parport device model

2015-12-18 Thread Sudip Mukherjee
Modify lirc_parallel driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee --- drivers/staging/media/lirc/lirc_parallel.c | 100 +++-- 1 file changed, 65 insertions(+), 35 deletions(-) diff --git

[PATCH 4/5] staging: media: lirc: place operator on previous line

2015-12-18 Thread Sudip Mukherjee
checkpatch complains about the logical operator, which should be on the previous line. Signed-off-by: Sudip Mukherjee --- drivers/staging/media/lirc/lirc_parallel.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 3/5] staging: media: lirc: space around operator

2015-12-18 Thread Sudip Mukherjee
checkpatch complains about missing space around operators. Signed-off-by: Sudip Mukherjee --- drivers/staging/media/lirc/lirc_parallel.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH 2/5] staging: media: lirc: no space after cast

2015-12-18 Thread Sudip Mukherjee
checkpatch complains about space after type cast. Signed-off-by: Sudip Mukherjee --- drivers/staging/media/lirc/lirc_parallel.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_parallel.c

[PATCH 1/5] staging: media: lirc: replace NULL comparisons with !var

2015-12-18 Thread Sudip Mukherjee
A NULL comparison can be written as if (var) or if (!var). Reported by checkpatch. Signed-off-by: Sudip Mukherjee --- drivers/staging/media/lirc/lirc_parallel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 14:40, Mason wrote: > I will try building a kernel with CONFIG_OF=n Build works much better with CONFIG_OF=n I suppose OF support with ancient kernels is untested. (My setup didn't need it anyway.) The remaining issue is: WARNING: "nsecs_to_jiffies"

[PATCH] [media] videobuf2: avoid memory leak on errors

2015-12-18 Thread Mauro Carvalho Chehab
As reported by smatch: drivers/media/v4l2-core/videobuf2-core.c:2415 __vb2_init_fileio() warn: possible memory leak of 'fileio' While here, avoid the usage of sizeof(struct foo_struct). Signed-off-by: Mauro Carvalho Chehab ---

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 13:59, Mason wrote: [snip previous work-arounds] Compilation completes. make -C /tmp/sandbox/custom-linux-3.4 SUBDIRS=/tmp/sandbox/media_build/v4l modules make[2]: Entering directory `/tmp/sandbox/custom-linux-3.4' Building modules, stage 2. MODPOST 209 modules WARNING:

Review & Reply

2015-12-18 Thread J.Tynan
Greetings, My name is Mr.Michael J. Tynan, I am a banker with Bank Of America. It is true that we have not meet each other in person, but I strongly believe in trust and friendship in every business. I have a Lebanese deceased customer's abandoned fund, which I am his personal financial adviser

[v4l-utils PATCH-v2 1/4] dvbv5-zap.c: fix setting signal handlers

2015-12-18 Thread Jemma Denson
Signal handlers are currently out of order - SIGALRM is always set, and SIGINT only set when timeout is set. These should be the other way round. Signed-off-by: Jemma Denson --- utils/dvb/dvbv5-zap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[v4l-utils PATCH-v2 2/4] dvbv5-zap.c: allow timeout with -x

2015-12-18 Thread Jemma Denson
Timeout handlers aren't set when running with -x (exit after tuning). This patch adds handlers so -t can be used with -x. Without a timeout dvbv5-zap will run forever if there's no signal, preventing it's use by scripts to obtain signal stats. Signed-off-by: Jemma Denson ---

[v4l-utils PATCH-v2 4/4] dvbv5-zap.c: Move common signals code into function

2015-12-18 Thread Jemma Denson
Code repeated 3 times; move to common function. Signed-off-by: Jemma Denson --- utils/dvb/dvbv5-zap.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index 2d71307..ef17be9

Patches to dvbv5-zap

2015-12-18 Thread Jemma Denson
This patch series replaces the single patch sent earlier today. Essentially it's to allow -t to be used at the same time as -x. We have a requirement to show signal stats in a web interface and a lack of timeout would cause issues when there's no signal. The other patches are fixing bugs I

[v4l-utils PATCH-v2 3/4] dvbv5-zap.c: fix wrong signal

2015-12-18 Thread Jemma Denson
Signal here should be SIGALRM and not SIGINT in order to call do_timeout(). Signed-off-by: Jemma Denson --- utils/dvb/dvbv5-zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index 2d19d45..2d71307 100644

[PATCH] [media] dvbdev: avoid unused functions

2015-12-18 Thread Arnd Bergmann
The dvb_create_tsout_entity and dvb_create_media_entity functions are only called if CONFIG_MEDIA_CONTROLLER_DVB is enabled, otherwise we get a compiler warning: dvb-core/dvbdev.c:219:12: warning: 'dvb_create_tsout_entity' defined but not used [-Wunused-function] dvb-core/dvbdev.c:264:12:

[PATCH] [media] cx23885-dvb: move initialization of a8293_pdata

2015-12-18 Thread Mauro Carvalho Chehab
Smatch complains about where the au8293_data is placed: drivers/media/pci/cx23885/cx23885-dvb.c:2174 dvb_register() info: 'a8293_pdata' is not actually initialized (unreached code). It is not actually expected to have such initialization at switch { foo = bar; case: ... } Not

Re: [PATCH/RFC 26/48] videodev2.h: Add request field to v4l2_pix_format_mplane

2015-12-18 Thread Laurent Pinchart
Hi Hans, Thank you for the review. On Friday 18 December 2015 12:18:26 Hans Verkuil wrote: > On 12/17/2015 09:40 AM, Laurent Pinchart wrote: > > Let userspace specify a request ID when getting or setting formats. The > > support is limited to the multi-planar API at the moment, extending it > >

[GIT PULL] mem2mem changes

2015-12-18 Thread Kamil Debski
The following changes since commit ecc2fe20e63a21b7db23065ff061b66fbc08e08b: [media] cx23885: video instead of vbi register used (2015-12-18 13:37:12 -0200) are available in the git repository at: git://linuxtv.org/kdebski/media_tree_2.git for-4.5 for you to fetch changes up to

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 17/12/2015 15:55, Mauro Carvalho Chehab wrote: > Did the driver compile fine? Once all the modules finish building, I have many *.ko files in v4l. I copy them to my target's /lib/modules/3.4.39.13/kernel and run depmod -a It seems modprobe rc-dvbsky doesn't bring in all the stuff needed to

Re: [PATCH] [media] cx23885-dvb: move initialization of a8293_pdata

2015-12-18 Thread Mauro Carvalho Chehab
Em Fri, 18 Dec 2015 16:52:40 + David Howells escreveu: > Mauro Carvalho Chehab wrote: > > > Smatch complains about where the au8293_data is placed: > > > > drivers/media/pci/cx23885/cx23885-dvb.c:2174 dvb_register() info: > > 'a8293_pdata' is

[GIT PULL for v4.4-rc6] media fixes

2015-12-18 Thread Mauro Carvalho Chehab
The following changes since commit 8005c49d9aea74d382f474ce11afbbc7d7130bec: Linux 4.4-rc1 (2015-11-15 17:00:27 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.4-3 for you to fetch changes up to

Re: [PATCH] [media] cx23885-dvb: move initialization of a8293_pdata

2015-12-18 Thread David Howells
Mauro Carvalho Chehab wrote: > Smatch complains about where the au8293_data is placed: > > drivers/media/pci/cx23885/cx23885-dvb.c:2174 dvb_register() info: > 'a8293_pdata' is not actually initialized (unreached code). > > It is not actually expected to have such

Re: [PATCH/RFC 26/48] videodev2.h: Add request field to v4l2_pix_format_mplane

2015-12-18 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Dec 18, 2015 at 6:16 PM, Laurent Pinchart wrote: >> > @@ -1987,7 +1988,8 @@ struct v4l2_pix_format_mplane { >> > >> > __u8ycbcr_enc; >> > __u8quantization; >> > __u8

[PATCH v1 1/1] tea575x: convert to library

2015-12-18 Thread Andy Shevchenko
The module is used only as a library for now. Remove module init and exit routines to show this. While here, remove FSF snail address and attach EXPORT_SYMBOL() macros to corresponding functions. Signed-off-by: Andy Shevchenko ---

Re: Automatic device driver back-porting with media_build

2015-12-18 Thread Mason
On 18/12/2015 18:10, Mason wrote: > Am I doing something wrong? Yes, I didn't have I2C enabled. By running 'make menuconfig' in a recent kernel, I could see which Kconfig options are required to build the dvbsky driver. Mauro, I hope you'll find time to address my remaining bug reports. Issue

Re: [PATCH/RFC 22/48] media: Add per-file-handle data support

2015-12-18 Thread Sakari Ailus
Hi Laurent, Thanks for the set! On Thu, Dec 17, 2015 at 10:40:00AM +0200, Laurent Pinchart wrote: > The media devnode core associates devnodes with files by storing the > devnode pointer in the file structure private_data field. In order to > allow tracking of per-file-handle data introduce a

Re: per-frame camera metadata (again)

2015-12-18 Thread Sakari Ailus
Hi Guennadi and Hans, Hans Verkuil wrote: On 12/16/15 10:37, Guennadi Liakhovetski wrote: Hi all, A project, I am currently working on, requires acquiringing per-frame metadata from the camera and passing it to user-space. This is not the first time this comes up and I know such discussions

[media:topic/media-controller 2022/2026] drivers/media/usb/uvc/uvc_driver.c:1960:2: note: in expansion of macro 'if'

2015-12-18 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media topic/media-controller head: 0a3c36e2b81cf4fe4b6d094b27259716f0ed9a4d commit: 1590ad7b52714fddc958189103c95541b49b1dae [2022/2026] [media] media-device: split media initialization and registration config:

Re: [PATCH/RFC 21/48] media: Move media_device link_notify operation to an ops structure

2015-12-18 Thread Sakari Ailus
On Thu, Dec 17, 2015 at 10:39:59AM +0200, Laurent Pinchart wrote: > This will allow adding new operations without increasing the > media_device structure size for drivers that don't implement any media > device operation. > > Signed-off-by: Laurent Pinchart

Re: Media Controller patches

2015-12-18 Thread Shuah Khan
On 12/17/2015 04:06 AM, Mauro Carvalho Chehab wrote: > Em Thu, 17 Dec 2015 00:19:24 -0200 > Mauro Carvalho Chehab escreveu: > >> Em Wed, 16 Dec 2015 18:12:58 -0700 >> Shuah Khan escreveu: >> >>> On 12/16/2015 10:43 AM, Mauro Carvalho Chehab

usbvision: problems adding support for ATI TV Wonder USB Edition

2015-12-18 Thread Christopher Chavez
Hi, Not yet an experienced developer here, still working on BSCmpE. I have attempted to add long-awaited support for the ATI TV Wonder USB Edition (NTSC) to usbvision. I have patches of what I've accomplished so far, but I'm not yet able to test it due to a couple of issues, at least one of

cron job: media_tree daily build: ERRORS

2015-12-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: Sat Dec 19 04:00:21 CET 2015 git branch: test git hash: 0aff8a894a2be4c22e6414db33061153a4b35bc9 gcc