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

2014-02-09 Thread Antti Palosaari
is own kernel module). Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 92 +- drivers/media/dvb-frontends/rtl2832.h | 12 drivers/media/dvb-frontends/rtl2832_priv.h | 1 + 3 files changed, 102 insertions(+), 3 deletions

[REVIEW PATCH 79/86] rtl2832: provide muxed I2C adapter

2014-02-09 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 80/86] rtl2832: add muxed I2C adapter for demod itself

2014-02-09 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 71/86] rtl2832_sdr: use formats defined in V4L2 API

2014-02-09 Thread Antti Palosaari
Switch new formats V4L2_SDR_FMT_CU8 and V4L2_SDR_FMT_CU16LE as those are now defined in API. Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media

[REVIEW PATCH 84/86] e4000: get rid of DVB i2c_gate_ctrl()

2014-02-09 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

[REVIEW PATCH 66/86] rtl28xxu: fix switch-case style issue

2014-02-09 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

[REVIEW PATCH 64/86] rtl2832_sdr: use E4000 tuner controls via V4L framework

2014-02-09 Thread Antti Palosaari
Use V4L2 control framework for E4000 tuner as it provides controls that way now. Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 92 +--- 1 file changed, 34 insertions(+), 58 deletions

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

2014-02-09 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

[REVIEW PATCH 85/86] rtl2832_sdr: do not init tuner when only freq is changed

2014-02-09 Thread Antti Palosaari
Initializing whole tuner every time when frequency is changed is wrong and unnecessary. Init tuner only when streaming is started. Change other parameters runtime. Signed-off-by: Antti Palosaari --- drivers/staging/media/rtl2832u_sdr/rtl2832_sdr.c | 25 +++- 1 file changed

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

2014-02-09 Thread Antti Palosaari
wise still? Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4

[REVIEW PATCH 77/86] e4000: implement PLL lock v4l control

2014-02-09 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

[REVIEW PATCH 65/86] e4000: remove .set_config() which was for controls

2014-02-09 Thread Antti Palosaari
That custom DVB callback is not needed anymore for setting gain controls as those are now implemented using V4L2 control framework. That change was proposed by Mauro. Cc: Mauro Carvalho Chehab Signed-off-by: Antti Palosaari --- drivers/media/tuners/e4000.c | 68

[REVIEW PATCH 70/86] msi3101: use formats defined in V4L2 API

2014-02-09 Thread Antti Palosaari
Switch new formats V4L2_SDR_FMT_CU8 and V4L2_SDR_FMT_CU16LE as those are now defined in API. Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/sdr-msi3101.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr

[REVIEW PATCH 67/86] v4l: reorganize RF tuner control ID numbers

2014-02-09 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

[REVIEW PATCH 74/86] msi3101: provide RF tuner bands from sub-device

2014-02-09 Thread Antti Palosaari
Let the msi001 tuner driver report its frequency bands. Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/sdr-msi3101.c | 48 + 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c b/drivers

[REVIEW PATCH 68/86] DocBook: document RF tuner bandwidth controls

2014-02-09 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

[REVIEW PATCH 73/86] msi001: implement .enum_freq_bands()

2014-02-09 Thread Antti Palosaari
Implement .enum_freq_bands() in order to provide VIDIOC_ENUM_FREQ_BANDS IOCTL from sub-device. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/staging/media/msi3101/msi001.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/staging/media/msi3101/msi001

[REVIEW PATCH 86/86] e4000: convert to Regmap API

2014-02-09 Thread Antti Palosaari
kuil Signed-off-by: Antti Palosaari --- drivers/media/tuners/Kconfig | 1 + drivers/media/tuners/e4000.c | 442 -- drivers/media/tuners/e4000_priv.h | 4 +- 3 files changed, 184 insertions(+), 263 deletions(-) diff --git a/drivers/media/tuners/Kconf

[REVIEW PATCH 81/86] rtl2832: Fix deadlock on i2c mux select function.

2014-02-09 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

[REVIEW PATCH 61/86] MAINTAINERS: add rtl2832_sdr driver

2014-02-09 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

Re: [PATCH] af9035: Move it913x single devices to af9035

