cron job: media_tree daily build: WARNINGS

2014-01-23 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Fri Jan 24 04:00:27 CET 2014 git branch: test git hash: 587d1b06e07b4a079453c74ba9edf17d21931049 gcc versio

[REVIEW PATCH 04/13] v4l: add stream format for SDR receiver

2014-01-23 Thread Antti Palosaari
Add new V4L2 stream format definition, V4L2_BUF_TYPE_SDR_CAPTURE, for SDR receiver. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/trace/events/v4l2.h | 1 + include/uapi/linux/videodev2.h | 11 +++

[REVIEW PATCH 08/13] v4l: do not allow modulator ioctls for non-radio devices

2014-01-23 Thread Antti Palosaari
From: Hans Verkuil Modulator ioctls could be enabled mistakenly for non-radio devices. Currently those ioctls are only valid for radio. Fix it. Signed-off-by: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 delet

[REVIEW PATCH 01/13] v4l: add device type for Software Defined Radio

2014-01-23 Thread Antti Palosaari
Add new V4L device type VFL_TYPE_SDR for Software Defined Radio. It is registered as /dev/swradio0 (/dev/sdr0 was already reserved). Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 6 ++ include/media/v4l2-dev.h | 3

[REVIEW PATCH 06/13] v4l: enable some IOCTLs for SDR receiver

2014-01-23 Thread Antti Palosaari
Enable stream format (FMT) IOCTLs for SDR use. These are used for negotiate used data stream format. Reorganise some some IOCTL selection logic. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 21 ++--- drivers/

[REVIEW PATCH 03/13] v4l: 1 Hz resolution flag for tuners

2014-01-23 Thread Antti Palosaari
Add V4L2_TUNER_CAP_1HZ for 1 Hz resolution. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 9dc79d1..1cf2076 10064

[REVIEW PATCH 09/13] DocBook: document 1 Hz flag

2014-01-23 Thread Antti Palosaari
Update documentation to reflect 1 Hz frequency step flag. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- .../DocBook/media/v4l/vidioc-enum-freq-bands.xml | 8 +--- Documentation/DocBook/media/v4l/vidioc-g-frequency.xml| 5 +++-- Documentation/DocB

[REVIEW PATCH 10/13] DocBook: Software Defined Radio Interface

2014-01-23 Thread Antti Palosaari
Document V4L2 SDR interface. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 10 ++ Documentation/DocBook/media/v4l/dev-sdr.xml| 104 + Documentation/DocBook/media/v4l/io.xml | 6 ++ Documentatio

[REVIEW PATCH 00/13] SDR API

2014-01-23 Thread Antti Palosaari
I think it is ready enough. PULL request will follow in next days... The next step I am going to add SDR API is tuner gain controls. Modern silicon RF tuners used nowadays has many controllable gains on signal path. Usually there is at least 3 amplifiers: 1) LNA gain. That is first amplifier jus

[REVIEW PATCH 12/13] v4l2-framework.txt: add SDR device type

2014-01-23 Thread Antti Palosaari
Add SDR device type to v4l2-framework.txt document. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- Documentation/video4linux/v4l2-framework.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4li

[REVIEW PATCH 13/13] devices.txt: add video4linux device for Software Defined Radio

2014-01-23 Thread Antti Palosaari
Add new video4linux device named /dev/swradio for Software Defined Radio use. V4L device minor numbers are allocated dynamically nowadays, but there is still configuration option for old fixed style. Add note to mention that configuration option too. Cc: Hans Verkuil Signed-off-by: Antti Palosaar

[REVIEW PATCH 11/13] DocBook: mark SDR API as Experimental

2014-01-23 Thread Antti Palosaari
Let it be experimental still as all SDR drivers are in staging. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 3 +++ Documentation/DocBook/media/v4l/dev-sdr.xml | 6 ++ 2 files changed, 9 insertions(+) diff --git a/Documentation/DocBook/m

[REVIEW PATCH 05/13] v4l: define own IOCTL ops for SDR FMT

2014-01-23 Thread Antti Palosaari
Use own format ops for SDR data: vidioc_enum_fmt_sdr_cap vidioc_g_fmt_sdr_cap vidioc_s_fmt_sdr_cap vidioc_try_fmt_sdr_cap Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- include/media/v4l2-ioctl.h | 8 1 file changed, 8 insertions(+) diff --git a/include/me

[REVIEW PATCH 07/13] v4l: add device capability flag for SDR receiver

2014-01-23 Thread Antti Palosaari
VIDIOC_QUERYCAP IOCTL is used to query device capabilities. Add new capability flag to inform given device supports SDR capture. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inclu

[REVIEW PATCH 02/13] v4l: add new tuner types for SDR

