[PATCH 13/13] DocBook: add SDR specific info to G_MODULATOR / S_MODULATOR

2015-09-01 Thread Antti Palosaari
Add SDR specific notes to G_MODULATOR / S_MODULATOR documentation. Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/vidioc-g-modulator.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml b/Documentation

[PATCH 03/13] DocBook: document tuner RF gain control

2015-09-01 Thread Antti Palosaari
Add brief description for tuner RF gain control. Acked-by: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 4 Documentation/DocBook/media/v4l/controls.xml | 14 ++ Documentation/DocBook/media/v4l/v4l2.xml | 1 + 3 files

[PATCH 02/13] v4l2: add RF gain control

2015-09-01 Thread Antti Palosaari
has integrated LNA/RF amplifier in any case. Acked-by: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2

[PATCHv4 00/13] SDR transmitter API

2015-09-01 Thread Antti Palosaari
se transmitter device even receiver is active and other way around, just streaming is blocked to single node. * Removed V4L2_CID_RF_TUNER_RF_GAIN_AUTO control as it was not used. * Changed RF gain documentation. Antti Palosaari (13): v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR v4l2: add RF

Re: [PATCH TRY 2] Support for EVOLVEO XtraTV stick

2015-08-31 Thread Antti Palosaari
On 08/31/2015 09:04 PM, CIJOML CIJOMLovic wrote: Hello guys, please find out down this email patch to support EVOLVEO XtraTV stick. This tuner is for android phones with microusb connecter, however with reduction it works perfectly with linux kernel: The device identify itself at USB bus as Bus

Re: [PATCH 2/3] [media] tda10071: use div_s64() when dividing a s64 integer

2015-08-11 Thread Antti Palosaari
On 08/12/2015 01:39 AM, Mauro Carvalho Chehab wrote: Otherwise, it will break on 32 bits archs. Look good! Antti Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c index ee6653124618..119d47596ac8 100644 --- a

Re: [PATCH 09/12] tda10071: use jiffies when poll firmware status

2015-08-11 Thread Antti Palosaari
On 08/11/2015 01:20 PM, Mauro Carvalho Chehab wrote: Em Thu, 9 Jul 2015 07:06:29 +0300 Antti Palosaari escreveu: Use jiffies to set timeout for firmware command status polling. It is more elegant solution than poll X times with sleep. /* wait cmd execution terminate */ - for

Re: [PATCHv3 12/13] DocBook: fix S_FREQUENCY => G_FREQUENCY

2015-08-10 Thread Antti Palosaari
On 08/10/2015 12:41 PM, Hans Verkuil wrote: On 07/31/2015 04:10 AM, Antti Palosaari wrote: It is VIDIOC_G_FREQUENCY which does not use type to identify tuner, not VIDIOC_S_FREQUENCY. VIDIOC_S_FREQUENCY uses both tuner and type fields. One of these V4L API weirdness... Actually, that'

Re: dvb_usb_af9015: command failed=1 _ kernel >= 4.1.x

2015-08-10 Thread Antti Palosaari
On 08/11/2015 12:46 AM, poma wrote: Furthermore, to fix this issue - AF9015 DVB-T USB2.0 stick brokenness - is the responsibility of developers. I am here only proven tester. I hope we understand each other, and this problem will be resolved in good faith. Your patches are implemented wrong.

Re: [PATCH] vb2: revert: vb2: allow requeuing buffers while streaming

2015-07-31 Thread Antti Palosaari
Moikka! On 07/31/2015 05:43 PM, Sakari Ailus wrote: Terve, On Wed, Jul 29, 2015 at 06:29:05PM +0300, Antti Palosaari wrote: commit ce0eff016f7272faa6dc6eec722b1ca1970ff9aa [media] vb2: allow requeuing buffers while streaming That commit causes buf_queue() called on infinity loop when

[PATCHv3 05/13] DocBook: document SDR transmitter

2015-07-30 Thread Antti Palosaari
Add documentation for V4L SDR transmitter (output) devices. Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- Documentation/DocBook/media/v4l/compat.xml | 4 +++ Documentation/DocBook/media/v4l/dev-sdr.xml| 30 +++--- Documentation/DocBook/media/v4l

[PATCHv3 06/13] v4l: add type field to v4l2_modulator struct

2015-07-30 Thread Antti Palosaari
Add type field to that struct like it counterpart v4l2_tuner already has. We need type field to distinguish different tuner types from each others for transmitter too. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ioctl.c | 18 +- include/uapi

[PATCHv3 08/13] hackrf: add control for RF amplifier

