[PATCH 2/4] dvb_frontend: add routine for DVB-T2 parameter validation

2012-08-16 Thread Antti Palosaari
Common routine for use of dvb-core, demodulator and tuner for check given DVB-T2 parameters correctness. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-core/dvb_frontend.c | 118 ++ drivers/media/dvb-core/dvb_frontend.h | 1 + 2 files changed

[PATCH 3/4] dvb_frontend: add routine for DVB-C annex A parameter validation

2012-08-16 Thread Antti Palosaari
Common routine for use of dvb-core, demodulator and tuner for check given DVB-C annex A parameters correctness. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-core/dvb_frontend.c | 54 +++ drivers/media/dvb-core/dvb_frontend.h | 1 + 2 files

[PATCH 0/4] dvb_frontend: few DTV validation routines

2012-08-16 Thread Antti Palosaari
to validate data before pass call for the driver. I also noticed our documentation lacks quite totally possible values, only possible parameters were listed. How do we expect application makers could know those? Antti Palosaari (4): dvb_frontend: add routine for DVB-T parameter validation dvb_frontend

[PATCH 1/4] dvb_frontend: add routine for DVB-T parameter validation

2012-08-16 Thread Antti Palosaari
Common routine for use of dvb-core, demodulator and tuner for check given DVB-T parameters correctness. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-core/dvb_frontend.c | 136 ++ drivers/media/dvb-core/dvb_frontend.h | 2 + 2 files changed

[PATCH 4/4] dvb_frontend: add routine for DTMB parameter validation

2012-08-16 Thread Antti Palosaari
Common routine for use of dvb-core, demodulator and tuner for check given DTMB parameters correctness. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-core/dvb_frontend.c | 97 +++ drivers/media/dvb-core/dvb_frontend.h | 1 + 2 files changed, 98

[PATCH] dvb_usb_v2: use ratelimited debugs where appropriate

2012-08-16 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/usb_urb.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/usb_urb.c b/drivers/media/usb/dvb-usb-v2/usb_urb.c index eaf673a..5989b65 100644 --- a/drivers/media

[PATCH] dvb-usb: remove unused files

2012-08-16 Thread Antti Palosaari
Those files were left from dvb-usb-v2 development as I have made mistake during rebase operation. Reported-by: Hans Verkuil hverk...@xs4all.nl Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb/dvb_usb_dvb.c| 403 - drivers/media/usb/dvb-usb

Re: [PATCH] dvb_frontend: Multistream support

2012-08-17 Thread Antti Palosaari
On 08/17/2012 08:21 PM, CrazyCat wrote: 16.08.2012, 21:11, Antti Palosaari cr...@iki.fi: - /* ISDB-T specifics */ - u32 isdbs_ts_id; - - /* DVB-T2 specifics */ - u32 dvbt2_plp_id; + /* Multistream specifics */ + u32 stream_id; u32 == 32 bit long unsigned

Re: Strong pairing cam doesn't work with CT-3650 driver (ttusb2)

2012-08-17 Thread Antti Palosaari
On 08/17/2012 10:35 PM, Hans Petter Selasky wrote: Hi, Have anyone out there tested the CT-3650 USB driver in the Linux kernel with a strong pairing cam. Likely that means CI+ with some pairing features enabled. According to some web-forums, the hardware should support that given using the

