Re: [REVIEW PATCH 00/16] SDR API - drivers

2014-02-10 Thread Hans Verkuil
Hi Antti, Thanks for reorganizing the patch series. This looks much nicer! I plan on reviewing these series on Friday or in the weekend. Regards, Hans On 02/11/2014 03:04 AM, Antti Palosaari wrote: > *** BLURB HERE *** > > Antti Palosaari (16): > e4000: convert DVB tuner to I2C driv

[ANN] Added streaming tests for v4l2-compliance

2014-02-10 Thread Hans Verkuil
Hi all, I've just committed and pushed my latest changes to v4l2-compliance. It adds initial support for testing the I/O streaming ioctls. It's currently limited to standard VIDEO_CAPTURE, so no output, m2m or multiplanar support. You need to add the -s flag in order to test this, and you may hav

Re: [PATCH] media: soc-camera: support deferred probing of clients and OF cameras

2014-02-10 Thread Guennadi Liakhovetski
Hi Bryan, On Mon, 10 Feb 2014, Bryan Wu wrote: > On Sun, Feb 9, 2014 at 2:20 PM, Guennadi Liakhovetski > wrote: > > Hi Bryan, > > > > Thanks for reiterating this patch! > > > > Sure, my pleasure. I basically assembled your patches together and > change them to use latest V4L2 soc_camera API. >

cron job: media_tree daily build: WARNINGS

2014-02-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: Tue Feb 11 04:00:21 CET 2014 git branch: test git hash: 37e59f876bc710d67a30b660826a5e83e07101ce gcc versio

[REVIEW PATCH 06/16] e4000: convert to Regmap API

2014-02-10 Thread Antti Palosaari
That comes possible after driver was converted to kernel I2C model (I2C binding & proper I2C client with no gate control hack). All nasty low level I2C routines are now covered by regmap. Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/tuners/Kconfig

[REVIEW PATCH 01/16] e4000: convert DVB tuner to I2C driver model

2014-02-10 Thread Antti Palosaari
Driver conversion from proprietary DVB tuner model to more general I2C driver model. Cc: Jean Delvare Cc: Mauro Carvalho Chehab Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c| 115 drivers/media/tuners/e4000.h| 21 ++---

[REVIEW PATCH 02/16] e4000: implement controls via v4l2 control framework

2014-02-10 Thread Antti Palosaari
Implement gain and bandwidth controls using v4l2 control framework. Pointer to control handler is provided by exported symbol. Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 210 +- drivers/m

[REVIEW PATCH 11/16] rtl28xxu: fix switch-case style issue

2014-02-10 Thread Antti Palosaari
Use break, not return, for every case. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index 73348bf..afafe92 100644

[REVIEW PATCH 09/16] rtl28xxu: constify demod config structs

2014-02-10 Thread Antti Palosaari
Optimize a little bit from data to text. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index

[REVIEW PATCH 15/16] rtl2832_sdr: expose R820T controls to user

2014-02-10 Thread Antti Palosaari
R820T tuner driver provides now some controls. Expose those to userland. Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c b/drivers/staging/media/rtl2832u_

[REVIEW PATCH 04/16] e4000: implement PLL lock v4l control

2014-02-10 Thread Antti Palosaari
Implement PLL lock control to get PLL lock flag status from tuner synthesizer. Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 53 ++- drivers/media/tuners/e4000_priv.h | 2 ++ 2 files change

[REVIEW PATCH 10/16] rtl28xxu: attach SDR extension module

2014-02-10 Thread Antti Palosaari
With that extension module it supports SDR. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/Makefile | 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/Makefile b/drivers/media/u

[REVIEW PATCH 16/16] MAINTAINERS: add rtl2832_sdr driver

2014-02-10 Thread Antti Palosaari
Realtek RTL2832 SDR driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f03772a..0ed943a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7338,6 +7338,16

[REVIEW PATCH 14/16] r820t: add manual gain controls

2014-02-10 Thread Antti Palosaari
Add gain control for LNA, Mixer and IF. Expose controls via V4L control framework. Cc: Mauro Carvalho Chehab Signed-off-by: Antti Palosaari --- drivers/media/tuners/r820t.c | 137 ++- drivers/media/tuners/r820t.h | 10 2 files changed, 146 insertion

[REVIEW PATCH 12/16] rtl28xxu: use muxed RTL2832 I2C adapters for E4000 and RTL2832_SDR