2015-07-30 Thread Antti Palosaari
There is Avago MGA-81563 amplifier just right after antenna connector. It could be turned on/off and its gain is around 12dB. Signed-off-by: Antti Palosaari --- drivers/media/usb/hackrf/hackrf.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a

[PATCHv3 04/13] v4l2: add support for SDR transmitter

2015-07-30 Thread Antti Palosaari
New IOCTL ops: vidioc_enum_fmt_sdr_out vidioc_g_fmt_sdr_out vidioc_s_fmt_sdr_out vidioc_try_fmt_sdr_out New vb2 buffertype: V4L2_BUF_TYPE_SDR_OUTPUT New v4l2 capability: V4L2_CAP_SDR_OUTPUT Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 14

[PATCHv3 01/13] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR

2015-07-30 Thread Antti Palosaari
-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 12 Documentation/DocBook/media/v4l/dev-sdr.xml | 6 +++--- Documentation/DocBook/media/v4l/v4l2.xml| 7 +++ drivers/media/v4l2-core/v4l2-ioctl.c| 6 +++--- include/uapi/linux/videodev2.h

[PATCHv3 09/13] hackrf: switch to single function which configures everything

2015-07-30 Thread Antti Palosaari
Implement single funtion, hackrf_set_params(), which handles all needed settings. Controls and other IOCTLs are just wrappers to that function. That way we can get easily better control what we could do on different device states - sleeping, receiving, transmitting. Signed-off-by: Antti Palosaari

[PATCHv3 03/13] DocBook: document tuner RF gain control

2015-07-30 Thread Antti Palosaari
Add brief description for tuner RF gain control. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 4 Documentation/DocBook/media/v4l/controls.xml | 14 ++ Documentation/DocBook/media/v4l/v4l2.xml | 1 + 3 files changed

[PATCHv3 10/13] hackrf: add support for transmitter

2015-07-30 Thread Antti Palosaari
HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to existing receiver only driver. Cc: Hans Verkuil Signed-off-by: Antti Palosaari

[PATCHv3 12/13] DocBook: fix S_FREQUENCY => G_FREQUENCY

2015-07-30 Thread Antti Palosaari
It is VIDIOC_G_FREQUENCY which does not use type to identify tuner, not VIDIOC_S_FREQUENCY. VIDIOC_S_FREQUENCY uses both tuner and type fields. One of these V4L API weirdness... Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/common.xml | 2 +- 1 file

[PATCHv3 13/13] DocBook: add tuner types SDR and RF for G_TUNER / S_TUNER

2015-07-30 Thread Antti Palosaari
Add V4L2_TUNER_SDR and V4L2_TUNER_RF to supported tuner types to table. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/vidioc-g-tuner.xml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/DocBook/media/v4l/vidioc-g-tuner.xml b

[PATCHv3 07/13] DocBook: add modulator type field

2015-07-30 Thread Antti Palosaari
Add new modulator type field to documentation. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/vidioc-g-modulator.xml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v4l/vidioc-g-modulator.xml b

[PATCHv3 11/13] hackrf: do not set human readable name for formats

2015-07-30 Thread Antti Palosaari
Format names are set by core nowadays. Remove name from driver. Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/usb/hackrf/hackrf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index f4b5606

[PATCHv3 02/13] v4l2: add RF gain control

2015-07-30 Thread Antti Palosaari
has integrated LNA/RF amplifier in any case. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core

[PATCHv3 00/13] SDR transmitter API

2015-07-30 Thread Antti Palosaari
V4L2_CID_RF_TUNER_RF_GAIN_AUTO control as it was not used. * Changed RF gain documentation. Antti Palosaari (13): v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR v4l2: add RF gain control DocBook: document tuner RF gain control v4l2: add support for SDR transmitter DocBook: document SDR

[PATCH] vb2: revert: vb2: allow requeuing buffers while streaming

2015-07-29 Thread Antti Palosaari
commit ce0eff016f7272faa6dc6eec722b1ca1970ff9aa [media] vb2: allow requeuing buffers while streaming That commit causes buf_queue() called on infinity loop when start_streaming() returns error. On that case resources are eaten quickly and machine crashes. Cc: Hans Verkuil Signed-off-by: Antti

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-28 Thread Antti Palosaari
On 07/28/2015 10:06 AM, Hans Verkuil wrote: On 07/28/2015 02:50 AM, Antti Palosaari wrote: On 07/27/2015 11:38 PM, Hans Verkuil wrote: On 07/27/2015 10:21 PM, Antti Palosaari wrote: On 07/17/2015 05:43 PM, Hans Verkuil wrote: On 07/16/2015 09:04 AM, Antti Palosaari wrote: HackRF SDR device

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-27 Thread Antti Palosaari
On 07/27/2015 11:38 PM, Hans Verkuil wrote: On 07/27/2015 10:21 PM, Antti Palosaari wrote: On 07/17/2015 05:43 PM, Hans Verkuil wrote: On 07/16/2015 09:04 AM, Antti Palosaari wrote: HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-27 Thread Antti Palosaari
On 07/17/2015 05:43 PM, Hans Verkuil wrote: On 07/16/2015 09:04 AM, Antti Palosaari wrote: HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to

