[PATCH 2/3] mn88472: implement cnr statistics

2017-03-17 Thread Antti Palosaari
Implement DVBv5 CNR. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/mn88472.c | 90 +- drivers/media/dvb-frontends/mn88472_priv.h | 1 + 2 files changed, 88 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88472.c b

Re: [PATCH 12/13] [media] tuners/tda18212: add flag for retrying tuner init on failure

2017-03-13 Thread Antti Palosaari
On 03/07/2017 08:57 PM, Daniel Scheller wrote: From: Daniel Scheller Taken from tda18212dd, first read after cold reset sometimes fails on some cards, trying twice shall do the trick. This is the case with the STV0367 demods soldered on the CineCTv6 bridge boards and older DuoFlex CT modules.

Re: [PATCH v3 0/3] Add support for MyGica T230C DVB-T2 stick

2017-03-03 Thread Antti Palosaari
On 03/03/2017 08:35 PM, Brüns, Stefan wrote: On Fr, 2017-02-17 at 01:55 +0100, Stefan Brüns wrote: The required command sequence for the new tuner (Si2141) was traced from the current Windows driver and verified with a small python script/libusb. The changes to the Si2168 and dvbsky driver are m

Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-16 Thread Antti Palosaari
On 02/16/2017 10:48 AM, Antti Palosaari wrote: On 02/16/2017 01:31 AM, Stefan Bruens wrote: +/* attach demod */ +memset(&si2168_config, 0, sizeof(si2168_config)); prefer sizeof dst You mean sizeof(struct si2168_config) ? yeah. See chapter 14 from kernel coding s

Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-16 Thread Antti Palosaari
coding style. Old code could be bad, but imho you could make new code better even it makes existing diver coding style slightly inconsistent. On Mittwoch, 15. Februar 2017 10:27:09 CET Antti Palosaari wrote: On 02/15/2017 03:51 AM, Stefan Brüns wrote: [...] diff --git a/drivers/media/usb/dvb

Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-15 Thread Antti Palosaari
On 02/15/2017 03:51 AM, Stefan Brüns wrote: Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168 bridge/demodulator combo as the other devices supported by the driver, but uses the Si2141 tuner. Several DVB-T (MPEG2) and DVB-T2 (H.265) channels were tested, as well as the include

Re: [PATCH 2/3] si2157: Si2141/2151 tuner support.

2017-02-12 Thread Antti Palosaari
ner driver + * Silicon Labs Si2141/2146/2147/2148/2151/2157/2158 silicon tuner driver * * Copyright (C) 2014 Antti Palosaari * @@ -75,6 +75,7 @@ static int si2157_cmd_execute(struct i2c_client *client, struct si2157_cmd *cmd) return ret; } +#define MAX_RESET_ATTEMPTS 10 static int s

Re: [PATCH 0/3] Add support for MyGica T230C DVB-T2 stick

2017-02-12 Thread Antti Palosaari
On 02/12/2017 05:26 PM, Stefan Brüns wrote: The required command sequence for the new tuner (Si2141) was traced from the current Windows driver and verified with a small python script/libusb. The changes to the Si2168 and cxusb driver are mostly addition of the required IDs and some glue code. S

Re: [PATCH 2/2] [media] cx231xx: Fix I2C on Internal Master 3 Bus

2017-02-12 Thread Antti Palosaari
On 02/07/2017 09:35 PM, Oleh Kravchenko wrote: Internal Master 3 Bus can send and receive only 4 bytes per time. Signed-off-by: Oleh Kravchenko --- drivers/media/usb/cx231xx/cx231xx-core.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/cx231xx/cx231

Re: rtl2832_sdr and /dev/swradio0

2017-02-01 Thread Antti Palosaari
On 01/31/2017 07:50 PM, Russel Winder wrote: Hi, Is anyone actively working on the rtl2832_sdr driver? I am particularly interested in anyone who has code for turning the byte stream from /dev/swradio0 into an ETI stream. Or failing that getting enough data about the API for using /dev/swradio0

[GIT PULL 4.11] drop unused hd29l2 driver

2017-02-01 Thread Antti Palosaari
aacb6916b411c17d8372a5da46f94b39c5fd297a: hd29l2: remove unused driver (2017-01-27 19:25:19 +0200) Antti Palosaari (2): MAINTAINERS: remove hd29l2 hd29l2: remove unused driver MAINTAINERS