Re: [PATCH 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-17 Thread Antti Palosaari
On 08/17/2012 09:04 AM, Hiroshi Doyu wrote: dev_dbg_reatelimited() without DEBUG printed 217078 callbacks suppressed. This shouldn't print anything without DEBUG. Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reported-by: Antti Palosaari cr...@iki.fi --- include/linux/device.h |6

Re: cron job: media_tree daily build: ERRORS

2012-08-19 Thread Antti Palosaari
On 08/19/2012 11:09 PM, Anca Emanuel wrote: On Sun, Aug 19, 2012 at 10:54 PM, Hans Verkuil hverk...@xs4all.nl wrote: This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date:

Re: [PATCH 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-20 Thread Antti Palosaari
On 08/20/2012 02:14 PM, Hiroshi Doyu wrote: Hi Antti, Antti Palosaari cr...@iki.fi wrote @ Sat, 18 Aug 2012 02:11:56 +0200: On 08/17/2012 09:04 AM, Hiroshi Doyu wrote: dev_dbg_reatelimited() without DEBUG printed 217078 callbacks suppressed. This shouldn't print anything without DEBUG

Re: [PATCH 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-21 Thread Antti Palosaari
Hello Hiroshi, On 08/21/2012 10:02 AM, Hiroshi Doyu wrote: Antti Palosaari cr...@iki.fi wrote @ Mon, 20 Aug 2012 23:29:34 +0200: On 08/20/2012 02:14 PM, Hiroshi Doyu wrote: Hi Antti, Antti Palosaari cr...@iki.fi wrote @ Sat, 18 Aug 2012 02:11:56 +0200: On 08/17/2012 09:04 AM, Hiroshi Doyu

[PATCH] qt1010: do not change frequency during init

2012-08-21 Thread Antti Palosaari
Changing cached frequency during init is something no-no. Make it behave a little bit better. After that device could survive from suspend/resume when streaming is ongoing. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/qt1010.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH] gl861: reset_resume support

2012-08-21 Thread Antti Palosaari
It survives now on reset_resume. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/gl861.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb-v2/gl861.c b/drivers/media/usb/dvb-usb-v2/gl861.c index cf29f43..df78811 100644 --- a/drivers/media

[PATCH 1/2] qt1010: convert for Kernel logging

2012-08-21 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/qt1010.c | 40 +++- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/drivers/media/tuners/qt1010.c b/drivers/media/tuners/qt1010.c index 74e7d4c..5fab622 100644 --- a/drivers

[PATCH 2/2] qt1010: remove debug register dump

2012-08-21 Thread Antti Palosaari
I didn't found easy way to handle register dump only when needed so remove it totally. It is quite useless and trivial function, every developer could write new one in few minutes when needed. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/qt1010.c | 23

Re: Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

2012-08-21 Thread Antti Palosaari
On 08/21/2012 05:24 PM, M. Fletcher wrote: I am trying to setup a Compro U680F USB DVB-T adaptor in Ubuntu 12.04 (kernel 3.2.0-29-generic). The compro device ID is given (lsusb) as 185b:0680. The following page suggests this device is supported by the RT2832U driver:

Re: Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

2012-08-21 Thread Antti Palosaari
On 08/21/2012 06:29 PM, M. Fletcher wrote: Apologies for the confusion. Having done more digging I think the dvb_usb_rtl2832u module was added by the package download from here http://www.dfragos.me/2011/11/installation-of-the-rt2832u-driver-in-linux/. This is confirmed by looking through the

Re: Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

2012-08-21 Thread Antti Palosaari
On 08/21/2012 06:37 PM, M. Fletcher wrote: It should be inside drivers/media/usb/dvb-usb-v2/ modinfo dvb_usb_rtl28xxu should list it. Correct, it was in drivers/media/usb/dvb-usb-v2/ modinfo gives the expected output Also it is highly possible your device usb id is not known by driver, you

[PATCH 2/2] tda18218: re-implement tda18218_wr_regs()

2012-08-21 Thread Antti Palosaari
Old i2c message length splitting logic was faulty. Make it better. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/tda18218.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/media/tuners/tda18218.c b/drivers/media/tuners

[PATCH 1/2] tda18218: switch to Kernel logging

2012-08-21 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/tda18218.c | 28 ++-- drivers/media/tuners/tda18218_priv.h | 13 + 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/drivers/media/tuners/tda18218.c b/drivers/media/tuners

Re: Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

2012-08-21 Thread Antti Palosaari
On 08/21/2012 07:13 PM, M. Fletcher wrote: Open the rtl28xxu.c file and find line: { DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_NOXON_DAB_STICK, replace it: { DVB_USB_DEVICE(0x185b, 0x0680, Line changed as follows: //{ DVB_USB_DEVICE(USB_VID_TERRATEC, USB_PID_NOXON_DAB_STICK,

Re: Unable to load dvb-usb-rtl2832u driver in Ubuntu 12.04

2012-08-21 Thread Antti Palosaari
On 08/21/2012 08:54 PM, M. Fletcher wrote: I appreciate all of your help. I found the following http://sdr.osmocom.org/trac/wiki/rtl-sdr which seems to support the E4000 on the Compro U680F. Could that driver be incorporated with the RTL83xxu from V4L-DVB? Regards, Marc It is userspace

[PATCH 1/5] rtl28xxu: stream did not start after stop on USB3.0

2012-08-21 Thread Antti Palosaari
Stream did not start anymore after stream was stopped once. Following error can be seen, xhci_hcd WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state. usb_clear_halt for streaming endpoint helps. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2

[PATCH 2/5] rtl28xxu: fix rtl2832u module reload fails bug

2012-08-21 Thread Antti Palosaari
This is workaround / partial fix. rtl2832u_power_ctrl() and rtl2832u_frontend_attach() needs to be go through carefully and fix properly. There is clearly some logical errors when handling power-management ang GPIOs... Signed-off-by: Antti Palosaari cr...@iki.fi Cc: Thomas Mair thomas.mai

[PATCH 3/5] rtl2832: implement .get_frontend()

2012-08-21 Thread Antti Palosaari
Copied from rtl2830. Cc: Thomas Mair thomas.mai...@googlemail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 113 ++ 1 file changed, 113 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media

[PATCH 4/5] rtl2832: implement .read_snr()

2012-08-21 Thread Antti Palosaari
Based rtl2830 implementation. Cc: Thomas Mair thomas.mai...@googlemail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 52 +-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends

[PATCH 5/5] rtl2832: implement .read_ber()

2012-08-21 Thread Antti Palosaari
Implementation taken from rtl2830. Cc: Thomas Mair thomas.mai...@googlemail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/rtl2832.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media

Re: [PATCH 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-22 Thread Antti Palosaari
On 08/22/2012 04:57 PM, Hin-Tak Leung wrote: Antti Palosaari wrote: Hello Hiroshi, On 08/21/2012 10:02 AM, Hiroshi Doyu wrote: Antti Palosaari cr...@iki.fi wrote @ Mon, 20 Aug 2012 23:29:34 +0200: On 08/20/2012 02:14 PM, Hiroshi Doyu wrote: Hi Antti, Antti Palosaari cr...@iki.fi wrote

[PATCH] au6610: define reset_resume

2012-08-22 Thread Antti Palosaari
After qt1010 change that device seems to survive from reset resume. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/au6610.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb-v2/au6610.c b/drivers/media/usb/dvb-usb-v2/au6610.c index

[PATCH 2/2] dvb_usb_v2: use dvb_usb_dbg_usb_control_msg()

2012-08-22 Thread Antti Palosaari
Convert drivers: au6610, ce6230, ec168, rtl28xxu for dvb_usb_dbg_usb_control_msg() macro. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/au6610.c | 5 + drivers/media/usb/dvb-usb-v2/ce6230.c | 4 ++-- drivers/media/usb/dvb-usb-v2/ce6230.h | 11

[PATCH 1/2] dvb_usb_v2: add debug macro dvb_usb_dbg_usb_control_msg

2012-08-22 Thread Antti Palosaari
For dumping usb_control_msg(). Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb.h b/drivers/media/usb/dvb-usb-v2/dvb_usb.h index 5a53c62..bae16a1 100644

Re: [GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 = TerraTec Cinergy T Stick [0ccd:0093]

2012-04-01 Thread Antti Palosaari
Regards, Hans-Frieder Am Sonntag, 1. April 2012 schrieb Antti Palosaari: On 01.04.2012 13:27, Hans-Frieder Vogt wrote: nice work! I'll try to port the features that I have in my implementation of an af9035 driver into yours. You are welcome! But please tell me what you are doing to avoid

Re: [GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 = TerraTec Cinergy T Stick [0ccd:0093]

2012-04-01 Thread Antti Palosaari
On 01.04.2012 19:15, Michael Büsch wrote: On Sun, 1 Apr 2012 15:11:53 +0200 Michael Büschm...@bues.ch wrote: [ 3101.940765] i2c i2c-8: Failed to read VCO calibration value (got 20) Ok, it turns out that it doesn't fail all the time, but only sporadically. So increasing the number of retries

Re: [GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 = TerraTec Cinergy T Stick [0ccd:0093]

2012-04-01 Thread Antti Palosaari
On 01.04.2012 19:32, Michael Büsch wrote: On Sun, 01 Apr 2012 19:20:21 +0300 Antti Palosaaricr...@iki.fi wrote: On 01.04.2012 19:15, Michael Büsch wrote: On Sun, 1 Apr 2012 15:11:53 +0200 Michael Büschm...@bues.ch wrote: [ 3101.940765] i2c i2c-8: Failed to read VCO calibration value (got

Re: [PATCH][GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 support for AverTV A867R (mxl5007t tuner)

2012-04-01 Thread Antti Palosaari
On 01.04.2012 20:15, Hans-Frieder Vogt wrote: Support of AVerMedia AVerTV HD Volar, with tuner MxL5007t (needs the i2c read bug fixed patch send earlier). Could you sent separate patch for I2C read fix? The only functional comment I has is about ADC frequency. There is Xtal/ADC lookup table

Re: [PATCH][GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 i2c read fix

2012-04-01 Thread Antti Palosaari
On 01.04.2012 21:11, Hans-Frieder Vogt wrote: attached is the i2c read fix (necessary e.g. for mxl5007t tuner, because it sends a 2 bytes for a read request, thus msg[0].len != msg[1].len). Enable i2c read requests. Signed-off-by: Hans-Frieder Vogthfv...@gmx.net Applied, thank you!

Re: [PATCH][GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 support for AverTV A867R (mxl5007t), version 2

2012-04-01 Thread Antti Palosaari
On 02.04.2012 00:07, Hans-Frieder Vogt wrote: Support of AVerMedia AVerTV HD Volar, with tuner MxL5007t, second version of patch (usage of clock_adc_lut instead of adc config variable) Signed-off-by: Hans-Frieder Vogthfv...@gmx.net Patch does not apply. wget -O -

Re: [PATCH] af9035: Add USB read checksumming

2012-04-01 Thread Antti Palosaari
On 01.04.2012 23:33, Michael Büsch wrote: This adds USB message read checksumming to protect against device and bus errors. It also adds a read length check to avoid returning garbage from the buffer, if the device truncated the message. Signed-off-by: Michael Bueschm...@bues.ch Applied

Re: [PATCH] AF9033 read_ber and read_ucblocks implementation

2012-04-01 Thread Antti Palosaari
On 02.04.2012 00:19, Hans-Frieder Vogt wrote: Implementation of af9033_read_ber and af9033_read_ucblocks functions. Signed-off-by: Hans-Frieder Vogthfv...@gmx.net drivers/media/dvb/dvb-usb/af9033.c | 68 +++-- Same wrong path issue. + /* only

Re: [PATCH] AF9033 read_ber and read_ucblocks implementation

2012-04-01 Thread Antti Palosaari
On 02.04.2012 00:56, Antti Palosaari wrote: On 02.04.2012 00:19, Hans-Frieder Vogt wrote: Implementation of af9033_read_ber and af9033_read_ucblocks functions. + sw = ~sw; I don't see any reason for that? Now I see, it is some kind of switch to make operation every second call

Re: [PATCH] Add fc0011 tuner driver

2012-04-02 Thread Antti Palosaari
On 02.04.2012 19:14, Michael Büsch wrote: This adds support for the Fitipower fc0011 DVB-t tuner. Signed-off-by: Michael Bueschm...@bues.ch Applied, thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental I looked it through quickly, no big issues.

Re: [PATCH] af9035: Add fc0011 tuner support

2012-04-02 Thread Antti Palosaari
On 02.04.2012 19:18, Michael Büsch wrote: This adds Fitipower fc0011 tuner support to the af9035 driver. Signed-off-by: Michael Bueschm...@bues.ch Applied, thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental And same checkpatch.pl issue here. You can

Re: [PATCH] af9035: Add Afatech USB PIDs

2012-04-02 Thread Antti Palosaari
On 02.04.2012 19:34, Michael Büsch wrote: Add some generic Afatech USB PIDs used by Cabstone sticks and others. Signed-off-by: Michael Bueschm...@bues.ch Applied, but same checkpatch.pl comments as earlier patches!

Re: [PATCH] Add fc0011 tuner driver

2012-04-02 Thread Antti Palosaari
On 02.04.2012 20:20, Michael Büsch wrote: On Mon, 02 Apr 2012 19:56:50 +0300 Antti Palosaaricr...@iki.fi wrote: On 02.04.2012 19:14, Michael Büsch wrote: This adds support for the Fitipower fc0011 DVB-t tuner. Signed-off-by: Michael Bueschm...@bues.ch Applied, thanks!

Re: [PATCH] af9035: add Avermedia Volar HD (A867R) support

2012-04-02 Thread Antti Palosaari
On 02.04.2012 21:18, Hans-Frieder Vogt wrote: Support of AVerMedia AVerTV HD Volar, with tuner MxL5007t, version 3 of patch Signed-off-by: Hans-Frieder Vogthfv...@gmx.net Applied, thank you. Good work! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental

Re: [PATCH] Add fc0011 tuner driver

2012-04-02 Thread Antti Palosaari
On 02.04.2012 20:51, Michael Büsch wrote: Likely tuner driver, or demod driver. But as demod tuner initialization tables are likely correct I suspect it is tuner issue at first hand. And secondly my other hardware with TUA9001 performs very well, better than old AF9015 sticks. Well the fc0011

Re: [PATCH 1/5] af9035: add USB id for 07ca:a867

2012-04-02 Thread Antti Palosaari
On 03.04.2012 00:25, Gianluca Gennari wrote: New USB id for the Avermedia A867 stick (Sky Digital Key with blue led). Signed-off-by: Gianluca Gennarigennar...@gmail.com Applied, thank you! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental regards Antti --

Re: [PATCH 2/5] af9035: add support for the tda18218 tuner

2012-04-02 Thread Antti Palosaari
On 03.04.2012 00:25, Gianluca Gennari wrote: Add basic support for the tda18218 tuner and the AVerMedia A835 devices. Signed-off-by: Gianluca Gennarigennar...@gmail.com Applied, thank you! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental regards Antti --

Re: [PATCH 3/5] tda18218: fix IF frequency for 7MHz bandwidth channels

2012-04-02 Thread Antti Palosaari
On 03.04.2012 00:25, Gianluca Gennari wrote: This is necessary to tune VHF channels with the AVerMedia A835 stick. Signed-off-by: Gianluca Gennarigennar...@gmail.com --- drivers/media/common/tuners/tda18218.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 4/5] af9035: fix warning

2012-04-02 Thread Antti Palosaari
On 03.04.2012 00:25, Gianluca Gennari wrote: af9035.c: In function 'af9035_download_firmware': af9035.c:446:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat] Signed-off-by: Gianluca Gennarigennar...@gmail.com ---

Re: [PATCH 5/5] af9035: use module_usb_driver macro

2012-04-02 Thread Antti Palosaari
On 03.04.2012 00:25, Gianluca Gennari wrote: Let's save a few lines of code using the module_usb_driver macro. Signed-off-by: Gianluca Gennarigennar...@gmail.com Applied, thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental regards Antti --

[PATCH] af9035: fix and enhance I2C adapter

2012-04-02 Thread Antti Palosaari
without saying what are register address bytes to firmware. Signed-off-by: Antti Palosaari cr...@iki.fi Cc: Michael Buesch m...@bues.ch Cc: Hans-Frieder Vogt hfv...@gmx.net Cc: Gianluca Gennari gennar...@gmail.com --- drivers/media/dvb/dvb-usb/af9035.c | 34 ++ 1

Re: [PATCH 4/5 v2] af9035: fix warning

2012-04-03 Thread Antti Palosaari
On 03.04.2012 03:32, Gianluca Gennari wrote: On a 32 bit system: af9035.c: In function 'af9035_download_firmware': af9035.c:446:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat] %zu avoids any warning on both 32 and 64 bit

Re: [PATCH 3/5] tda18218: fix IF frequency for 7MHz bandwidth channels

2012-04-03 Thread Antti Palosaari
On 03.04.2012 03:44, Gianluca Gennari wrote: Il 03/04/2012 00:40, Antti Palosaari ha scritto: On 03.04.2012 00:25, Gianluca Gennari wrote: This is necessary to tune VHF channels with the AVerMedia A835 stick. Signed-off-by: Gianluca Gennarigennar...@gmail.com --- drivers/media/common

Re: [PATCH] fc0011: use usleep_range()

2012-04-03 Thread Antti Palosaari
On 03.04.2012 12:08, Michael Büsch wrote: Use usleep_range() instead of msleep() to improve power saving opportunities. Signed-off-by: Michael Bueschm...@bues.ch Applied thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental regards Antti --

Re: [PATCH] af9035: Use usleep_range() in fc0011 support code

2012-04-03 Thread Antti Palosaari
On 03.04.2012 12:11, Michael Büsch wrote: Use usleep_range() instead of msleep() to improve power saving opportunities. Signed-off-by: Michael Bueschm...@bues.ch Applied thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental regards Antti --

Re: [PATCH] fc0011: Reduce number of retries

2012-04-03 Thread Antti Palosaari
On 03.04.2012 12:05, Michael Büsch wrote: Now that i2c transfers are fixed, 3 retries are enough. Signed-off-by: Michael Bueschm...@bues.ch Applied, thanks! http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental I think I will update original af9035 PULL request

Re: [PATCH] fc0011: Reduce number of retries

2012-04-03 Thread Antti Palosaari
On 03.04.2012 18:33, Michael Büsch wrote: On Tue, 03 Apr 2012 18:24:20 +0300 Antti Palosaaricr...@iki.fi wrote: On 03.04.2012 12:05, Michael Büsch wrote: Now that i2c transfers are fixed, 3 retries are enough. Signed-off-by: Michael Bueschm...@bues.ch Applied, thanks!

Re: [PATCH] af9033: implement ber and ucb functions

2012-04-03 Thread Antti Palosaari
On 03.04.2012 23:59, Hans-Frieder Vogt wrote: af9033: implement read_ber and read_ucblocks functions. Signed-off-by: Hans-Frieder Vogthfv...@gmx.net For my quick test UCB counter seems to reset every query. That is violation of API. See http://www.kernel.org/doc/htmldocs/media.html Do you

Re: [PATCH] af9035: add several new USB IDs

2012-04-04 Thread Antti Palosaari
On 04.04.2012 14:47, Gianluca Gennari wrote: Add several new USB IDs extracted from the Windows and Linux drivers published by the manufacturers (Terratec and AVerMedia). + [AF9035_07CA_0867] = { + USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_0867)},

Re: [PATCH] af9035: add several new USB IDs

2012-04-04 Thread Antti Palosaari
On 04.04.2012 15:40, Gianluca Gennari wrote: Il 04/04/2012 13:59, Antti Palosaari ha scritto: On 04.04.2012 14:47, Gianluca Gennari wrote: Add several new USB IDs extracted from the Windows and Linux drivers published by the manufacturers (Terratec and AVerMedia). +[AF9035_07CA_0867

Re: [PATCH 3/5] tda18218: fix IF frequency for 7MHz bandwidth channels

2012-04-04 Thread Antti Palosaari
On 04.04.2012 16:15, Gianluca Gennari wrote: Il 03/04/2012 12:19, Antti Palosaari ha scritto: On 03.04.2012 03:44, Gianluca Gennari wrote: Il 03/04/2012 00:40, Antti Palosaari ha scritto: On 03.04.2012 00:25, Gianluca Gennari wrote: This is necessary to tune VHF channels with the AVerMedia

Re: [PATCH] af9033: implement get_frontend

2012-04-05 Thread Antti Palosaari
On 05.04.2012 19:47, Gianluca Gennari wrote: Implement the get_frontend function. + struct dtv_frontend_properties *p =fe-dtv_property_cache; Commonly dtv_property_cache pointer is shorten as a letter c (cache) in all demod drivers and old dvb_frontend_parameters used earlier was

Re: [PATCH] af9035: add several new USB IDs

2012-04-05 Thread Antti Palosaari
On 05.04.2012 22:03, pierigno wrote: Damn!! here it is again, corrected. I'm really sorry, thanks for the patience :) Also, I think the name should be something like AVerMedia Twinstar (A825) since Avermedia code names usually are Axxx. I thought the name between parenthesis was after the

Re: [PATCH] af9033: implement ber and ucb functions

2012-04-06 Thread Antti Palosaari
On 06.04.2012 11:34, Hans-Frieder Vogt wrote: Am Mittwoch, 4. April 2012 schrieb Antti Palosaari: On 03.04.2012 23:59, Hans-Frieder Vogt wrote: af9033: implement read_ber and read_ucblocks functions. Signed-off-by: Hans-Frieder Vogthfv...@gmx.net For my quick test UCB counter seems to reset

Re: RTL28XX driver

2012-04-06 Thread Antti Palosaari
On 06.04.2012 12:11, Thomas Mair wrote: i own a TerraTec Cinergy T Stick Black device, and was able to find a working driver for the device. It seems to be, that the driver was originally written by Realtek and has since been updated by different Developers to meet DVB API changes. I was

Re: [GIT PULL FOR 3.5] AF9035/AF9033/TUA9001 = TerraTec Cinergy T Stick [0ccd:0093]

2012-04-06 Thread Antti Palosaari
PULL-request update. On 30.03.2012 15:33, Antti Palosaari wrote: Terve Mauro and all the other hackers, I did some massive rewrite for my old AF9035/AF9033 driver that was never merged. Anyhow, here it is. New drivers here are: Infineon TUA 9001 silicon tuner driver Afatech AF9033 DVB-T

Re: DVB ioctl FE_GET_EVENT behaviour broken in 3.3

2012-04-06 Thread Antti Palosaari
On 06.04.2012 13:49, Chris Rankin wrote: The reason that DVB playback with xine is broken in 3.3 is that the userspace semantics of FE_GET_EVENT have changed. Xine tunes into a DVB channel as follows: * discards stale frontend events by calling FE_GET_EVENT until there is none left. * calls

AF9035/AF9033 development

2012-04-06 Thread Antti Palosaari
Here is TODO list I took from mail I wrote 31.3.2012: * fix af9033 IF freq control (now Zero-IF only) DONE * change firmware download to use new firmware syntax DONE * dual tuner support * check if IT9035 is enough similar (My personal suspicion is that integrated tuner is only main

Re: AF9035/AF9033 development

2012-04-06 Thread Antti Palosaari
On 06.04.2012 15:02, Antti Palosaari wrote: Here is TODO list I took from mail I wrote 31.3.2012: * fix af9033 IF freq control (now Zero-IF only) DONE * change firmware download to use new firmware syntax DONE * dual tuner support * check if IT9035 is enough similar (My personal suspicion

Re: RTL28XX driver

2012-04-11 Thread Antti Palosaari
On 09.04.2012 15:02, Thomas Mair wrote: thanks for your information. I did get in touch with Realtek and they provided me with the datasheet for the RTL2832U. So what I will try to do is write a demodulator driver for the RTL2832 demod chip following the information of the datasheet and the

Re: RTL28XX driver

2012-04-11 Thread Antti Palosaari
On 12.04.2012 00:33, Oliver Schinagl wrote: On 04/11/12 21:12, Antti Palosaari wrote: I have some old stubbed drivers that just works for one frequency using combination of RTL2832U + FC2580. Also I have rather well commented USB sniff from that device. I can sent those if you wish. FC2580

Re: RTL28XX driver

2012-04-12 Thread Antti Palosaari
driver however, using src or usbsniff. On 11-04-12 23:57, Antti Palosaari wrote: On 12.04.2012 00:33, Oliver Schinagl wrote: On 04/11/12 21:12, Antti Palosaari wrote: I have some old stubbed drivers that just works for one frequency using combination of RTL2832U + FC2580. Also I have rather

Re: [media] tda10071: NXP TDA10071 DVB-S/S2 driver

2012-04-17 Thread Antti Palosaari
Moikka Dan, and thank you. Comments below. On 17.04.2012 13:33, Dan Carpenter wrote: Hi Antti, Smatch complains about a potential information leak. I was hoping you could take a look. The patch de8e42035014: [media] tda10071: NXP TDA10071 DVB-S/S2 driver from Aug 1, 2011, leads to the

Re: [PATCH] af9035: add remote control support

2012-04-18 Thread Antti Palosaari
I haven't tried to and not commented it. But I see clearly few problems. On 18.04.2012 17:17, Mauro Carvalho Chehab wrote: Em 07-04-2012 14:24, Hans-Frieder Vogt escreveu: af9035: support remote controls. Currently, for remotes using the NEC protocol, the map of the TERRATEC_CINERGY_XS remote

Re: RTL28XX driver

2012-04-18 Thread Antti Palosaari
On 18.04.2012 20:18, Thomas Mair wrote: I have been working on the driver over the past days and been making some progress. Right now I am stuck with a small problem that I have no idea how to deal with. It seems that the fc0012 tuner supports V-Band and U-Band. To switch between those modes a

Re: RTL28XX driver

2012-04-18 Thread Antti Palosaari
The method should be selected based of knowledge if GPIO used for controlling FC0012 tuner OR controlling some other part (LNA, anatenna switch, etc.) So you have to identify meaning first. Look inside FC0012 driver to see if there is some mention about that GPIO. UNLESS we cannot identify

Re: RTL28XX driver

2012-04-18 Thread Antti Palosaari
On 18.04.2012 21:35, Antti Palosaari wrote: The method should be selected based of knowledge if GPIO used for controlling FC0012 tuner OR controlling some other part (LNA, anatenna switch, etc.) So you have to identify meaning first. Look inside FC0012 driver to see if there is some mention

Re: [PATCH] af9035: add remote control support

2012-04-18 Thread Antti Palosaari
On 18.04.2012 23:42, Hans-Frieder Vogt wrote: Am Mittwoch, 18. April 2012 schrieb Mauro Carvalho Chehab: Em 18-04-2012 11:57, Antti Palosaari escreveu: I haven't tried to and not commented it. But I see clearly few problems. On 18.04.2012 17:17, Mauro Carvalho Chehab wrote: Em 07-04-2012 14

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-20 Thread Antti Palosaari
On 20.04.2012 11:01, nibble.max wrote: 2012-04-20 15:56:27 nibble@gmail.com At first time, I check it exist so try to patch it. But with new m88ds3103 features to add and ts2022 tuner include, find it is hard to do simply patch. It is better to create a new driver for maintain. Hi Max, Em

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-23 Thread Antti Palosaari
On 21.04.2012 05:45, nibble.max wrote: 2012-04-21 10:38:02 nibble@gmail.com Em 20-04-2012 06:47, Antti Palosaari escreveu: On 20.04.2012 11:01, nibble.max wrote: 2012-04-20 15:56:27 nibble@gmail.com At first time, I check it exist so try to patch it. But with new m88ds3103 features

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-23 Thread Antti Palosaari
Hello Konstantin, Good to heard you and finally got your reply to thread. On 23.04.2012 22:51, Konstantin Dimitrov wrote: Antti, i already commented about ds3103 drivers months ago: http://www.mail-archive.com/linux-media@vger.kernel.org/msg41135.html and from my point of view nothing have

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-27 Thread Antti Palosaari
On 27.04.2012 22:01, Konstantin Dimitrov wrote: Mauro, your reasoning makes sense to me. so, let's split them and at least settle this part of the discussion - i will do as far as my spare time allows, as well make sure there are no some problems introduced after the split. also, in one email

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-27 Thread Antti Palosaari
On 27.04.2012 23:21, Konstantin Dimitrov wrote: On Fri, Apr 27, 2012 at 10:55 PM, Antti Palosaaricr...@iki.fi wrote: On 27.04.2012 22:01, Konstantin Dimitrov wrote: Mauro, your reasoning makes sense to me. so, let's split them and at least settle this part of the discussion - i will do as

Re: [PATCH 1/6] m88ds3103, montage dvb-s/s2 demodulator driver

2012-04-27 Thread Antti Palosaari
On 27.04.2012 23:40, Konstantin Dimitrov wrote: On Fri, Apr 27, 2012 at 11:37 PM, Konstantin Dimitrov however, i want to pointed out few other problems - they are off-topic as not related to drivers for Montage chips, but related as far as we're putting some order and making things in a proper

Re: Demod hardware pid filter implement

2012-04-28 Thread Antti Palosaari
On 28.04.2012 12:17, nibble.max wrote: Hello Antti, As we known that AF9013 has the hardware pid filter capability. How to implement the hardware pid filter, which the demodulator has this capability? For usb, i find struct dvb_usb_adapter_fe_properties { int (*pid_filter_ctrl) (struct

GSoC 2012 Linux-Media!

2012-05-03 Thread Antti Palosaari
Moikka! As I have mentioned many people already, I have got Google Summer of Code project for the Linux-Media! It means I can do three months full time work starting from the week 21 (21.05.2012). Originally I applied Open firmware for ath9k_htc -project as that was listed but I added own

DVB USB issues we has currently

2012-05-03 Thread Antti Palosaari
Hello, Here we are, that's the first part I am going to fix as a GSoC project. Work is planned to start after two weeks but better to discuss beforehand. And wish-list is now open! I see two big DVB USB issues including multiple small issues; 1) Current static structure is too limited as

common DVB USB issues we has currently

2012-05-03 Thread Antti Palosaari
Hello, Here we are, that's the first part I am going to fix as a GSoC project. Work is planned to start after two weeks but better to discuss beforehand. And wish-list is now open! I see two big DVB USB issues including multiple small issues; 1) Current static structure is too limited as

Re: common DVB USB issues we has currently

2012-05-03 Thread Antti Palosaari
to 3.5.2012 20:03 Jose Alberto Reguero kirjoitti: On Jueves, 3 de mayo de 2012 10:48:43 Devin Heitmueller escribió: Hi Antti, 2) Suspend/resume is not supported and crashes Kernel. I have no idea what is wrong here and what is needed. But as it has been long term known problem I

Re: DVB USB issues we has currently

2012-05-03 Thread Antti Palosaari
to 3.5.2012 18:04 Patrick Boettcher kirjoitti: On Thursday 03 May 2012 16:20:23 Antti Palosaari wrote: Hello, Here we are, that's the first part I am going to fix as a GSoC project. Work is planned to start after two weeks but better to discuss beforehand. And wish-list is now open! I see

Re: common DVB USB issues we has currently

2012-05-03 Thread Antti Palosaari
to 3.5.2012 17:59 Brian J. Murrell kirjoitti: On 12-05-03 10:48 AM, Devin Heitmueller wrote: I doubt this is a dvb-usb problem, but rather something specific to the realtek parts (suspend/resume does work with other devices that rely on dvb-usb). Dunno if it's at all relevant but I used to

Re: [PATCH v2] add support for DeLOCK-USB-2.0-DVB-T-Receiver-61744

2012-05-05 Thread Antti Palosaari
la 5.5.2012 19:01 Thomas Mair kirjoitti: I am currently finishing up the work at the demod driver and will probably send a new version to the list tomorrow. Nice! I will try to review it on Monday... I looked quickly your old patch last week and tuner driver was done by Hans-Frieder Vogt. I

Re: [PATCH v3 1/3] Modified RTL28xxU driver to work with RTL2832

2012-05-07 Thread Antti Palosaari
Good morning! Comments below. On 06.05.2012 15:46, Thomas Mair wrote: Hi everyone, this is the first complete version of the rtl2832 demod driver. I splitted the patches in three parts: 1. changes in the dvb-usb part (dvb_usb_rtl28xxu) 2. demod driver (rtl2832) 3. tuner driver (fc0012) -

Re: [PATCH v3 2/3] RTL2832 demodulator driver.

2012-05-07 Thread Antti Palosaari
On 06.05.2012 15:46, Thomas Mair wrote: - currently only support for the FC0012 tuner is included - The driver uses a custom log2 function. Maybe it should be changed to use ilog2 or a similar function. There is one log2 in DVB core routines and IIRC other can be found from the Kernel common

Re: [PATCH v2] af9033: implement ber and ucb functions

2012-05-07 Thread Antti Palosaari
On 07.04.2012 17:34, Hans-Frieder Vogt wrote: af9033: implement read_ber and read_ucblocks functions. Version 2 of patch that reflects my findings on the behaviour of abort_cnt, err_cnt and bit_cnt: - bit_cnt is always 0x2710 (1) - abort_cnt is between 0 and 0x2710 - err_cnt is between 0

[GIT PULL FOR 3.5] AF9035/AF9033

2012-05-07 Thread Antti Palosaari
) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git af9035 Antti Palosaari (5): af9035: various small changes for af9035_ctrl_msg() af9035: remove unused struct af9035: move device configuration to the state af9035: remove one config parameter af9035

Re: [PATCH v2] af9035: add remote control support

2012-05-07 Thread Antti Palosaari
On 22.04.2012 01:23, Hans-Frieder Vogt wrote: af9035: support remote controls, version 2 of patch (Currently, no key maps are loaded). This version of the patch addresses comments from Antti and Mauro. Thank very much for your comments! Compared to the first version of the patch, the remote

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