Re: [PATCHv2 8/9] hackrf: add support for transmitter

2015-07-27 Thread Antti Palosaari
On 07/17/2015 05:15 PM, Hans Verkuil wrote: On 07/16/2015 09:04 AM, Antti Palosaari wrote: HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to

[GIT PULL] a8293 & tda10071 improvements

2015-07-27 Thread Antti Palosaari
2505ec5f7a1bb40fa1a86184779884c32a619473: tda10071: implement DVBv5 statistics (2015-07-27 14:32:23 +0300) Antti Palosaari (12): em28xx: remove unused a8293 SEC config a8293: remove legacy media attach a8293: use

[PATCH 2/6] mt2060: add param to split long i2c writes

2015-07-27 Thread Antti Palosaari
Add configuration parameter to split long i2c writes as some I2C adapters cannot write 10 bytes used as a one go. Signed-off-by: Antti Palosaari --- drivers/media/tuners/mt2060.c | 21 + drivers/media/tuners/mt2060.h | 3 +++ drivers/media/tuners/mt2060_priv.h

[PATCH 0/6] ZyDAS ZD1301 DVB-T demod + USB IF driver

2015-07-27 Thread Antti Palosaari
aving price ticket near 100 euros. Since then it has been on my drawer waiting for some spare time... Antti Antti Palosaari (6): mt2060: add i2c bindings mt2060: add param to split long i2c writes zd1301_demod: ZyDAS ZD1301 DVB-T demodulator driver MAINTAINERS: add zd1301_demod driver z

[PATCH 1/6] mt2060: add i2c bindings

2015-07-27 Thread Antti Palosaari
Add proper i2c driver model bindings. Signed-off-by: Antti Palosaari --- drivers/media/tuners/mt2060.c | 83 ++ drivers/media/tuners/mt2060.h | 20 + drivers/media/tuners/mt2060_priv.h | 2 + 3 files changed, 105 insertions(+) diff --git a

[PATCH 3/6] zd1301_demod: ZyDAS ZD1301 DVB-T demodulator driver

2015-07-27 Thread Antti Palosaari
ZyDAS ZD1301 is chip having USB interface and DVB-T demodulator integrated. This driver is for demodulator part. Driver is very reduced, just basic demodulator functionality, no statistics at all. It registers as a platform driver to driver core. Signed-off-by: Antti Palosaari --- drivers/media

[PATCH 6/6] MAINTAINERS: add zd1301 DVB USB interface driver

2015-07-27 Thread Antti Palosaari
DVB USB interface driver for ZyDAS ZD1301 chip. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5d92ef..7bbcff5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11405,6 +11405,16 @@ T: git git

[PATCH 4/6] MAINTAINERS: add zd1301_demod driver

2015-07-27 Thread Antti Palosaari
DVB-T demodulator driver for ZyDAS ZD1301 chip. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2bb989b..d5d92ef 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11395,6 +11395,16 @@ L: zd1211-d

[PATCH 5/6] zd1301: ZyDAS ZD1301 DVB USB interface driver

2015-07-27 Thread Antti Palosaari
ZyDAS ZD1301 is chip having USB interface and DVB-T demodulator integrated. This driver is for USB interface part. Device has USB ID 0ace:13a1. Used tuner is MT2060. Signed-off-by: Antti Palosaari --- drivers/media/dvb-core/dvb-usb-ids.h | 1 + drivers/media/usb/dvb-usb-v2/Kconfig | 8

Re: Adding support for three new Hauppauge HVR-1275 variants - testers reqd.

2015-07-20 Thread Antti Palosaari
On 07/20/2015 08:14 PM, Steven Toth wrote: On Mon, Jul 20, 2015 at 12:54 PM, Antti Palosaari wrote: On 07/20/2015 07:45 PM, Devin Heitmueller wrote: Look at the em28xx driver and you will probably see why it does not work as expected. For my eyes, according to em28xx driver, it looks like