[GIT PULL 4.11] zd1301 usb interface + dvb-t demod driver

2017-02-01 Thread Antti Palosaari
3b58fcff6d2578f83be4eb018274d6e82fcef426: mt2060: implement sleep (2017-01-27 18:44:37 +0200) Antti Palosaari (7): mt2060: add i2c bindings mt2060: add param to split long i2c writes zd1301_demod: ZyDAS ZD1301 DVB-T demodulator driver

[GIT PULL 4.11] af9035 misc changes

2017-01-27 Thread Antti Palosaari
935e7e49e1cdf6f4c9beb1366c060fb1226c23ae: af9033: estimate cnr from formula (2016-12-19 18:38:23 +0200) Antti Palosaari (10): af9035: read and store whole eeprom af9033: convert to regmap api af9033: use 64-bit div

[GIT PULL 4.11] si2168 ber and ucb statistics

2017-01-27 Thread Antti Palosaari
7a6d7b07e36a8161b56924d7e18a00f1b7e2436a: si2168: implement ucb statistics (2016-12-19 19:55:15 +0200) Antti Palosaari (2): si2168: implement ber statistics si2168: implement ucb statistics drivers/media/dvb-frontends

[PATCH 1/2] MAINTAINERS: remove hd29l2

2017-01-27 Thread Antti Palosaari
Drop unused driver. Signed-off-by: Antti Palosaari --- MAINTAINERS | 10 -- 1 file changed, 10 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 52cc077..761a3cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5595,16 +5595,6 @@ L: linux-par...@vger.kernel.org S

[PATCH 2/2] hd29l2: remove unused driver

2017-01-27 Thread Antti Palosaari
Remove unused demod driver. Device that used it never went public. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 7 - drivers/media/dvb-frontends/Makefile | 1 - drivers/media/dvb-frontends/hd29l2.c | 870 -- drivers

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

2017-01-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 v3 6/7] MAINTAINERS: add zd1301 DVB USB interface driver

2017-01-27 Thread Antti Palosaari
DVB USB interface driver for ZyDAS ZD1301 chip. Signed-off-by: Antti Palosaari --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 26ae0ac..101be59 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13389,6 +13389,15 @@ Q: https

[PATCH v3 7/7] mt2060: implement sleep

2017-01-27 Thread Antti Palosaari
devices and it seems to be working, but I still consider it to be too risky to change it default. Signed-off-by: Antti Palosaari --- drivers/media/tuners/mt2060.c | 25 +++-- drivers/media/tuners/mt2060_priv.h | 8 2 files changed, 31 insertions(+), 2 deletions

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

2017-01-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

[PATCH v3 4/7] MAINTAINERS: add zd1301_demod driver

2017-01-27 Thread Antti Palosaari
DVB-T demodulator driver for ZyDAS ZD1301 chip. Signed-off-by: Antti Palosaari --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 52cc077..26ae0ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13380,6 +13380,15 @@ L: zd1211-d

[PATCH v3 1/7] mt2060: add i2c bindings

2017-01-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 v3 2/7] mt2060: add param to split long i2c writes

2017-01-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

[GIT PULL 4.10] fix cxd2820r 4.9 regression

2017-01-23 Thread Antti Palosaari
783d933cf02e970b49e0dcb586a76207aa6fa331: cxd2820r: fix gpio null pointer dereference (2017-01-23 10:40:17 +0200) Antti Palosaari (1): cxd2820r: fix gpio null pointer dereference drivers/media/dvb-frontends/cxd2820r_core.c

Re: [PATCH] cxd2820r: fix gpio null pointer dereference

2017-01-16 Thread Antti Palosaari
Chris and Håkan, test please without Kconfig CONFIG_GPIOLIB option. I cannot test it properly as there seems to quite many drivers selecting this option by default. regards Antti On 01/17/2017 01:29 AM, Antti Palosaari wrote: Setting GPIOs during probe causes null pointer deference when

[PATCH] cxd2820r: fix gpio null pointer dereference

2017-01-16 Thread Antti Palosaari
c: # v4.9+ Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index 95267c6..f6ebbb4 100644 --- a/drivers

Re: [PATCH] [media] cx231xx: Initial support Evromedia USB Full Hybrid Full HD