2014-02-10 Thread Antti Palosaari
RTL2832 driver provides muxed I2C adapters for tuner bus I2C gate control. Pass those adapters to rtl2832_sdr and e4000 modules in order to get rid of proprietary DVB .i2c_gate_ctrl() callback use. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 12 ++-- driv

[REVIEW PATCH 08/16] rtl2832_sdr: Realtek RTL2832 SDR driver module

2014-02-10 Thread Antti Palosaari
Implement SDR driver for Realtek RTL2832U chip as a DVB extension module. SDR module is attached by DVB USB RTL28XXU driver as a DVB SEC (satellite equipment controller) module. Abusing unused SEC here has no harm as that is DVB-T only frontend. SDR functionality is provided by RTL2832 DVB-T demod

[REVIEW PATCH 05/16] e4000: get rid of DVB i2c_gate_ctrl()

2014-02-10 Thread Antti Palosaari
Gate control is now implemented by rtl2832 I2C adapter so we do not need proprietary DVB i2c_gate_ctrl() anymore. Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 106 +-- 1 file changed, 21 insertions(+), 85 deletions(-) diff --git a/dri

[REVIEW PATCH 13/16] rtl2832_sdr: expose e4000 controls to user

2014-02-10 Thread Antti Palosaari
E4000 tuner driver provides now some controls. Expose those to userland. Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c b/drivers/

[REVIEW PATCH 07/16] e4000: rename some variables

2014-02-10 Thread Antti Palosaari
Rename some variables. Change error status checks from (ret < 0) to (ret). No actual functionality changes. Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 332 +++--- drivers/media/tuners/e4000_priv.h | 2 +- 2 files changed, 167 insertio

[REVIEW PATCH 00/16] SDR API - drivers

2014-02-10 Thread Antti Palosaari
*** BLURB HERE *** Antti Palosaari (16): e4000: convert DVB tuner to I2C driver model e4000: implement controls via v4l2 control framework e4000: fix PLL calc to allow higher frequencies e4000: implement PLL lock v4l control e4000: get rid of DVB i2c_gate_ctrl() e4000: convert to Regma

[REVIEW PATCH 03/16] e4000: fix PLL calc to allow higher frequencies

2014-02-10 Thread Antti Palosaari
There was 32-bit overflow on VCO frequency calculation which blocks tuning to 1073 - 1104 MHz. Use 64 bit number in order to avoid VCO frequency overflow. After that fix device in question tunes to following range: 60 - 1104 MHz 1250 - 2207 MHz Signed-off-by: Antti Palosaari --- drivers/media/t

[PATCH] au0828: fix i2c clock speed for DViCO FusionHDTV7

2014-02-10 Thread Joonyoung Shim
DViCO FusionHDTV7 device that use au0828 can fail to communicate with xc5000 using i2c interface because of high i2c clock speed - i2c clock stretching bug. It causes to fail xc5000 firmware loading normally at the current driver. Already this problem fixed as changing to low i2c clock speed at HV

Re: [PATCH] media: soc-camera: support deferred probing of clients and OF cameras

2014-02-10 Thread Bryan Wu
On Sun, Feb 9, 2014 at 2:20 PM, Guennadi Liakhovetski wrote: > Hi Bryan, > > Thanks for reiterating this patch! > Sure, my pleasure. I basically assembled your patches together and change them to use latest V4L2 soc_camera API. > On Fri, 7 Feb 2014, Bryan Wu wrote: > >> From: Guennadi Liakhovets

[PATCH 5/5] mt9p031: Add support for PLL bypass

2014-02-10 Thread Laurent Pinchart
When the input clock frequency is out of bounds for the PLL, bypass the PLL and just divide the input clock to achieve the requested output frequency. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9p031.c | 32 1 file changed, 32 insertions(+) diff --g

[PATCH 3/5] mt9t001: Add clock support

2014-02-10 Thread Laurent Pinchart
The sensor needs a master clock, handle it explictly in the driver. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9t001.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/mt9t001.c b/drivers/media/i2c/mt9t001.c index 9a0

[PATCH 2/5] mt9t001: Add regulator support

2014-02-10 Thread Laurent Pinchart
The sensor needs two power supplies, VAA and VDD. Require a regulator for each of them. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9t001.c | 206 +--- 1 file changed, 156 insertions(+), 50 deletions(-) diff --git a/drivers/media/i2c/mt9t001.c

[PATCH 1/5] ARM: omap2: cm-t35: Add regulators and clock for camera sensor