Re: Adding support for three new Hauppauge HVR-1275 variants - testers reqd.

2015-07-20 Thread Antti Palosaari
On 07/20/2015 07:45 PM, Devin Heitmueller wrote: Look at the em28xx driver and you will probably see why it does not work as expected. For my eyes, according to em28xx driver, it looks like that bus control is aimed for bridge driver. You or em28xx is wrong. Neither are wrong. In some cases th

Re: Adding support for three new Hauppauge HVR-1275 variants - testers reqd.

2015-07-20 Thread Antti Palosaari
On 07/20/2015 06:00 PM, Steven Toth wrote: On Mon, Jul 20, 2015 at 10:30 AM, Antti Palosaari wrote: On 07/19/2015 01:21 AM, Steven Toth wrote: http://git.linuxtv.org/cgit.cgi/stoth/hvr1275.git/log/?h=hvr-1275 Patches above are available for test. Antti, note the change to SI2168 to add

Re: Adding support for three new Hauppauge HVR-1275 variants - testers reqd.

2015-07-20 Thread Antti Palosaari
On 07/19/2015 01:21 AM, Steven Toth wrote: http://git.linuxtv.org/cgit.cgi/stoth/hvr1275.git/log/?h=hvr-1275 Patches above are available for test. Antti, note the change to SI2168 to add support for enabling and disabling the SI2168 transport bus dynamically. I've tested with a combo card, swi

Re: [PATCH 2/9] v4l2: add RF gain control

2015-07-16 Thread Antti Palosaari
On 06/08/2015 12:03 PM, Hans Verkuil wrote: On 06/06/2015 02:03 PM, Antti Palosaari wrote: Add new RF tuner gain control named RF gain. That is aimed for external LNA (amplifier) chip just right after antenna connector. I don't follow. Do you mean: This feeds into the external LNA... B

Re: [PATCH 8/9] hackrf: add support for transmitter

2015-07-16 Thread Antti Palosaari
Moikka! On 06/08/2015 12:26 PM, Hans Verkuil wrote: Hi Antti, I've got one comment: On 06/06/2015 02:03 PM, Antti Palosaari wrote: HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex oper

[PATCHv2 6/9] hackrf: add control for RF amplifier

2015-07-16 Thread Antti Palosaari
There is Avago MGA-81563 amplifier just right after antenna connector. It could be turned on/off and its gain is around 12dB. Signed-off-by: Antti Palosaari --- drivers/media/usb/hackrf/hackrf.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a

[PATCHv2 8/9] hackrf: add support for transmitter

2015-07-16 Thread Antti Palosaari
HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to existing receiver only driver. Cc: Hans Verkuil Signed-off-by: Antti Palosaari

[PATCHv2 4/9] v4l2: add support for SDR transmitter

2015-07-16 Thread Antti Palosaari
New IOCTL ops: vidioc_enum_fmt_sdr_out vidioc_g_fmt_sdr_out vidioc_s_fmt_sdr_out vidioc_try_fmt_sdr_out New vb2 buffertype: V4L2_BUF_TYPE_SDR_OUTPUT New v4l2 capability: V4L2_CAP_SDR_OUTPUT Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 14

[PATCHv2 3/9] DocBook: document tuner RF gain control

2015-07-16 Thread Antti Palosaari
Add brief description for tuner RF gain control. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 4 Documentation/DocBook/media/v4l/controls.xml | 14 ++ Documentation/DocBook/media/v4l/v4l2.xml | 1 + 3 files changed

[PATCHv2 9/9] hackrf: do not set human readable name for formats

2015-07-16 Thread Antti Palosaari
Format names are set by core nowadays. Remove name from driver. Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- drivers/media/usb/hackrf/hackrf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index

[PATCHv2 7/9] hackrf: switch to single function which configures everything

2015-07-16 Thread Antti Palosaari
Implement single funtion, hackrf_set_params(), which handles all needed settings. Controls and other IOCTLs are just wrappers to that function. That way we can get easily better control what we could do on different device states - sleeping, receiving, transmitting. Signed-off-by: Antti Palosaari

[PATCHv2 0/9] SDR transmitter API

2015-07-16 Thread Antti Palosaari
. regards Antti Antti Palosaari (9): v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR v4l2: add RF gain control DocBook: document tuner RF gain control v4l2: add support for SDR transmitter DocBook: document SDR transmitter hackrf: add control for RF amplifier hackrf: switch to single

[PATCHv2 5/9] DocBook: document SDR transmitter