2017-01-10 Thread Antti Palosaari
On 01/10/2017 11:41 PM, Oleh Kravchenko wrote: This patch provide only digital support. The device is based on Si2168 30-demodulator, Si2158-20 tuner and CX23102-11Z chipset; USB id: 1b80:d3b2. Status: - DVB-T2 works fine; - Composite and SVideo works fine; - Analog not implemented. Signed-off

Re: [PATCH] [media] cx231xx: Initial support Evromedia USB Full Hybrid Full HD

2017-01-09 Thread Antti Palosaari
On 01/09/2017 11:49 PM, Oleh Kravchenko wrote: Hello! On 09.01.17 18:59, Antti Palosaari wrote: On 01/09/2017 05:23 PM, Oleh Kravchenko wrote: This patch provide only digital support. The device is based on Si2168 30-demodulator, Si2158-20 tuner and CX23102-11Z chipset; USB id: 1b80:d3b2

Re: [PATCH] [media] cx231xx: Initial support Evromedia USB Full Hybrid Full HD

2017-01-09 Thread Antti Palosaari
On 01/09/2017 05:23 PM, Oleh Kravchenko wrote: This patch provide only digital support. The device is based on Si2168 30-demodulator, Si2158-20 tuner and CX23102-11Z chipset; USB id: 1b80:d3b2. Status: - DVB-T2 works fine; - Composite and SVideo works fine; - Analog not implemented. Signed-o

[PATCH] af9033: estimate cnr from formula

2016-12-19 Thread Antti Palosaari
Use formulas for cnr estimates and get rid of old lut-based estimate. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 68 +- drivers/media/dvb-frontends/af9033_priv.h | 97 +-- 2 files changed, 42 insertions(+), 123

[PATCH v2] af9035: register it9133 tuner using platform binding

2016-12-19 Thread Antti Palosaari
it913x tuner driver is changed to platform model so we need bind it using platform_device_register_data(). Also remove hacks from I2C adapter where fake tuner driver address (addr >> 1) were used as those are no longer needed. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-

[PATCH v2] af9033: style related and minor changes

2016-12-19 Thread Antti Palosaari
Fix coding style and other small issues. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 263 ++ drivers/media/dvb-frontends/af9033.h | 7 +- drivers/media/dvb-frontends/af9033_priv.h | 86 ++ 3 files changed, 184

Re: em28xx - Hauppauge WinTV Dualhd atsc/qam

2016-12-13 Thread Antti Palosaari
On 12/13/2016 06:05 AM, Kevin Cheng wrote: Hi all, I'm working on support in the em8xx module for the Hauppauge WinTV dualhd atsc/qam usb stick. I'vey got the first tuner+fe working so far, but would appreciate any suggestions/feedback on the items below. the device has: 2x LGDT3306A frontend 2

Re: [PATCH 2/4] si2168: Si2168-D60 support.

2016-12-09 Thread Antti Palosaari
On 12/09/2016 02:17 AM, CrazyCat wrote: Support for new demod version. Signed-off-by: CrazyCat Patch is correct. Could you still use your real name? regards Antti --- drivers/media/dvb-frontends/si2168.c | 4 drivers/media/dvb-frontends/si2168_priv.h | 2 ++ 2 files changed, 6 i

[PATCH 1/2] si2168: implement ber statistics

2016-12-09 Thread Antti Palosaari
Implement DVBv5 BER. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/si2168.c | 46 +-- drivers/media/dvb-frontends/si2168_priv.h | 1 + 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/si2168.c b

[PATCH 2/2] si2168: implement ucb statistics

2016-12-09 Thread Antti Palosaari
Implement DVBv5 UCB. Only uncorrected blocks are currently counted. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/si2168.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c

Re: [PATCH 3/4] si2157: Si2141/2151 tuner support.

2016-12-09 Thread Antti Palosaari
silicon tuner driver * * Copyright (C) 2014 Antti Palosaari * @@ -84,7 +84,7 @@ static int si2157_init(struct dvb_frontend *fe) struct si2157_cmd cmd; const struct firmware *fw; const char *fw_name; - unsigned int uitmp, chip_id; + unsigned int uitmp

Re: [PATCH 2/3] [media] em28xx: use usb_interface for dev_foo() calls

2016-12-08 Thread Antti Palosaari
Tested both patch 1 and 2 individually and bug is fixed. Tested-by: Antti Palosaari However, some loggings are wrong as error level used instead of info. If you has colors enabled those log levels are printed with different colors, red is error and so. These for example are printed as