2014-01-23 Thread Antti Palosaari
Define tuner types V4L2_TUNER_ADC and V4L2_TUNER_RF for SDR usage. ADC is used for setting sampling rate (sampling frequency) to SDR device. Another tuner type, named as V4L2_TUNER_RF, is possible RF tuner. Is is used to down-convert RF frequency to range ADC could sample. Having RF tuner is opti

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-01-23 Thread Antti Seppälä
On 23 January 2014 00:01, Mauro Carvalho Chehab wrote: > Not sure if you saw it, but there's already another patchset proposing > that, that got submitted before this changeset: > https://patchwork.linuxtv.org/patch/21625/ I actually didn't notice that until now. Seems quite a similar kin

Re: [RFCv2 PATCH 18/21] DocBook media: document VIDIOC_QUERY_EXT_CTRL.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Signed-off-by: Hans Verkuil > --- > .../DocBook/media/v4l/vidioc-queryctrl.xml | 223 > + > 1 file changed, 189 insertions(+), 34 deletions(-) > > diff --git a/Documentation/DocBook/media/v4l/vidioc-qu

Re: [RFCv2 PATCH 13/21] v4l2-ctrls: use 'new' to access pointer controls

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Require that 'new' string and pointer values are accessed through the 'new' > field instead of through the union. This reduces the union to just val and > val64. > > Signed-off-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki --

Re: [RFCv2 PATCH 21/21] v4l2-controls.txt: update to the new way of accessing controls.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > The way current and new values are accessed has changed. Update the > document to bring it up to date with the code. > > Signed-off-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki -- To unsubscribe from this list: send the line

Re: [RFCv2 PATCH 12/21] v4l2-ctrls: replace cur by a union v4l2_ctrl_ptr.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Instead of having to maintain the 'cur' union this patch replaces it by > a v4l2_ctrl_ptr union to be consistent with the future configuration stores, > which also use that union. The number of drivers that use 'cur' is fairly > sma

Re: [RFCv2 PATCH 20/21] DocBook media: update control section.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Document the support for complex types in controls. > > Signed-off-by: Hans Verkuil > --- > Documentation/DocBook/media/v4l/controls.xml | 185 > +-- > 1 file changed, 118 insertions(+), 67 deletions(-) >

Re: [RFCv2 PATCH 05/21] videodev2.h: add struct v4l2_query_ext_ctrl and VIDIOC_QUERY_EXT_CTRL.

2014-01-23 Thread Sylwester Nawrocki
On 23/01/14 15:23, Hans Verkuil wrote: > On 01/23/2014 12:02 AM, Sylwester Nawrocki wrote: >> On 01/20/2014 01:45 PM, Hans Verkuil wrote: >>> From: Hans Verkuil >>> >>> Add a new struct and ioctl to extend the amount of information you can >>> get for a control. >>> >>> It gives back a unit string,

Re: [RFCv2 PATCH 10/21] v4l2-ctrls: compare values only once.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > When setting a control the control's new value is compared to the current > value twice: once by new_to_cur(), once by cluster_changed(). Not a big > deal when dealing with simple values, but it can be a problem when dealing > with c

Re: [RFCv2 PATCH 08/21] v4l2-ctrls: create type_ops.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Since complex controls can have non-standard types we need to be able to do > type-specific checks etc. In order to make that easy type operations are > added. > There are four operations: > > - equal: check if two values are equal

Re: [RFCv2 PATCH 05/21] videodev2.h: add struct v4l2_query_ext_ctrl and VIDIOC_QUERY_EXT_CTRL.

2014-01-23 Thread Hans Verkuil
On 01/23/2014 12:02 AM, Sylwester Nawrocki wrote: > On 01/20/2014 01:45 PM, Hans Verkuil wrote: >> From: Hans Verkuil >> >> Add a new struct and ioctl to extend the amount of information you can >> get for a control. >> >> It gives back a unit string, the range is now a s64 type, and the matrix >>

Re: [RFCv2 PATCH 19/21] DocBook media: update VIDIOC_G/S/TRY_EXT_CTRLS.

2014-01-23 Thread Hans Verkuil
On 01/23/2014 02:46 PM, Sylwester Nawrocki wrote: > On 20/01/14 13:46, Hans Verkuil wrote: >> From: Hans Verkuil >> >> Signed-off-by: Hans Verkuil >> --- >> .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 43 >> ++ >> 1 file changed, 35 insertions(+), 8 deletions(-) >>

Re: [RFCv2 PATCH 11/21] v4l2-ctrls: prepare for matrix support: add cols & rows fields.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Add cols and rows fields to the core control structures in preparation > for matrix support. > > Signed-off-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki -- To unsubscribe from this list: send the line "unsubscribe linux-medi

Re: [RFCv2 PATCH 17/21] v4l2-ctrls.c: return elem_size instead of strlen

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > When getting a string and the size given by the application is too > short return the max length the string can have (elem_size) instead > of the string length + 1. That makes more sense. > > Signed-off-by: Hans Verkuil Reviewed-b

Re: [RFCv2 PATCH 19/21] DocBook media: update VIDIOC_G/S/TRY_EXT_CTRLS.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Signed-off-by: Hans Verkuil > --- > .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 43 > ++ > 1 file changed, 35 insertions(+), 8 deletions(-) > > diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ex