2015-07-16 Thread Antti Palosaari
Add documentation for V4L SDR transmitter (output) devices. Signed-off-by: Antti Palosaari Acked-by: Hans Verkuil --- Documentation/DocBook/media/v4l/compat.xml | 4 +++ Documentation/DocBook/media/v4l/dev-sdr.xml| 30 +++--- Documentation/DocBook/media/v4l

[PATCHv2 1/9] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR

2015-07-16 Thread Antti Palosaari
-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 12 Documentation/DocBook/media/v4l/dev-sdr.xml | 6 +++--- Documentation/DocBook/media/v4l/v4l2.xml| 7 +++ drivers/media/v4l2-core/v4l2-ioctl.c| 6 +++--- include/uapi/linux/videodev2.h

[PATCHv2 2/9] v4l2: add RF gain control

2015-07-16 Thread Antti Palosaari
has integrated LNA/RF amplifier in any case. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ include/uapi/linux/v4l2-controls.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core

[PATCH 08/12] tda10071: convert to regmap I2C API

2015-07-08 Thread Antti Palosaari
Use regmap API for I2C operations. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 1 + drivers/media/dvb-frontends/tda10071.c | 263 +--- drivers/media/dvb-frontends/tda10071_priv.h | 2 + 3 files changed, 87 insertions(+), 179

[PATCH 03/12] a8293: use i2c_master_send / i2c_master_recv for I2C I/O

2015-07-08 Thread Antti Palosaari
As driver is now proper I2C client driver, we could use correct functions for I2C I/O. Also rename state from priv to dev. Fix logging too. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 80 + 1 file changed, 18 insertions(+), 62

[PATCH 12/12] tda10071: implement DVBv5 statistics

2015-07-08 Thread Antti Palosaari
Implement DVBv5 CNR, signal strength, BER and block errors. Wrap legacy DVBv3 statistics to DVBv5 internally. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 258 ++-- drivers/media/dvb-frontends/tda10071_priv.h | 7 +- 2 files changed

[PATCH 06/12] tda10071: remove legacy media attach

2015-07-08 Thread Antti Palosaari
All users are now using I2C binding and old attach could be removed. Use I2C client for proper logging at the same. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 275 ++-- drivers/media/dvb-frontends/tda10071.h | 63

[PATCH 07/12] tda10071: rename device state struct to dev

2015-07-08 Thread Antti Palosaari
Rename device state struct from 'priv' to 'dev'. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 268 ++-- drivers/media/dvb-frontends/tda10071_priv.h | 2 +- 2 files changed, 135 insertions(+), 135 deletions(-)

[PATCH 10/12] tda10071: protect firmware command exec with mutex

2015-07-08 Thread Antti Palosaari
There should be clearly some lock in order to make sure firmware command in execution is not disturbed by another command. It has worked as callbacks are serialized somehow pretty well and command execution happens usually without any delays. Signed-off-by: Antti Palosaari --- drivers/media/dvb

[PATCH 11/12] tda10071: do not get_frontend() when not ready

2015-07-08 Thread Antti Palosaari
This is a bit hack, but returning error when driver is not tuned yet causes DVBv5 zap stop polling DVBv5 statistics. Thus return 0 even callback is called during invalid device state. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 2 +- 1 file changed, 1 insertion

[PATCH 02/12] a8293: remove legacy media attach

2015-07-08 Thread Antti Palosaari
Remove legacy media attach as all users are on I2C bindings now. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 63 + drivers/media/dvb-frontends/a8293.h | 18 --- 2 files changed, 1 insertion(+), 80 deletions(-) diff --git

[PATCH 09/12] tda10071: use jiffies when poll firmware status

2015-07-08 Thread Antti Palosaari
Use jiffies to set timeout for firmware command status polling. It is more elegant solution than poll X times with sleep. Shorten timeout to 30ms as all commands seems to be executed under 10ms. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 15 +-- 1

[PATCH 04/12] a8293: improve LNB register programming logic

2015-07-08 Thread Antti Palosaari
On power-on LNB power supply voltage is disabled, due to that no need to disable it during probe. Tone is supply is hard-coded as external tone coming from the demodulator. Program both voltage and tone on set_voltage(). Use register cache to prevent unneeded programming. Signed-off-by: Antti

[PATCH 01/12] em28xx: remove unused a8293 SEC config

2015-07-08 Thread Antti Palosaari
Devices that were using a8293 SEC are converted to I2C platform data thus that old config structure is left unused. Signed-off-by: Antti Palosaari --- drivers/media/usb/em28xx/em28xx-dvb.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers

[PATCH 05/12] a8293: coding style issues