Re: em28xx broken 4.9.0-rc6+

2016-12-07 Thread Antti Palosaari
On 12/07/2016 04:55 PM, Mauro Carvalho Chehab wrote: Em Wed, 7 Dec 2016 12:22:01 -0200 Mauro Carvalho Chehab escreveu: Em Tue, 6 Dec 2016 13:41:38 -0200 Mauro Carvalho Chehab escreveu: Em Tue, 6 Dec 2016 01:06:17 +0200 Antti Palosaari escreveu: Hello Mauro I just noticed current

em28xx broken 4.9.0-rc6+

2016-12-05 Thread Antti Palosaari
Hello Mauro I just noticed current em28xx driver seem to be broken. When I plug device first time it loads correctly, but when I re-plug it, it does not work anymore but yells a lot of noise to message log. Tested with PCTV 290e and 292e both same. Other USB DVB devices are working so it is ver

[GIT PULL STABLE] mn88472 & mn88473 chip id bug on probe

2016-11-30 Thread Antti Palosaari
on probe (2016-12-01 02:27:11 +0200) Antti Palosaari (2): mn88473: fix chip id check on probe mn88472: fix chip id check on probe drivers/media/dvb-frontends/mn88472.c | 24 drivers/media/dvb

[PATCH 2/2] mn88472: fix chip id check on probe

2016-11-30 Thread Antti Palosaari
staging to media") Cc: # v4.8+ Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/mn88472.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88472.c b/drivers/media/dvb-frontends/mn88472.c index b6f5f83.

[PATCH 1/2] mn88473: fix chip id check on probe

2016-11-30 Thread Antti Palosaari
river") Cc: # v4.8+ Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/mn88473.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends/mn88473.c index f3b59a5..c221c7d 10064

[GIT PULL] mn88473 statistics

2016-11-22 Thread Antti Palosaari
5d575830372914df634d4ed7e6eb6a4b7ac7c9cb: mn88473: refactor and fix statistics (2016-11-22 11:02:20 +0200) Antti Palosaari (1): mn88473: refactor and fix statistics Martin Blumenstingl (1): mn88473: add DVBv5 statistics support

[PATCH 1/2] mn88473: add DVBv5 statistics support

2016-11-13 Thread Antti Palosaari
-by: Antti Palosaari --- drivers/media/dvb-frontends/mn88473.c | 485 ++--- drivers/media/dvb-frontends/mn88473_priv.h | 1 + 2 files changed, 445 insertions(+), 41 deletions(-) diff --git a/drivers/media/dvb-frontends/mn88473.c b/drivers/media/dvb-frontends

[PATCH 2/2] mn88473: refactor and fix statistics

2016-11-13 Thread Antti Palosaari
read_status() function. Use regmap_bulk_read() for reading multiple registers as a one go. And many more and less minor changes. Cc: Martin Blumenstingl Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/mn88473.c | 560 + drivers/media/dvb-frontends/mn8

[PATCH 6/9] it913x: change driver model from i2c to platform

2016-11-12 Thread Antti Palosaari
That tuner is integrated to demodulator and communicates via demodulators address space. We cannot register both demodulator and tuner having same address to same I2C bus, so better to change it platform driver in order to implement I2C adapter correctly. Signed-off-by: Antti Palosaari

[PATCH 1/9] af9035: read and store whole eeprom

2016-11-12 Thread Antti Palosaari
Read eeprom content to chip state and read values there when needed. Also debug dump eeprom content. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 126 +++--- drivers/media/usb/dvb-usb-v2/af9035.h | 5 +- 2 files changed, 60 insertions

[PATCH 2/9] af9033: convert to regmap api

2016-11-12 Thread Antti Palosaari
Use regmap to cover I2C register operations. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 1 + drivers/media/dvb-frontends/af9033.c | 420 ++ drivers/media/dvb-frontends/af9033_priv.h | 1 + 3 files changed, 145 insertions

[PATCH 3/9] af9033: use 64-bit div macro where possible

2016-11-12 Thread Antti Palosaari
Replace Booth's binary division algo with 64-bit multiply and division. Fix related IF calculations. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 103 +- drivers/media/dvb-frontends/af9033_priv.h | 1 + 2 files change

[PATCH 7/9] af9035: register it9133 tuner using platform binding