Re: Conexant PCI-8604PW 4 channel BNC Video capture card (bttv)

2014-01-23 Thread Daniel Glöckner
On Wed, Jan 22, 2014 at 06:15:44PM +, Robert Longbottom wrote: > On 22/01/14 13:50, Daniel Glöckner wrote: > >This is strange. There are 7 different IRQs assigned to that card but > >PCI slots only have 4. According to the pictures each 878A gets one of > >these. The .0 and .1 functions of a 87

Re: [RFCv2 PATCH 00/21] Add support for complex controls

2014-01-23 Thread Hans Verkuil
On 01/22/14 23:44, Sylwester Nawrocki wrote: > Hello Hans, > > On 01/20/2014 01:45 PM, Hans Verkuil wrote: >> This patch series adds support for complex controls (aka 'Properties') to >> the control framework. It is the first part of a larger patch series that >> adds support for configuration sto

Re: [RFCv2 PATCH 07/21] v4l2: integrate support for VIDIOC_QUERY_EXT_CTRL.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:46, Hans Verkuil wrote: > From: Hans Verkuil > > Signed-off-by: Hans Verkuil Perhaps we can have a bit more information than this in commit description. Reviewed-by: Sylwester Nawrocki -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a me

Re: [RFCv2 PATCH 06/21] v4l2-ctrls: add support for complex types.

2014-01-23 Thread Sylwester Nawrocki
On 20/01/14 13:45, Hans Verkuil wrote: > From: Hans Verkuil > > This patch implements initial support for complex types. > > For the most part the changes are fairly obvious (basic support for is_ptr > types, the type_is_int function is replaced by a is_int bitfield, and > v4l2_query_ext_ctrl is

Re: [RFCv2] Device Tree bindings for OMAP3 Camera System

2014-01-23 Thread Laurent Pinchart
Hi Sebastian, On Thursday 23 January 2014 01:11:29 Sebastian Reichel wrote: > On Wed, Jan 22, 2014 at 11:57:45PM +0100, Laurent Pinchart wrote: > > [...] > > > >> camera-switch { > >> > >> /* > >> > >> * TODO: > >> * - check if the switching code is generic enough to use

Re: [PATCH] uvc: simplify redundant check

2014-01-23 Thread Laurent Pinchart
Hi Oliver, Thank you for the patch. On Thursday 23 January 2014 11:28:24 oli...@neukum.org wrote: > From: Oliver Neukum > > x < constant implies x + unsigned < constant > That check just obfuscates the code > > Signed-off-by: Oliver Neukum Acked-by: Laurent Pinchart I've applied the patch

Re: [PATCH] [media] v4l2-dv-timings: fix GTF calculation

2014-01-23 Thread Hans Verkuil
Reviewed-by: Hans Verkuil Regards, Hans On 01/23/14 10:40, Martin Bugge wrote: > Round off image width to nearest 8 (GTF_CELL_GRAN) > > A source sending a GTF (Generalized Timing Formula) format have no means of > signalling image width. The assumed aspect ratio may result in an odd im

[PATCH] uvc: simplify redundant check

2014-01-23 Thread oliver
From: Oliver Neukum x < constant implies x + unsigned < constant That check just obfuscates the code Signed-off-by: Oliver Neukum --- drivers/media/usb/uvc/uvc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/u

[PATCH] uvc: simplify redundant check

2014-01-23 Thread oliver
From: Oliver Neukum x < constant implies x + unsigned < constant That check just obfuscates the code Signed-off-by: Oliver Neukum --- drivers/media/usb/uvc/uvc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/u

Re: [PATCH] [media] s5p-mfc: Add Horizontal and Vertical search range for Video Macro Blocks

2014-01-23 Thread Sylwester Nawrocki
Hi, On 23/01/14 11:11, Kamil Debski wrote: >> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c >> > b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c >> > index 4ff3b6c..a02e7b8 100644 >> > --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c >> > +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_e

RE: [PATCH] [media] s5p-mfc: Add Horizontal and Vertical search range for Video Macro Blocks

2014-01-23 Thread Kamil Debski
Hi Amit, > From: Amit Grover [mailto:amit.gro...@samsung.com] > Sent: Monday, December 30, 2013 11:43 AM > > This patch adds Controls to set Horizontal and Vertical search range > for Motion Estimation block for Samsung MFC video Encoders. > > Signed-off-by: Swami Nathan > Signed-off-by: Amit G

[PATCH] [media] v4l2-dv-timings: fix GTF calculation

2014-01-23 Thread Martin Bugge
Round off image width to nearest 8 (GTF_CELL_GRAN) A source sending a GTF (Generalized Timing Formula) format have no means of signalling image width. The assumed aspect ratio may result in an odd image width but according to the standard image width should be in multiple of 8. Cc: Mats Randgaard