2014-02-09 Thread Antti Palosaari
Moi Malcolm! On 09.02.2014 10:59, Malcolm Priestley wrote: On Sat, 2014-02-08 at 16:11 +, Malcolm Priestley wrote: The generic v1 and v2 devices have been all tested. IDs tested USB_PID_ITETECH_IT9135 v1 & v2 USB_PID_ITETECH_IT9135_9005 v1 USB_PID_ITETECH_IT9135_9006 v2 Current Issues The

Re: RFH: Trying to implement support PCTV Quatro Stick 522e

2014-02-09 Thread Antti Palosaari
Moikka Heiko, On 09.02.2014 17:33, Heiko Voigt wrote: Hi, I just purchased a PCTV QuatroStick 522e (2013:025e). Since it is the successor of the 520e I believed that there would probably be Linux support for it, it seems not. ah, first 292e and now that... But I do not want to give up so ea

Re: [PATCH] saa7134: Add support for SnaZio TvPVR PRO

2014-02-09 Thread Antti Palosaari
Moikka! On 10.02.2014 01:44, GEORGE wrote: b/drivers/media/rc/keymaps/rc-snazio-tvpvr-pro.c new file mode 100644 index 000..44f0c81 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-snazio-tvpvr-pro.c @@ -0,0 +1,116 @@ +/* rc-snazio-tvpvr-pro.h - Keytable for snazio_tvpvr_pro Remote Controlle

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

2014-02-10 Thread Antti Palosaari
egistering adapter 0 frontend 0 (Afatech AF9033 (DVB-T))... Feb 9 15:00:54 zly-hugo kernel: [12732.631328] i2c i2c-16: tuner_it913x: ITE Tech IT913X successfully attached -- Dne 9.2.2014 05:57, Antti Palosaari napsal(a): On 09.02.2014 02:42, Antti Palosaari wrote: Moikka! I am

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: [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

[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

[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

[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 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

[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 1/6] v4l: add RF tuner gain controls

2014-02-10 Thread Antti Palosaari
for receiving party (usually demodulator ADC). Each gain stage could be set rather often both manual or automatic (AGC) mode. Due to that add separate controls for controlling operation mode. Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 15 +++ include

[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

[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

[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

[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

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

2014-02-10 Thread Antti Palosaari
-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 include/uapi/linux/v4l2-controls.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index d201f61..e44722b 100644 --- a/drivers/media/v4l2

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

2014-02-10 Thread Antti Palosaari
wise still? Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 5 + include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4

[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

[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

[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

[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 1/8] xc2028: silence compiler warnings

2014-02-10 Thread Antti Palosaari
[-Wswitch] switch (new_type) { ^ drivers/media/tuners/tuner-xc2028.c:1037:2: warning: enumeration value ‘V4L2_TUNER_RF’ not handled in switch [-Wswitch] Cc: Mauro Carvalho Chehab Signed-off-by: Antti Palosaari --- drivers/media/tuners/tuner-xc2028.c | 3 +++ 1 file changed, 3 insertions

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

2014-02-10 Thread Antti Palosaari
is own kernel module). Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 92 +- drivers/media/dvb-frontends/rtl2832.h | 12 drivers/media/dvb-frontends/rtl2832_priv.h | 1 + 3 files changed, 102 insertions(+), 3 deletions

[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

[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

[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

[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

[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

[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

[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

[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 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

[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 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

[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

[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

[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,

[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

[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

[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

[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

[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

[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

[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

[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

[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/tu

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

2014-02-10 Thread Antti Palosaari
-off-by: Antti Palosaari --- drivers/staging/media/Kconfig|2 + drivers/staging/media/Makefile |2 + drivers/staging/media/rtl2832u_sdr/Kconfig |7 + drivers/staging/media/rtl2832u_sdr/Makefile |6 + drivers/staging/media

Re: [PATCH 2/2] af9035: Add remaining it913x dual ids to af9035.

2014-02-11 Thread Antti Palosaari
Moikka Malcolm! Thanks for the patch serie. You removed all IDs from it913x driver. There is possibility to just remove / comment out: MODULE_DEVICE_TABLE(usb, it913x_id_table); which prevents loading that driver automatically, but leaves possibility to load it manually if user wants t

Re: [PATCH 2/2] af9035: Add remaining it913x dual ids to af9035.

2014-02-11 Thread Antti Palosaari
On 11.02.2014 22:32, Malcolm Priestley wrote: On Tue, 2014-02-11 at 19:42 +0200, Antti Palosaari wrote: Moikka Malcolm! Thanks for the patch serie. You removed all IDs from it913x driver. There is possibility to just remove / comment out: MODULE_DEVICE_TABLE(usb, it913x_id_table

Re: PATCH: Added device (0ccd:00b4) to DVB_USB_RTL28XXU media driver

2014-02-11 Thread Antti Palosaari
Moikka Till! Thanks for the 'patch' :) I am not sure how I should handle that as the code itself is valid, but patch is not as it should. If you could make a proper patch, using git commit & git format-patch, it will be nice. But as I understand it could be quite much of learning many things,

Re: [PATCH 3/4] em28xx-i2c: do not map -ENXIO errors to -ENODEV for empty i2c transfers

2014-02-11 Thread Antti Palosaari
On 09.02.2014 20:34, Frank Schäfer wrote: Am 04.02.2014 19:47, schrieb Mauro Carvalho Chehab: Em Sun, 19 Jan 2014 22:48:36 +0100 Frank Schäfer escreveu: Commit e63b009d6e "" changed the error codes i2c ACK errors from -ENODEV to -ENXIO. But it also introduced a line that maps -ENXIO back to

[PATCH FOR 3.14] em28xx-dvb: fix PCTV 461e tuner I2C binding

2014-02-12 Thread Antti Palosaari
Add missing m88ts2022 module reference counts as removing that module is not allowed when it is used by em28xx-dvb module. That same module was not unregistered correctly, fix it too. Error cases validated by returning errors from m88ds3103, m88ts2022 and a8293 probe(). Signed-off-by: Antti

[GIT PULL 3.14] em28xx-dvb m88ts2022 tuner binding fix

2014-02-12 Thread Antti Palosaari
6d56b487e83787e7c532ba8f45de8f71a93aab76: em28xx-dvb: fix PCTV 461e tuner I2C binding (2014-02-12 20:05:05 +0200) Antti Palosaari (1): em28xx-dvb: fix PCTV 461e tuner I2C binding drivers/media/usb/em28xx/em28xx-dvb.c | 27

[REVIEW PATCH] rtl28xxu: add ID [0ccd:00b4] TerraTec NOXON DAB Stick (rev 3)

2014-02-12 Thread Antti Palosaari
manually] Signed-off-by: Till Dörges Signed-off-by: Antti Palosaari --- drivers/media/dvb-core/dvb-usb-ids.h| 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/media/dvb-core/dvb-usb-ids.h b/drivers/media/dvb-core/dvb-usb-ids.h index

[REVIEW PATCH 3/3] tda10071: coding style issues

2014-02-12 Thread Antti Palosaari
Fix some coding style issues, mostly reported by checkpatch.pl. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 60 +++--- drivers/media/dvb-frontends/tda10071.h | 2 +- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a

[REVIEW PATCH 2/3] tda10071: do not check tuner PLL lock on read_status()

2014-02-12 Thread Antti Palosaari
Tuner PLL lock flag was mapped to FE_HAS_SIGNAL, which is wrong. PLL lock has nothing to do with received signal. In real life that flag is always set. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[REVIEW PATCH 1/3] tda10071: remove a duplicative test

2014-02-12 Thread Antti Palosaari
From: Dan Carpenter "ret" is an error code here, we already tested that. Signed-off-by: Dan Carpenter Acked-by: Antti Palosaari Reviewed-by: Antti Palosaari Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 3 +-- 1 file changed, 1 insertion(+), 2

[GIT PULL] tda10071 changes

2014-02-12 Thread Antti Palosaari
a47dd5674fda7c48d693cd785f48f92fcc20b8c9: tda10071: coding style issues (2014-02-12 20:17:33 +0200) Antti Palosaari (2): tda10071: do not check tuner PLL lock on read_status() tda10071: coding style issues Dan Carpenter (1): tda10071

[GIT PULL] rtl28xxu: add ID [0ccd:00b4] TerraTec NOXON DAB Stick (rev 3)

2014-02-12 Thread Antti Palosaari
The following changes since commit 37e59f876bc710d67a30b660826a5e83e07101ce: [media, edac] Change my email address (2014-02-07 08:03:07 -0200) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git rtl28xxu_id for you to fetch changes up to 46a1dac26913fae389e79b7f

[REVIEW PATCH 4/4] af9035: use default i2c slave address for af9035 too

2014-02-12 Thread Antti Palosaari
Some device vendors has forgotten set correct slave demod I2C address to eeprom. Use default I2C address when eeprom has no address at all. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git

[REVIEW PATCH 1/4] af9035: Move it913x single devices to af9035

2014-02-12 Thread Antti Palosaari
ices tune and scan fine. All remotes tested okay. Dual device failed to register second adapter USB_PID_KWORLD_UB499_2T_T09 It is not clear what the problem is at the moment. So only single IDs are transferred in this patch. Signed-off-by: Malcolm Priestley Signed-off-by: Antti Palos

[REVIEW PATCH 2/4] af9035: add default 0x9135 slave I2C address

2014-02-12 Thread Antti Palosaari
From: Malcolm Priestley On some devices the vendor has not set EEPROM_2ND_DEMOD_ADDR. Checks tmp is not zero after call to get EEPROM_2ND_DEMOD_ADDR and sets the default slave address of 0x3a on 0x9135 devices. Signed-off-by: Malcolm Priestley Signed-off-by: Antti Palosaari --- drivers

[REVIEW PATCH 3/4] af9035: Add remaining it913x dual ids to af9035.

2014-02-12 Thread Antti Palosaari
: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 8 drivers/media/usb/dvb-usb-v2/it913x.c | 5 + 2 files changed, 13 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 4f682ad..49e8360 100644 --- a/drivers/media

[GIT PULL] AF9035 / IT9135

2014-02-12 Thread Antti Palosaari
57f53ffd5db1c45f7b5253c1f6fadad7d87715ae: af9035: use default i2c slave address for af9035 too (2014-02-12 21:44:13 +0200) Antti Palosaari (1): af9035: use default i2c slave address for af9035 too Malcolm Priestley (3): af9035: Move it913x

[PATCH 1/2] af9033: implement PID filter

2014-02-13 Thread Antti Palosaari
Implement PID filter and export it via symbol. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 53 drivers/media/dvb-frontends/af9033.h | 19 + 2 files changed, 72 insertions(+) diff --git a/drivers/media/dvb-frontends

[PATCH 2/2] af9035: use af9033 PID filters

2014-02-13 Thread Antti Palosaari
PID filters are property of af9033 demod. Use PID filters from af9033 driver as it provides those now. Allow possible dual mode on USB 1.1 mode too as bandwidth could be just enough when filters are used on both frontends. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035

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

2014-02-14 Thread Antti Palosaari
On 14.02.2014 16:20, Hans Verkuil wrote: Hi Antti, On 02/10/2014 05:17 PM, Antti Palosaari wrote: 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

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

2014-02-14 Thread Antti Palosaari
On 14.02.2014 16:30, Hans Verkuil wrote: On 02/10/2014 05:17 PM, Antti Palosaari wrote: 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

Re: [PATCH] [media] rtl28xxu: add USB ID for Genius TVGo DVB-T03

2014-02-26 Thread Antti Palosaari
Thank for the patch. Even I didn't added any comment to driver ID list, which apparently should be there, that empty line before "Astrometa DVB-T2" entry was there because I wanted to separate RTL2832P entries from RTL2832U entries (different chipset version). So if possible, could you provide

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

2014-02-26 Thread Antti Palosaari
lo, 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 Palosaari napsal(

Re: Unsupported Anysee version

2014-02-26 Thread Antti Palosaari
Moikka Paavo On 14.02.2014 21:14, Paavo Leinonen wrote: Hi, I plugged in an old Anysee DVB-C and got “Unsupported Anysee version” error. The box is Fedora 15 running 3.11.10-100.fc18.x86_64 kernel. Can I do something to get it working or help you to support it? Note: I’m not 100% sure the An

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

2014-02-26 Thread Antti Palosaari
On 26.02.2014 17:10, kap...@mizera.cz wrote: Dne 26.2.2014 14:33, Antti Palosaari napsal(a): Moikka! On 21.02.2014 15:06, kap...@mizera.cz wrote: Hello, == Antti: May I ask, if you have the same one stick? Does it work without problems ? I don't have just similar stick, but I teste

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

2014-02-26 Thread Antti Palosaari
On 14.02.2014 17:02, Hans Verkuil wrote: On 02/11/2014 03:04 AM, Antti Palosaari wrote: 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

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

2014-02-26 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

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

2014-02-26 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 6/8] rtl2832: add muxed I2C adapter for demod itself

2014-02-26 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

<    4   5   6   7   8   9   10   11   12   13   >