2016-11-12 Thread Antti Palosaari
it913x tuner driver is changed to platform model so we need bind it using platform_device_register_data(). Also remove hacks from I2C adapter where fake tuner driver address (addr >> 1) were used as those are no longer needed. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-

[PATCH 9/9] af9035: correct demod i2c addresses

2016-11-12 Thread Antti Palosaari
Chip uses so called 8-bit i2c addresses, but on bus there is of course correct 7-bit addresses with rw bit as lsb - verified with oscilloscope. Lets still use correct addresses in driver. Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 17 + 1 file

[PATCH 4/9] af9033: style related and minor changes

2016-11-12 Thread Antti Palosaari
Fix coding style and other small issues. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 313 +++--- drivers/media/dvb-frontends/af9033.h | 3 +- drivers/media/dvb-frontends/af9033_priv.h | 82 +--- 3 files changed, 211

[PATCH 5/9] af9033: return regmap for integrated IT913x tuner driver

2016-11-12 Thread Antti Palosaari
IT9130 series contains integrated tuner driver, which uses that demodulator address space. Return regmap in order to allow it913x driver communication. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 1 + drivers/media/dvb-frontends/af9033.h | 6 ++ 2 files changed

[PATCH 8/9] it913x: add chip device ids for binding

2016-11-12 Thread Antti Palosaari
Driver supports 2 different device versions, AX and BX. Use device IDs to pass chip version information to driver. Signed-off-by: Antti Palosaari --- drivers/media/tuners/it913x.c | 11 ++- drivers/media/tuners/it913x.h | 5 - drivers/media/usb/dvb-usb-v2/af9035.c

Re: [PATCH 2/5] media: i2c: max2175: Add MAX2175 support

2016-11-10 Thread Antti Palosaari
Hello On 11/09/2016 05:44 PM, Ramesh Shanmugasundaram wrote: +static int max2175_set_lo_freq(struct max2175 *ctx, u64 lo_freq) +{ + u64 scaled_lo_freq, scaled_npf, scaled_integer, scaled_fraction; + u32 frac_desired, int_desired, lo_mult = 1; + const u32 scale_factor = 100

Re: [RFC 5/5] doc_rst: media: New SDR formats SC16, SC18 & SC20

2016-11-10 Thread Antti Palosaari
Hello On 11/10/2016 10:08 AM, Laurent Pinchart wrote: Antti, Hans, ping ? Please see below. On Friday 04 Nov 2016 09:23:29 Ramesh Shanmugasundaram wrote: On 11/02/2016 10:58 PM, Laurent Pinchart wrote: On Wednesday 02 Nov 2016 09:00:00 Ramesh Shanmugasundaram wrote: On Wednesday 12 Oct 2016

Re: [RFC 5/5] doc_rst: media: New SDR formats SC16, SC18 & SC20

2016-11-03 Thread Antti Palosaari
Hello On 11/02/2016 10:58 PM, Laurent Pinchart wrote: Hi Ramesh, On Wednesday 02 Nov 2016 09:00:00 Ramesh Shanmugasundaram wrote: Hi Laurent, Any further thoughts on the SDR format please (especially the comment below). I would appreciate your feedback. On Wednesday 12 Oct 2016 15:10:29 Ram

Re: [PATCH 00/26] Don't use stack for DMA transers on dvb-usb drivers

2016-10-10 Thread Antti Palosaari
Hello If you use usb buffers from the state you will need add lock in order to protect concurrent access to buffer. There may have multiple concurrent operations from rc-polling/demux/frontend. Lets say you are reading ber and it sets data to buffer (state), then context switch to remote contr

Re: [PATCH] [media] staging/media/cec: fix coding style error

2016-09-11 Thread Antti Palosaari
On 09/11/2016 07:07 PM, Richard wrote: Greetings Linux Kernel Developers, This is Task 10 of the Eudyptula Challenge, i fix few line over 80 characters, hope you will accept this pacth. /Richard For the eudyptula challenge (http://eudyptula-challenge.org/). Simple style fix for few line over 8

[GIT PULL] cxd2820r improvements

2016-09-10 Thread Antti Palosaari
fetch changes up to 18905adf08ffc82417663539d1a703014505582f: cxd2820r: convert to regmap api (2016-09-03 01:30:22 +0300) Antti Palosaari (9): cxd2820r: improve IF frequency setting cxd2820r: dvbv5 statistics for DVB-T

Re: [GIT PULL STABLE 4.6] af9035 regression

2016-09-09 Thread Antti Palosaari
On 09/09/2016 05:49 PM, Mauro Carvalho Chehab wrote: Hi Antti, Em Sat, 3 Sep 2016 02:40:52 +0300 Antti Palosaari escreveu: The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:13 -0700) Is this patchset really meant to Kernel 4.6? if

[GIT PULL STABLE 4.6] af9035 regression

2016-09-02 Thread Antti Palosaari
The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:13 -0700) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git af9035_fix for you to fetch changes up to 7bb87ff5255defe87916f32cd1fcef163a489339: af9035:

[PATCH] af9035: fix dual tuner detection with PCTV 79e

2016-09-02 Thread Antti Palosaari
el Signed-off-by: Antti Palosaari --- drivers/media/usb/dvb-usb-v2/af9035.c | 53 +++ drivers/media/usb/dvb-usb-v2/af9035.h | 2 +- 2 files changed, 36 insertions(+), 19 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v

[PATCH 4/9] cxd2820r: dvbv5 statistics for DVB-C

2016-09-02 Thread Antti Palosaari
Implement dvbv5 statistics for DVB-C. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_c.c | 104 ++- 1 file changed, 102 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_c.c b/drivers/media/dvb-frontends

[PATCH 3/9] cxd2820r: dvbv5 statistics for DVB-T2

2016-09-02 Thread Antti Palosaari
Implement dvbv5 statistics for DVB-T2. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_t2.c | 77 ++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cxd2820r_t2.c b/drivers/media/dvb-frontends

[PATCH 8/9] cxd2820r: improve lock detection

2016-09-02 Thread Antti Palosaari
Check demod and ts locks and report lock status according to those. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_c.c | 29 drivers/media/dvb-frontends/cxd2820r_t.c | 44 --- drivers/media/dvb-frontends/cxd2820r_t2.c

[PATCH 2/9] cxd2820r: dvbv5 statistics for DVB-T

2016-09-02 Thread Antti Palosaari
Implement dvbv5 statistics for DVB-T. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_priv.h | 2 + drivers/media/dvb-frontends/cxd2820r_t.c| 88 + 2 files changed, 90 insertions(+) diff --git a/drivers/media/dvb-frontends

[PATCH 7/9] cxd2820r: correct logging

2016-09-02 Thread Antti Palosaari
Use correct device for logging functions as we now have it due to proper I2C client bindings. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_c.c| 33 +--- drivers/media/dvb-frontends/cxd2820r_core.c | 115 +++- drivers/media/dvb

[PATCH 1/9] cxd2820r: improve IF frequency setting

2016-09-02 Thread Antti Palosaari
Use 64-bit calculation. Return error if tuner does not provide get_if_frequency() callback. All currently used tuners has it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_c.c| 26 +++ drivers/media/dvb-frontends/cxd2820r_priv.h | 2

[PATCH 9/9] cxd2820r: convert to regmap api

2016-09-02 Thread Antti Palosaari
Use regmap for I2C register access. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/Kconfig | 1 + drivers/media/dvb-frontends/cxd2820r_c.c| 56 +++--- drivers/media/dvb-frontends/cxd2820r_core.c | 259 ++-- drivers/media/dvb-frontends

[PATCH 5/9] cxd2820r: wrap legacy DVBv3 statistics via DVBv5 statistics

2016-09-02 Thread Antti Palosaari
Return DVBv5 statistics via legacy DVBv3 API. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r_c.c| 108 drivers/media/dvb-frontends/cxd2820r_core.c | 85 ++ drivers/media/dvb-frontends/cxd2820r_priv.h | 25

[PATCH 6/9] cxd2820r: add I2C driver bindings

2016-09-02 Thread Antti Palosaari
Add I2C driver bindings in order to support proper I2C driver registration with driver core. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/cxd2820r.h | 26 drivers/media/dvb-frontends/cxd2820r_c.c| 6 +- drivers/media/dvb-frontends/cxd2820r_core.c | 190

Re: [PATCH] af9035: fix dual tuner detection with PCTV 79e

2016-07-17 Thread Antti Palosaari
On 07/16/2016 11:05 PM, Stefan Pöschel wrote: Am 15.07.2016 um 08:21 schrieb Antti Palosaari: Applied and PULL requested for 4.7. Great, thanks! Anyhow, it does not apply for 4.6. You must backport that patch to 4.6 stable also! I have never done backporting before, so I need some advice