2014-02-10 Thread Laurent Pinchart
The camera sensor will soon require regulators and clocks. Register fixed regulators for its VAA and VDD power supplies and a fixed rate clock for its master clock. Signed-off-by: Laurent Pinchart --- arch/arm/mach-omap2/board-cm-t35.c | 16 1 file changed, 16 insertions(+) dif

[PATCH 0/5] mt9t001 and mt9p031 sensors drivers patches

2014-02-10 Thread Laurent Pinchart
Hello, This is a set of miscellaneous patches for the mt9t001 and mt9p031 sensors drivers. Please see individual commit messages for details. The mt9t001 driver receives support for regulators and clocks. As a prerequisite, patch 1/5 registers a fixed rate clock and two fixed voltage regulators f

[PATCH 4/5] mt9p031: Fix typo in comment

2014-02-10 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9p031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c index 05278f5..14a616e 100644 --- a/drivers/media/i2c/mt9p031.c +++ b/drivers/media/i2c/mt9p031.c @@ -288,7

[PATCH] rc-main: store_filter: pass errors to userland

2014-02-10 Thread James Hogan
Propagate errors returned by drivers from the s_filter callback back to userland when updating scancode filters. This allows userland to see when the filter couldn't be updated, usually because it's not a valid filter for the hardware. Previously the filter was being updated conditionally on succe

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-10 Thread James Hogan
Hi Antti, On Monday 10 February 2014 22:09:33 Antti Seppälä wrote: > >> +static int ir_rc5_sz_encode(u64 protocols, > >> + const struct rc_scancode_filter *scancode, > >> + struct ir_raw_event *events, unsigned int max) > >> +{ > >> + int ret; >

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-10 Thread Antti Seppälä
Hi James. On 10 February 2014 12:30, James Hogan wrote: > Hi Antti, > > On 08/02/14 12:07, Antti Seppälä wrote: >> The encoding in rc5-sz first inserts a pulse and then simply utilizes the >> generic Manchester encoder available in rc-core. >> >> Signed-off-by: Antti Seppälä >> --- >> drivers/m

Re: [RFC PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core

2014-02-10 Thread Antti Seppälä
Hi James. On 10 February 2014 12:25, James Hogan wrote: > Hi Antti, > > On 08/02/14 12:07, Antti Seppälä wrote: >> Adding a simple Manchester encoder to rc-core. >> Manchester coding is used by at least RC-5 protocol and its variants. >> >> Signed-off-by: Antti Seppälä >> --- >> drivers/media/r

Re: [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode

2014-02-10 Thread Antti Seppälä
On 10 February 2014 11:58, James Hogan wrote: > Hi Antti, > > On 08/02/14 11:30, Antti Seppälä wrote: >>> The first patch adds an encode callback to the existing raw ir handler >>> struct and a helper function to encode a scancode for a given protocol. >>> >> >> The mechanism used here to encode w

[REVIEW PATCH 0/5] SDR API - Mirics MSi3101 driver

2014-02-10 Thread Antti Palosaari
Split / group / merge changes as requested by Hans. Antti Antti Palosaari (5): msi3101: convert to SDR API msi001: Mirics MSi001 silicon tuner driver msi3101: use msi001 tuner driver MAINTAINERS: add msi001 driver MAINTAINERS: add msi3101 driver MAINTAINERS

[REVIEW PATCH 5/5] MAINTAINERS: add msi3101 driver

2014-02-10 Thread Antti Palosaari
Mirics MSi2500 (MSi3101) SDR ADC + USB interface driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 15ebabb..f03772a 100644 --- a/MAINTAINERS +++ b/MA

[REVIEW PATCH 4/5] MAINTAINERS: add msi001 driver

2014-02-10 Thread Antti Palosaari
Mirics MSi001 silicon tuner driver. Currently in staging as SDR API is not ready. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2cf5cf..15ebabb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5757,6

[REVIEW PATCH 3/5] msi3101: use msi001 tuner driver

2014-02-10 Thread Antti Palosaari
Remove MSi001 RF tuner related code as MSi001 functionality is moved to own driver. Implement SPI master adapter. Attach MSi001 driver via SPI / V4L subdev framework. Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/Kconfig | 3 +- drivers/staging/media/msi3101/sdr-msi3

[REVIEW PATCH 2/5] msi001: Mirics MSi001 silicon tuner driver

2014-02-10 Thread Antti Palosaari
That RF tuner driver is bound via SPI bus model and it implements V4L subdev API. I split it out from MSi3101 SDR driver. MSi3101 = MSi2500 + MSi001. Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/Kconfig | 4 + drivers/staging/media/msi3101/Makefile | 1 + drivers/staging

RE

2014-02-10 Thread Young Chang
I have a business proposal in the tune of $18.2m USD for you to handle with me. If interested, kindly get back to me for more details - This email was sent using IPB Webmail http://mail.ipb.ac.id/. Bogor Agricultural University http://www.ipb.ac.id/ --

[REVIEW PATCH 3/6] DocBook: document RF tuner gain controls

2014-02-10 Thread Antti Palosaari
Add documentation for LNA, mixer and IF gain controls. These controls are RF tuner specific. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- Documentation/DocBook/media/v4l/controls.xml | 91 1 file changed, 91 insertions(+) diff --git a

[REVIEW PATCH 6/6] DocBook: media: document PLL lock control

2014-02-10 Thread Antti Palosaari
Document PLL lock V4L2 control. It is read only RF tuner control which is used to inform if tuner is receiving frequency or not. Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/controls.xml | 9 + 1 file changed, 9 insertion

[REVIEW PATCH 0/6] SDR API - V4L documentation

2014-02-10 Thread Antti Palosaari
Split / group / merge changes as requested by Hans. That is last set of API changes itself. All the upcoming patches are driver implementation. It will took a while to rebase those Antti Antti Palosaari (6): DocBook: V4L: add V4L2_SDR_FMT_CU8 - 'CU08' DocBook: V4L: add V4L2_SDR_FMT_CU16L

[REVIEW PATCH 5/6] DocBook: document RF tuner bandwidth controls

2014-02-10 Thread Antti Palosaari
Add documentation for RF tuner bandwidth controls. These controls are used to set filters on tuner signal path. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/controls.xml | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation

[REVIEW PATCH 1/8] xc2028: silence compiler warnings

2014-02-10 Thread Antti Palosaari
There is now new tuner types which are not handled on that switch-case. Print error if unknown tuner type is meet. drivers/media/tuners/tuner-xc2028.c: In function ‘generic_set_freq’: drivers/media/tuners/tuner-xc2028.c:1037:2: warning: enumeration value ‘V4L2_TUNER_ADC’ not handled in switch [-W

[REVIEW PATCH 8/8] rtl2832: implement delayed I2C gate close

2014-02-10 Thread Antti Palosaari
Delay possible I2C gate close a little bit in order to see if there is next message coming to tuner in a sequence. Also, export private muxed I2C adapter. That is aimed only for SDR extension module as SDR belongs to same RTL2832 physical I2C bus (it is physically property of RTL2832, whilst it is

[REVIEW PATCH 7/8] rtl2832: Fix deadlock on i2c mux select function.

2014-02-10 Thread Antti Palosaari
From: Luis Alves Signed-off-by: Luis Alves Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index c0366a8..cfc5438 1006

[REVIEW PATCH 5/8] rtl2832: provide muxed I2C adapter

2014-02-10 Thread Antti Palosaari
RTL2832 provides gated / repeater I2C adapter for tuner. Implement it as a muxed I2C adapter. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig| 2 +- drivers/media/dvb-frontends/rtl2832.c | 26 ++ drivers/media/dvb-frontends/rtl2832.h

[REVIEW PATCH 4/6] DocBook: media: document V4L2_CTRL_CLASS_RF_TUNER

2014-02-10 Thread Antti Palosaari
It is class for RF tuner specific controls, like gain controls, filters, signal strength. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/me

[REVIEW PATCH 2/6] DocBook: V4L: add V4L2_SDR_FMT_CU16LE - 'CU16'

2014-02-10 Thread Antti Palosaari
Document V4L2_SDR_FMT_CU16LE format. It is complex unsigned 16-bit little endian IQ sample. Used by software defined radio devices. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- .../DocBook/media/v4l/pixfmt-sdr-cu16le.xml| 46 ++ Documen

[REVIEW PATCH 1/6] DocBook: V4L: add V4L2_SDR_FMT_CU8 - 'CU08'

2014-02-10 Thread Antti Palosaari
Document V4L2_SDR_FMT_CU8 SDR format. It is complex unsigned 8-bit IQ sample. Used by software defined radio devices. Cc: Hans Verkuil Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- .../DocBook/media/v4l/pixfmt-sdr-cu08.xml | 44 ++ Documentation/DocBook

[REVIEW PATCH 6/6] v4l: add control for RF tuner PLL lock flag

2014-02-10 Thread Antti Palosaari
Add volatile boolean control to indicate if tuner frequency synthesizer is locked to requested frequency. That means tuner is able to receive given frequency. Control is named as "PLL lock", since frequency synthesizers are based of phase-locked-loop. Maybe more general name could be wise still? C

[REVIEW PATCH 2/6] v4l: add RF tuner channel bandwidth control

2014-02-10 Thread Antti Palosaari
Modern silicon RF tuners has one or more adjustable filters on signal path, in order to filter noise from desired radio channel. Add channel bandwidth control to tell the driver which is radio channel width we want receive. Filters could be then adjusted by the driver or hardware, using RF frequen

[REVIEW PATCH 4/6] v4l: uapi: add SDR formats CU8 and CU16LE

2014-02-10 Thread Antti Palosaari
V4L2_SDR_FMT_CU8 — Complex unsigned 8-bit IQ sample V4L2_SDR_FMT_CU16LE — Complex unsigned 16-bit little endian IQ sample Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- include/uapi/linux/videodev2.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/videodev2.h b/i

[REVIEW PATCH 0/6] SDR API - V4L implement needed controls and formats

2014-02-10 Thread Antti Palosaari
Split / group / merge changes as requested by Hans. Implement needed V4L2 controls and V4L stream formats. Antti Antti Palosaari (6): v4l: add RF tuner gain controls v4l: add RF tuner channel bandwidth control v4l: reorganize RF tuner control ID numbers v4l: uapi: add SDR formats CU8 and

[REVIEW PATCH 5/6] v4l: add enum_freq_bands support to tuner sub-device

2014-02-10 Thread Antti Palosaari
Add VIDIOC_ENUM_FREQ_BANDS, enumerate supported frequency bands, IOCTL support for sub-device tuners too. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- include/media/v4l2-subdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h

[REVIEW PATCH 3/6] v4l: reorganize RF tuner control ID numbers

2014-02-10 Thread Antti Palosaari
It appears that controls are ordered by ID number. Change order of controls by reorganizing assigned IDs now as we can. It is not reasonable possible after the API is released. Leave some spare space between IDs too for future extensions. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- incl

[REVIEW PATCH 1/6] v4l: add RF tuner gain controls

2014-02-10 Thread Antti Palosaari
Modern silicon RF tuners used nowadays has many controllable gain stages on signal path. Usually, but not always, there is at least 3 gain stages. Also on some cases there could be multiple gain stages within the ones specified here. However, I think that having these three controllable gain stages

[REVIEW PATCH 0/8] SDR API - misc changes

2014-02-10 Thread Antti Palosaari
Split / group / merge changes as requested by Hans. This is first set, containing some not so directly SDR related changes. Antti Antti Palosaari (7): xc2028: silence compiler warnings rtl28xxu: add module parameter to disable IR rtl2832: remove unused if_dvbt config parameter rtl2832: s

[REVIEW PATCH 6/8] rtl2832: add muxed I2C adapter for demod itself

2014-02-10 Thread Antti Palosaari
There was a deadlock between master I2C adapter and muxed I2C adapter. Implement two I2C muxed I2C adapters and leave master alone, just only for offering I2C adapter for these mux adapters. Reported-by: Luis Alves Reported-by: Benjamin Larsson Signed-off-by: Antti Palosaari --- drivers/media/

[REVIEW PATCH 4/8] rtl2832: style changes and minor cleanup

2014-02-10 Thread Antti Palosaari
Most of those were reported by checkpatch.pl... debug module parameter is not used anywhere so remove it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 26 +++- drivers/media/dvb-frontends/rtl2832.h | 2 +- drivers/media/dvb-frontends/rtl2832_

[REVIEW PATCH 2/8] rtl28xxu: add module parameter to disable IR

2014-02-10 Thread Antti Palosaari
Disable IR interrupts in order to avoid SDR sample loss. IR interrupts causes some extra load for device and it seems be one reason to loss samples when sampling rate is high. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 7 +++ 1 file changed, 7 insertions(+)

[REVIEW PATCH 3/8] rtl2832: remove unused if_dvbt config parameter

2014-02-10 Thread Antti Palosaari
All used tuners has get_if_frequency() callback and that parameter is not needed and will not needed as all upcoming tuner drivers should implement get_if_frequency(). Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 6 -- drivers/media/dvb-frontends/rtl2832.h |

[PATCH for v3.14] vb2: fix PREPARE_BUF regression.

2014-02-10 Thread Hans Verkuil
Fix an incorrect test in vb2_internal_qbuf() where only DEQUEUED buffers are allowed. But PREPARED buffers are also OK. Introduced by commit 4138111a27859dcc56a5592c804dd16bb12a23d1 ("vb2: simplify qbuf/prepare_buf by removing callback"). Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Laurent Pinchart
Hi Paul, On Monday 10 February 2014 16:13:51 Paul Bolle wrote: > On Mon, 2014-02-10 at 15:13 +0100, Laurent Pinchart wrote: > > On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > > > camera interface - Build system") add

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Paul Bolle
Laurent, On Mon, 2014-02-10 at 15:13 +0100, Laurent Pinchart wrote: > On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > > camera interface - Build system") added a Kconfig entry for > > VIDEO_OMAP4_DEBUG. But nothing uses

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 03:35:51PM +0100, Jean-Francois Moine wrote: > On Mon, 10 Feb 2014 13:12:33 + > Russell King - ARM Linux wrote: > > > I've NAK'd these patches already - I believe they're based on a > > mis-understanding of how this should be used. I believe Jean-Francois > > has only

Re: [PATCH 43/47] adv7604: Control hot-plug detect through a GPIO

2014-02-10 Thread Laurent Pinchart
Hi Lars, On Thursday 06 February 2014 14:10:05 Lars-Peter Clausen wrote: > On 02/05/2014 05:42 PM, Laurent Pinchart wrote: > > Replace the ADV7604-specific hotplug notifier with a GPIO to control the > > HPD pin directly instead of going through the bridge driver. > > > > Signed-off-by: Laurent P

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Jean-Francois Moine
On Mon, 10 Feb 2014 13:12:33 + Russell King - ARM Linux wrote: > I've NAK'd these patches already - I believe they're based on a > mis-understanding of how this should be used. I believe Jean-Francois > has only looked at the core, rather than looking at the imx-drm example > it was posted w

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > camera interface - Build system") added a Kconfig entry for > VIDEO_OMAP4_DEBUG. But nothing uses that symbol. > > This entry was apparen

Re: [PATCH 07/24] xc5000: properly report i2c write failures

2014-02-10 Thread Devin Heitmueller
On Mon, Feb 10, 2014 at 3:25 AM, Joonyoung Shim wrote: > As you said, i modified like below patch and it is working well. > > Thanks for your advice. > > diff --git a/drivers/media/usb/au0828/au0828-cards.c > b/drivers/media/usb/au0828/au0828-cards.c > index 0cb7c28..9936875 100644 > --- a/drivers

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 01:53:08PM +0100, Thierry Reding wrote: > On Fri, Feb 07, 2014 at 04:55:00PM +0100, Jean-Francois Moine wrote: > > Some simple components don't need to do any specific action on > > bind to / unbind from a master component. > > > > This patch permits such components to omit

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Thierry Reding
On Fri, Feb 07, 2014 at 04:55:00PM +0100, Jean-Francois Moine wrote: > Some simple components don't need to do any specific action on > bind to / unbind from a master component. > > This patch permits such components to omit the bind/unbind > operations. > > Signed-off-by: Jean-Francois Moine >

Re: [PATCH 27/47] v4l: Add support for DV timings ioctls on subdev nodes

2014-02-10 Thread Laurent Pinchart
Hi Sakari, On Friday 07 February 2014 13:07:40 Sakari Ailus wrote: > Hi Laurent, > > Thanks for the patch. > > On Wed, Feb 05, 2014 at 05:42:18PM +0100, Laurent Pinchart wrote: > ... > > > diff --git a/drivers/media/v4l2-core/v4l2-subdev.c > > b/drivers/media/v4l2-core/v4l2-subdev.c index 996c2

[REVIEW PATCH 1/5] Various 3.15 fixes

2014-02-10 Thread Hans Verkuil
Some pending patches. If there are no more comments then I'll make a pull request for these in a week. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.

[REVIEW PATCH 5/5] vivi: queue_setup improvements.

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil Drop the vid_limit module option: there is really no need to limit this. No other driver does that. If you try to allocate more buffers then vb2 will automatically reduce the number of buffers anyway. Also add sanity checks if the size in the fmt argument is going to be used a

[REVIEW PATCH 3/5] vivi: fix sequence counting

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil The sequence counting was not reset to 0 between each streaming run, and it was increased only every other frame. This is incorrect behavior: the confusion is with FIELD_ALTERNATE systems where each field is transmitted separately and only when both fields have been received is

[REVIEW PATCH 1/5] radio-usb-si4713: make array of structs const.

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil The start_seq[] should be const. Signed-off-by: Hans Verkuil --- drivers/media/radio/si4713/radio-usb-si4713.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/radio/si4713/radio-usb-si4713.c b/drivers/media/radio/si4713/radio-usb-si4713

[REVIEW PATCH 2/5] v4l2-subdev: Allow 32-bit compat ioctls

2014-02-10 Thread Hans Verkuil
Add support for 32-bit ioctls with v4l-subdev device nodes. Rather than keep adding new ioctls to the list in v4l2-compat-ioctl32.c, just check if the ioctl is a non-private V4L2 ioctl and if so, call the conversion code. We keep forgetting to add new ioctls, so this is a more robust solution.

[REVIEW PATCH 4/5] vivi: drop unused field

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/platform/vivi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index eb09fe6..4114bb6 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/viv

[GIT PULL FOR v3.15] 3.15 updates

2014-02-10 Thread Hans Verkuil
Hi Mauro, Some sleep_on race fixes, s2255 driver cleanups in preparation for the vb2 conversion and some ths8200 fixes. Regards, Hans The following changes since commit 37e59f876bc710d67a30b660826a5e83e07101ce: [media, edac] Change my email address (2014-02-07 08:03:07 -0200) are av

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-10 Thread James Hogan
Hi Antti, On 08/02/14 12:07, Antti Seppälä wrote: > The encoding in rc5-sz first inserts a pulse and then simply utilizes the > generic Manchester encoder available in rc-core. > > Signed-off-by: Antti Seppälä > --- > drivers/media/rc/ir-rc5-sz-decoder.c | 35 +++

Re: exynos4 / g2d

2014-02-10 Thread Tobias Jakobi
Sachin Kamat wrote: > On 10 February 2014 14:28, Inki Dae wrote: >> 2014-02-10 17:44 GMT+09:00 Sachin Kamat : >>> +cc Joonyoung Shim >>> >>> Hi, >>> >>> On 10 February 2014 13:58, Tobias Jakobi >>> wrote: Hello! Sachin Kamat wrote: > +cc linux-media list and some related

Re: [REVIEW PATCH 00/86] SDR tree

2014-02-10 Thread Antti Palosaari
On 10.02.2014 12:06, Gianluca Gennari wrote: Hi Hans, First of all, would this work for a rtl2838 as well or is this really 2832u specific? I've got a 2838... If it is 2832u specific, then do you know which product has it? It would be useful for me to have a usb stick with which I can test SDR

Re: [RFC PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core

2014-02-10 Thread James Hogan
Hi Antti, On 08/02/14 12:07, Antti Seppälä wrote: > Adding a simple Manchester encoder to rc-core. > Manchester coding is used by at least RC-5 protocol and its variants. > > Signed-off-by: Antti Seppälä > --- > drivers/media/rc/ir-raw.c | 44 > + >

Re: [PATCH v4.2 3/4] v4l: Add timestamp source flags, mask and document them

2014-02-10 Thread Sakari Ailus
Hans Verkuil wrote: > On 02/07/2014 11:52 PM, Sakari Ailus wrote: >> Some devices do not produce timestamps that correspond to the end of the >> frame. The user space should be informed on the matter. This patch achieves >> that by adding buffer flags (and a mask) for timestamp sources since more >

Re: [REVIEW PATCH 00/86] SDR tree

2014-02-10 Thread Gianluca Gennari
Hi Hans, > First of all, would this work for a rtl2838 as well or is this really 2832u > specific? I've got a 2838... If it is 2832u specific, then do you know which > product has it? It would be useful for me to have a usb stick with which I can > test SDR. regarding this question, 2838 is just

Re: video from USB DVB-T get damaged after some time

2014-02-10 Thread kapetr
Hello, it is this one: http://www.buyincoins.com/item/30948.html I shop there often - lowest prices of all China e-shops I have found. BTW: if you want try the shop - by registry/first buy give my nick "jipan0" as referrer. You will get 5% off :-) --kapetr Dne 10.2.2014 09:34, Antti Palosaa

[REVIEW PATCH for 3.14 2/2] vb2: fix read/write regression

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil Commit 88e268702bfba78448abd20a31129458707383aa ("vb2: Improve file I/O emulation to handle buffers in any order") broke read/write support if the size of the buffer being read/written is less than the size of the image. When the commit was tested originally I used qv4l2, whic

[REVIEW PATCH for 3.14 1/2] si4713: fix Kconfig dependencies

2014-02-10 Thread Hans Verkuil
From: Hans Verkuil The SI4713 select should be I2C_SI4713 and the USB driver needs to depend on I2C as well. Signed-off-by: Hans Verkuil Reported-by: Paul Bolle Reported-by: Richard Weinberger --- drivers/media/radio/si4713/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[REVIEW PATCH for 3.14 0/2] 3.14 Fixes

2014-02-10 Thread Hans Verkuil
One fixing si4713 Kconfig dependencies, one fixing a nasty vb2 regression. The last patch was part of my vb2 patch series I posted earlier, but this one really should go to 3.14. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a mess

Re: [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode

2014-02-10 Thread James Hogan
Hi Antti, On 08/02/14 11:30, Antti Seppälä wrote: >> The first patch adds an encode callback to the existing raw ir handler >> struct and a helper function to encode a scancode for a given protocol. >> > > The mechanism used here to encode works fine as long as there is only > one protocol select

Re: [RFC PATCH 1/7] v4l2-ctrls: add new RDS TX controls

2014-02-10 Thread Hans Verkuil
On 02/07/2014 01:19 PM, Hans Verkuil wrote: > From: Hans Verkuil > > The si4713 supports several RDS features not yet implemented in the driver. > > This patch adds the missing RDS functionality to the list of RDS controls. I'm going to postpone this until the patch series adding support for co

Re: [PATCH] omap_vout: Add DVI display type support

2014-02-10 Thread Tomi Valkeinen
On 08/02/14 16:32, Laurent Pinchart wrote: > Since the introduction of the new OMAP DSS DVI connector driver in > commit 348077b154357eec595068a3336ef6beb870e6f3 ("OMAPDSS: Add new DVI > Connector driver"), DVI outputs report a new display type of > OMAP_DISPLAY_TYPE_DVI instead of OMAP_DISPLAY_TYP

Re: [PATCH v4.2 3/4] v4l: Add timestamp source flags, mask and document them

2014-02-10 Thread Hans Verkuil
On 02/07/2014 11:52 PM, Sakari Ailus wrote: > Some devices do not produce timestamps that correspond to the end of the > frame. The user space should be informed on the matter. This patch achieves > that by adding buffer flags (and a mask) for timestamp sources since more > possible timestamping po

[PATCH] Siano: smsusb - Add a device id for PX-S1UD

2014-02-10 Thread Satoshi Nagahama
Add a device id to support for PX-S1UD (PLEX ISDB-T usb dongle) which has sms2270. Signed-off-by: Satoshi Nagahama --- drivers/media/usb/siano/smsusb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/siano/smsusb.c b/drivers/media/usb/siano/smsusb.c index 05bd91a..1836a41

Re: [REVIEW PATCH 00/86] SDR tree

2014-02-10 Thread Hans Verkuil
Hi Antti, I have a few questions about this patch series: First of all, would this work for a rtl2838 as well or is this really 2832u specific? I've got a 2838... If it is 2832u specific, then do you know which product has it? It would be useful for me to have a usb stick with which I can test S

Re: [PATCH 2/5] synch videodev2.h headers with kernel SDR API

2014-02-10 Thread Antti Palosaari
Moro Hans, On 10.02.2014 11:08, Hans Verkuil wrote: Hi Antti, I'm not sure if you know this, but to sync with a new kernel you use 'make sync-with-kernel'. Not a problem here, I'll do that anyway once the SDR API is merged. No prob, I didn't know, just updated manually. regards Antti -- htt

Re: [PATCH 5/5] v4l2-ctl: implement list SDR buffers command

2014-02-10 Thread Hans Verkuil
On 02/09/2014 07:05 AM, Antti Palosaari wrote: > Cc: Hans Verkuil > Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil Thanks! Hans > --- > utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 6 ++ > utils/v4l2-ctl/v4l2-ctl.cpp | 1 + > utils/v4l2-ctl/v4l2-ctl.h | 1

Re: [PATCH 3/5] v4l2-ctl: add tuner support for SDR tuners

2014-02-10 Thread Hans Verkuil
On 02/09/2014 07:05 AM, Antti Palosaari wrote: > Add initial SDR support for tuner related operations. > > Cc: Hans Verkuil > Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil Thanks! Hans > --- > utils/v4l2-ctl/v4l2-ctl-tuner.cpp | 53 > +++

  1   2   >