2015-07-08 Thread Antti Palosaari
Remove FSF address from license. Indent parameter correctly. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/a8293.c | 6 +- drivers/media/dvb-frontends/a8293.h | 4 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/media/dvb-frontends/a8293.c b

[GIT PULL] ts2020 changes (+few more)

2015-06-10 Thread Antti Palosaari
66baf807b9d4bfe2b7c246058bbffd8592e0abb8: lmedm04: Enable dont_poll for TS2020 tuner. (2015-06-10 12:38:58 +0300) Antti Palosaari (7): ts2020: re-implement PLL calculations ts2020: improve filter limit calc ts2020

Re: About Si2168 Part, Revision and ROM detection.

2015-06-08 Thread Antti Palosaari
On 06/09/2015 01:14 AM, Unembossed Name wrote: First of all, unfortunately I don't any other chip revisions than B40, but these sniffs I found somewhere on my logs (replies to command 0x02): Si2168 40 "\x80\x42\x44\x34\x30\x02\x00\x00\x00\x00\x00\x00\x01" Si2168 20 "\x80\x41\x44\x33\x30\x02\x0

Re: About Si2168 Part, Revision and ROM detection.

2015-06-08 Thread Antti Palosaari
On 06/06/2015 08:03 AM, Unembossed Name wrote: Information below was given by a hardware vendor, who uses these demodulators on their dvb-t2 products. As an explanation on our questions for Si2168 Linux driver development. I think it can give more clue with Part, Revision and ROM detection algori

Re: Obtain Si2157 and LGDT3306A signal stats from HVR955Q?

2015-06-08 Thread Antti Palosaari
Moikka! On 06/08/2015 01:21 AM, Doug Lung wrote: Hello! this is my first post here, although I've benefited from all the work of the contributors over the year. Thanks! I'm looking for help getting similar signal statistics from the new Hauppauge HVR955Q (Si2157, LGDT3306A, CX23102) USB ATSC tu

Re: Si2168 B40 frimware.

2015-06-06 Thread Antti Palosaari
On 06/06/2015 11:02 PM, Unembossed Name wrote: Anybody want to test it? Unfortunately, I can not do it myself, because I do not own hardware with B40 revision. That does not even download. It looks like 17 byte chunk format, but it does not divide by 17. Probably there is some bytes missing or

Re: Si2168 B40 frimware.

2015-06-06 Thread Antti Palosaari
On 06/06/2015 06:28 AM, Unembossed Name wrote: Hi, Yesterday I extracted a new firmware for Si2168 B40 rev. from Windows driver. It's designed for ROM version 4.0.2 and has a version build 4.0.19 Here is a name of file:dvb-demod-si2168-b40-rom4_0_2-patch-build4_0_19.fw.tar.gz And a link for down

Re: si2168/dvbsky - blind-scan for DVB-T2 with PLP fails

2015-06-06 Thread Antti Palosaari
antenna or the stick, after reinstalling the dvbsky-driver, it found all four T2-muxes on the first try. On 04.06.2015 21:28, Antti Palosaari wrote: On 06/04/2015 08:36 PM, Hurda wrote: How can I enable debug-output to get the log-messages like http://git.linuxtv.org/cgit.cgi/media_tree.git/t

[PATCH 8/9] hackrf: add support for transmitter

2015-06-06 Thread Antti Palosaari
HackRF SDR device has both receiver and transmitter. There is limitation that receiver and transmitter cannot be used at the same time (half-duplex operation). That patch implements transmitter support to existing receiver only driver. Cc: Hans Verkuil Signed-off-by: Antti Palosaari

[PATCH 4/9] v4l2: add support for SDR transmitter

2015-06-06 Thread Antti Palosaari
New IOCTL ops: vidioc_enum_fmt_sdr_out vidioc_g_fmt_sdr_out vidioc_s_fmt_sdr_out vidioc_try_fmt_sdr_out New vb2 buffertype: V4L2_BUF_TYPE_SDR_OUTPUT New v4l2 capability: V4L2_CAP_SDR_OUTPUT Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-dev.c | 14

[PATCH 3/9] DocBook: document tuner RF gain control

2015-06-06 Thread Antti Palosaari
Add brief description for tuner RF gain control. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 4 Documentation/DocBook/media/v4l/controls.xml | 19 +++ Documentation/DocBook/media/v4l/v4l2.xml | 1 + 3 files

[PATCH 7/9] hackrf: switch to single function which configures everything