Re: [PATCH] af9035: fix dual tuner detection with PCTV 79e

2016-07-14 Thread Antti Palosaari
Applied and PULL requested for 4.7. Anyhow, it does not apply for 4.6. You must backport that patch to 4.6 stable also! regards Antti On 07/11/2016 08:31 PM, Stefan Pöschel wrote: The value 5 of the EEPROM_TS_MODE register (meaning dual tuner presence) is only valid for AF9035 devices. For I

[GIT PULL 4.7] af9035 bug fix

2016-07-14 Thread Antti Palosaari
That is regression fix since 4.6. This patch applies only for 4.7 - new patch which applies to 4.6 stable is also needed. The following changes since commit 5cac1f67ea0363d463a58ec2d9118268fe2ba5d6: [media] rc: nuvoton: fix hang if chip is configured for alternative EFM IO address (2016-07

Re: si2157: new revision?

2016-07-09 Thread Antti Palosaari
[ 5651.958775] >>> c0 00 00 00 00 01 01 01 01 01 01 02 00 00 01FAILED! [ 5651.959110] cx231xx 1-2:1.1: cx231xx_send_usb_command: failed with status --32 [ 5651.959111] cx231xx #0 at cx231xx_i2c_xfer: ERROR: -32 How this error can be fixed? :) On 04.07.16 21:47, Antti Palosaa

Re: si2157: new revision?

2016-07-04 Thread Antti Palosaari
I am not interested at all about analog support. Analog transmissions are ran down many, many years ago here. regards Antti On 07/04/2016 09:56 PM, Oleh Kravchenko wrote: Thank you for your reply! What about Analog TV support? Do you plan to implement it? On 04.07.16 21:47, Antti Palosaari

Re: si2157: new revision?

2016-07-04 Thread Antti Palosaari
Hello On 07/04/2016 09:38 PM, Oleh Kravchenko wrote: Hello Antti! I started reverse-engineering of my new TV tuner "Evromedia USB Full Hybrid Full HD" and discovered that start sequence is different from si2157.c: i2c_read_C1 1 \xFE i2c_write_C0 15 \xC0\x00\x00\x00\x00\x01\x01\x01\x01\x01\x01\

[PATCH 3/3] rtl2832: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index c16c69e..0ced01f 100644 --- a

[PATCH 1/3] rtl2830: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2830.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/rtl2830.c b/drivers/media/dvb-frontends/rtl2830.c index d25d1e0

[PATCH 2/3] rtl2830: move statistics to read_status()

2016-06-29 Thread Antti Palosaari
Move statistics polling to read_status() in order to avoid use of kernel work. Also replace home made sign extension used for statistics with kernel sign_extend32(). Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2830.c | 200 + drivers/media

[PATCH 1/5] m88ds3103: remove useless most significant bit clear

2016-06-29 Thread Antti Palosaari
No need to clear negative msb bits as those were dropped in any case when data is written to register. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/m88ds3103.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb

[PATCH 1/3] af9033: move statistics to read_status()

2016-06-29 Thread Antti Palosaari
Move statistics polling to read_status() in order to avoid use of kernel work. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 326 +-- 1 file changed, 154 insertions(+), 172 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033

[PATCH 3/5] m88ds3103: improve ts clock setting

2016-06-29 Thread Antti Palosaari
Simplify TS clock divider calculation and programming slightly. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/m88ds3103.c | 39 ++--- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers

[PATCH 2/5] m88ds3103: calculate DiSEqC message sending time

2016-06-29 Thread Antti Palosaari
DiSEqC message sending takes 13.5 ms per byte, which is 54 ms total when typical 4 byte message is sent. Don't hard-code time limit to 54 ms, but calculate it. Time limit is only used to determine when to start poll "DiSEqC Tx ready" status from the chip. Signed-off-by:

[PATCH 4/5] m88ds3103: use Hz instead of kHz on calculations

2016-06-29 Thread Antti Palosaari
There was some calculations where was kHz used in order to keep calculation withing 32-bit. Convert all to Hz and use 64-bit division helpers where needed. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/m88ds3103.c | 50 ++-- drivers/media/dvb

[PATCH 5/5] m88ds3103: refactor firmware download

2016-06-29 Thread Antti Palosaari
* remove some unneeded variable initialization * rename variables * use min() macro to calc max i2c xfer len * change bad firmware error code from EFAULT to EINVAL Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/m88ds3103.c | 49 +++-- 1 file changed

[PATCH 3/3] it913x: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/tuners/it913x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c index 5c96da6..6c3ef21 100644 --- a/drivers/media/tuners

[PATCH 2/3] af9033: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/af9033.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 42fbd0f..6c2f9b8 100644 --- a

[PATCH 1/3] si2168: add support for newer firmwares

2016-06-29 Thread Antti Palosaari
Si2168-B40 firmware API has changed somewhere between 4.0-11 and 4.0-19 so that sleep will lose firmware upgrade from the chip. Due to that firmware re-upload is needed when newer firmwares are used. Rewrote firmware handling logic partly at the same. Signed-off-by: Antti Palosaari Cc: Olli

[PATCH 2/3] si2168: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/dvb-frontends/si2168.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 124addc..20b4a65

[PATCH 3/3] si2157: do not allow driver unbind

2016-06-29 Thread Antti Palosaari
Disable runtime unbind as driver does not support it. Signed-off-by: Antti Palosaari --- drivers/media/tuners/si2157.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index b07a681..57b2508 100644 --- a/drivers

Re: dvb-core: how should i2c subdev drivers be attached?

2016-06-09 Thread Antti Palosaari
On 06/09/2016 10:35 PM, Mauro Carvalho Chehab wrote: The above code is racy, as some other request to the frontend may arrive between the if() statement and kfree(). A kref would likely be safer. Here is working proof-of-concept hack. It is for si2157 tuner module. It prevents module unbind an

Re: dvb-core: how should i2c subdev drivers be attached?

2016-06-09 Thread Antti Palosaari
On 06/09/2016 09:30 PM, Mauro Carvalho Chehab wrote: Em Thu, 9 Jun 2016 19:38:04 +0300 Antti Palosaari escreveu: The V4L2 core handles everything that it is needed for it to work, and no extra code is needed to do module_put() or i2c_unregister_device(). That example attachs 2 I2C drivers

Re: dvb-core: how should i2c subdev drivers be attached?

2016-06-09 Thread Antti Palosaari
On 06/09/2016 07:18 PM, Mauro Carvalho Chehab wrote: Em Thu, 09 Jun 2016 18:41:10 +0300 Antti Palosaari escreveu: On 06/09/2016 06:24 PM, Mauro Carvalho Chehab wrote: Hi Akihiro, Em Thu, 09 Jun 2016 21:49:33 +0900 Akihiro TSUKADA escreveu: Hi, excuse me for taking up a very old post

Re: dvb-core: how should i2c subdev drivers be attached?

2016-06-09 Thread Antti Palosaari
On 06/09/2016 06:24 PM, Mauro Carvalho Chehab wrote: Hi Akihiro, Em Thu, 09 Jun 2016 21:49:33 +0900 Akihiro TSUKADA escreveu: Hi, excuse me for taking up a very old post again, but I'd like to know the status of the patch: https://patchwork.linuxtv.org/patch/27922/ , which provides helper c

[GIT PULL 4.8] rtl2832

2016-06-08 Thread Antti Palosaari
The following changes since commit 94d0eaa419871a6e2783f8c131b1d76d5f2a5524: [media] mn88472: move out of staging to media (2016-06-07 15:46:47 -0300) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git rtl2832 for you to fetch changes up to b3ce3f22e249dd2fd8a8

[GIT PULL 4.8] af9035

2016-06-07 Thread Antti Palosaari
04c5e503b7f0e1dc3bb40b2ed1f4ab7e6e43e5fd: af9035: fix logging (2016-06-07 22:02:33 +0300) Alessandro Radicati (2): af9035: I2C combined write + read transaction fix af9035: fix for MXL5007T devices with I2C read issues Antti Palosaari (1

[GIT PULL 4.8] mn88472

2016-06-07 Thread Antti Palosaari
nges up to 4f4a390b2f195e5c26be370a4bc85183d6919aac: rtl28xxu: sort the config symbols which are auto-selected (2016-06-07 10:46:02 +0300) -------- Antti Palosaari (3): rtl28xxu: increase failed I2C msg repeat count to 3 mn88472: finalize driver mn8

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