2015-06-06 Thread Antti Palosaari
Implement single funtion, hackrf_set_params(), which handles all needed settings. Controls and other IOCTLs are just wrappers to that function. That way we can get easily better control what we could do on different device states - sleeping, receiving, transmitting. Signed-off-by: Antti Palosaari

[PATCH 1/9] v4l2: rename V4L2_TUNER_ADC to V4L2_TUNER_SDR

2015-06-06 Thread Antti Palosaari
-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 12 Documentation/DocBook/media/v4l/dev-sdr.xml | 6 +++--- Documentation/DocBook/media/v4l/v4l2.xml| 7 +++ drivers/media/v4l2-core/v4l2-ioctl.c| 6 +++--- include/uapi/linux/videodev2.h

[PATCH 2/9] v4l2: add RF gain control

2015-06-06 Thread Antti Palosaari
Add new RF tuner gain control named RF gain. That is aimed for external LNA (amplifier) chip just right after antenna connector. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 include/uapi/linux/v4l2-controls.h | 2 ++ 2 files changed, 6

[PATCH 9/9] hackrf: do not set human readable name for formats

2015-06-06 Thread Antti Palosaari
Format names are set by core nowadays. Remove name from driver. Signed-off-by: Antti Palosaari --- drivers/media/usb/hackrf/hackrf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index 6ad6937..1f9483d 100644 --- a

[PATCH 6/9] hackrf: add control for RF amplifier

2015-06-06 Thread Antti Palosaari
There is Avago MGA-81563 amplifier just right after antenna connector. It could be turned on/off and its gain is around 12dB. Signed-off-by: Antti Palosaari --- drivers/media/usb/hackrf/hackrf.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a

[PATCH 5/9] DocBook: document SDR transmitter

2015-06-06 Thread Antti Palosaari
Add documentation for V4L SDR transmitter (output) devices. Cc: Hans Verkuil Signed-off-by: Antti Palosaari --- Documentation/DocBook/media/v4l/compat.xml | 4 +++ Documentation/DocBook/media/v4l/dev-sdr.xml| 30 +++--- Documentation/DocBook/media/v4l/io.xml

[PATCH 2/8] ts2020: improve filter limit calc

2015-06-06 Thread Antti Palosaari
* We don't need calculate channel bandwidth from symbol rate as it is calculated by DVB core. * Use clamp() to force upper/lower limit of filter 3dB frequency. Upper limit should never exceeded 40MHz (80MHz BW) in any case, though... Signed-off-by: Antti Palosaari --- drivers/medi

[PATCH 3/8] ts2020: register I2C driver from legacy media attach

2015-06-06 Thread Antti Palosaari
-by: Antti Palosaari --- drivers/media/dvb-frontends/ts2020.c | 73 drivers/media/dvb-frontends/ts2020.h | 7 +++- 2 files changed, 30 insertions(+), 50 deletions(-) diff --git a/drivers/media/dvb-frontends/ts2020.c b/drivers/media/dvb-frontends/ts2020.c index

[PATCH 5/8] ts2020: Add a comment about lifetime of on-stack pdata in ts2020_attach()

2015-06-06 Thread Antti Palosaari
ed in ts2020_probe() and this is only called ts2020_attach()'s stack frame exists. Signed-off-by: David Howells Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/ts2020.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/ts2020.c b/drivers

[PATCH 4/8] ts2020: convert to regmap I2C API

2015-06-06 Thread Antti Palosaari
Use regmap to cover I2C register access. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 3 +- drivers/media/dvb-frontends/ts2020.c | 260 --- 2 files changed, 124 insertions(+), 139 deletions(-) diff --git a/drivers/media/dvb

[PATCH 8/8] em28xx: PCTV 461e use I2C client for demod and SEC

2015-06-06 Thread Antti Palosaari
Use I2C client binding for demod and SEC. Signed-off-by: Antti Palosaari --- drivers/media/usb/em28xx/em28xx-dvb.c | 136 +- 1 file changed, 83 insertions(+), 53 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx

[PATCH 1/8] ts2020: re-implement PLL calculations

2015-06-06 Thread Antti Palosaari
Used frequency synthesizer is simple Integer-N PLL, with configurable reference divider, output divider and of course N itself. Old calculations were working fine, but not so easy to understand. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/ts2020.c | 76

[PATCH 7/8] m88ds3103: use regmap for I2C register access

2015-06-06 Thread Antti Palosaari
Use regmap for I2C register access. Remove own I2C repeated mutex as it should not be needed. I2C adapter lock is already taken when I2C mux adapter is called, no need for double locking. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 1 + drivers/media/dvb

[PATCH 6/8] m88ds3103: rename variables and correct logging

2015-06-06 Thread Antti Palosaari
Rename driver state from priv to dev. Use I2C client for correct logging. Use adapter and address from I2C client structure where needed. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 2 +- drivers/media/dvb-frontends/m88ds3103.c | 538

[GIT PULL 4.2] error handling fixes

2015-06-06 Thread Antti Palosaari
atus when probe() fails (2015-06-06 14:15:34 +0300) ---- Antti Palosaari (2): tda10071: add missing error status when probe() fails fc2580: add missing error status when probe() fails Dan Carpenter (1): m88ds3103: a co

[PATCH 1/2] tda10071: add missing error status when probe() fails

2015-06-06 Thread Antti Palosaari
We must return -ENODEV error on case probe() fails to detect chip. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/tda10071.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb

[PATCH 2/2] fc2580: add missing error status when probe() fails

2015-06-06 Thread Antti Palosaari
We must return -ENODEV error on case probe() fails to detect chip. Signed-off-by: Antti Palosaari --- drivers/media/tuners/fc2580.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index db21902..12f916e 100644 --- a/drivers/media

Re: [PATCH 2/2] Revert "[media] saa7164: Improvements for I2C handling"

2015-06-06 Thread Antti Palosaari
: Antti Palosaari Antti --- drivers/media/pci/saa7164/saa7164-api.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-api.c b/drivers/media/pci/saa7164/saa7164-api.c index e807703..e7e586c 100644 --- a/drivers/media/pci/saa7164

Re: [PATCH 1/2] saa7164: change Si2168 reglen to 0 bit

2015-06-06 Thread Antti Palosaari
On 06/06/2015 10:44 AM, Olli Salonen wrote: The i2c_reg_len for Si2168 should be 0 for correct I2C communication. Signed-off-by: Olli Salonen Reviewed-by: Antti Palosaari PS. As I mentioned few times already, that kind I2C client register map layout information does not belongs to adapter

Re: [PATCH][media] SI2168: Resolve unknown chip version errors with different HVR22x5 models

2015-06-05 Thread Antti Palosaari
On 06/05/2015 04:40 PM, Olli Salonen wrote: Hi Steven, It seems to me that that part of the code is identical to your driver, no? The media_tree driver: retval = saa7164_api_i2c_read(bus, msgs[i].addr, 0 /* reglen */, NULL /* re

Re: [ATTN 0/9] SDR transmitter API

2015-06-05 Thread Antti Palosaari
On 06/05/2015 12:50 PM, Hans Verkuil wrote: Hi Antti, FYI: don't use ATTN as prefix: patchwork doesn't pick that up as a patch, and if it doesn't appear there, then it is likely to be forgotten. Can you repost it with the correct prefix? It's so much easier to process for me if it ends up in pa

Re: si2168/dvbsky - blind-scan for DVB-T2 with PLP fails

2015-06-04 Thread Antti Palosaari
'module si2168 =pft' > /sys/kernel/debug/dynamic_debug/control Antti Am 28.05.2015 07:26, schrieb Antti Palosaari: On 05/28/2015 01:27 AM, Hurda wrote: Hello. I think I came across a bug in either of the drivers si2168 and dvbsky regarding blind-scanning DVB-T2-frequencies. HW

Re: [PATCH][media] SI2168: Resolve unknown chip version errors with different HVR22x5 models

2015-06-04 Thread Antti Palosaari
ring that Antti points out. I do have Si2168 devices that have the A20, A30 and B40 firmwares. Also, for all these chips I can find some references in the internet. There's nothing regarding a Si2168-D40 (which is not a conclusive proof that one would not exist, of course). Cheers, -olli

Re: [PATCH][media] SI2168: Resolve unknown chip version errors with different HVR22x5 models

2015-06-04 Thread Antti Palosaari
On 06/04/2015 03:38 PM, Steven Toth wrote: We're seeing a mix of SI2168 demodulators appearing on HVR2205 and HVR2215 cards, the chips are stamped with different build dates, verified on my cards. The si2168 driver detects some cards fine, others not at all. I can reproduce the working and non-w

Re: Hauppauge WinTV-HVR2205 driver feedback

2015-06-03 Thread Antti Palosaari
On 06/03/2015 10:08 PM, Olli Salonen wrote: I cold booted my number cruncher after a hiatus of a couple of weeks, applied a couple of extra dev_dbg printouts in the si2168_cmd_execute and installed the newly built module. The results: [ 663.147757] si2168 2-0066: Silicon Labs Si2168 successfull

<    1   2   3   4   5   6   7   8   9   10   >