[PATCH] em28xx: set the timestamp type for video and vbi vb2_queues

2013-03-09 Thread Frank Schäfer
The em28xx driver obtains the timestamps using function v4l2_get_timestamp(), which produces a montonic timestamp. Fixes the warnings appearing in the system log since commit 6aa69f99 [media] vb2: Add support for non monotonic timestamps Signed-off-by: Frank Schäfer fschaefer@googlemail.com

Re: [PATCH] em28xx: set the timestamp type for video and vbi vb2_queues

2013-03-09 Thread Hans Verkuil
On Sat March 9 2013 11:53:01 Frank Schäfer wrote: The em28xx driver obtains the timestamps using function v4l2_get_timestamp(), which produces a montonic timestamp. Fixes the warnings appearing in the system log since commit 6aa69f99 [media] vb2: Add support for non monotonic timestamps

Re: [Linaro-mm-sig] [PATCH v2 1/3] arch: make __mutex_fastpath_lock_retval return whether fastpath succeeded or not.

2013-03-09 Thread Francesco Lavra
On 02/28/2013 11:24 AM, Maarten Lankhorst wrote: This will allow me to call functions that have multiple arguments if fastpath fails. This is required to support ticket mutexes, because they need to be able to pass an extra argument to the fail function. Originally I duplicated the

dvb-apps: Additional channels for Netherlands

2013-03-09 Thread Dmitry Katsubo
Dear LinuxTV developers, When I was playing with scan utility, I paid attention to comments in file /usr/share/dvb/dvb-t/nl-All # The Netherlands, whole country # Created from http://radio-tv-nederland.nl/TV%20zenderlijst%20Nederland.xls # and

cron job: media_tree daily build: WARNINGS

2013-03-09 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sat Mar 9 19:00:19 CET 2013 git branch: test git hash: 457ba4ce4f435d0b4dd82a0acc6c796e541a2ea7 gcc

cannot unload cx18_alsa to hibernate Mint13 64 computer

2013-03-09 Thread Dixon Craig
Hello and thank you to all linuxtv developers! I have my hauppuage pvr-1600 working very nicely for us-cable analog and composite inputs using cx18 from original linuxmint 13 MATE 64 and I also tried newest drivers from git.linuxtv.org. My problem is cx18_alsa prevents successful suspend to

[REVIEW PATCH 5/5] it913x: fix pid filter

2013-03-09 Thread Antti Palosaari
I just made commit: dvb_usb_v2: rework USB streaming logic that breaks that driver PID filter. it913x driver checks use of PID filter directly from DVB USB v2 core internal variable adap-pid_filtering and stores it to own state. Calling order of .pid_filter_ctrl() and .pid_filter() was changed and

[REVIEW PATCH 1/5] dvb_usb_v2: replace Kernel userspace lock with wait queue

2013-03-09 Thread Antti Palosaari
There was sync mutex which was held over userspace. That is very wrong and could cause deadlock if different userspace process is used to unlock. Wait queue seems to be correct solution for that kind of synchronizing issue so use it instead. lock debug gives following bug report:

[REVIEW PATCH 3/5] cypress_firmware: make checkpatch.pl happy

2013-03-09 Thread Antti Palosaari
New checkpatch version likes to see strings not to split multiple lines even those are exceeding 80 line length. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/cypress_firmware.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[REVIEW PATCH 4/5] dvb_usb_v2: rework USB streaming logic

2013-03-09 Thread Antti Palosaari
Control flow order changed a little bit. HW PID filter is now disabled also when streaming is stopped - earlier it was just set only when streaming was started. Control flow is now: * set 'streaming' status bit * submit USB streaming packets * enable HW PID filter * ask device to start streaming

[REVIEW PATCH 2/5] dvb_usb_v2: make checkpatch.pl happy

2013-03-09 Thread Antti Palosaari
New checkpatch version likes to see strings not to split multiple lines even those are exceeding 80 line length. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 81 +++-- drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c | 5 +-

[REVIEW PATCH 02/41] af9033: support for it913x tuners

2013-03-09 Thread Antti Palosaari
Add support for tuners integrated to the IT9135 and IT9137. Cc: Malcolm Priestley tvbox...@gmail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 34 +- drivers/media/dvb-frontends/af9033.h | 15 +++ 2 files

[REVIEW PATCH 05/41] af9035: fix af9033 demod sampling frequency

2013-03-09 Thread Antti Palosaari
ADC needs to be also multiplied to 2 as it9135. Fixes bug I introduced few commits ago. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c

[REVIEW PATCH 03/41] af9035: add support for 1st gen it9135

2013-03-09 Thread Antti Palosaari
Cc: Malcolm Priestley tvbox...@gmail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/Kconfig | 1 + drivers/media/usb/dvb-usb-v2/af9035.c | 24 +++- drivers/media/usb/dvb-usb-v2/af9035.h | 1 + 3 files changed, 25 insertions(+), 1

[REVIEW PATCH 16/41] it913x: rename functions and variables

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 72 +++ 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c index 6eb3afa..82cc053 100644 ---

[REVIEW PATCH 29/41] af9033: add IT9135 tuner config 38 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 + drivers/media/dvb-frontends/af9033_priv.h | 217 ++ 2 files changed, 220 insertions(+) diff --git

[REVIEW PATCH 28/41] af9035: change dual mode boolean to bit field

2013-03-09 Thread Antti Palosaari
For some reason there seems to be value 0x03 in eeprom for dual mode (and 0x00 for single mode). Boolean is not always 1 bit wide - it could be 8 bit wide too. Storing number 0x03 to boolean causes driver to thing there is 4 tuners in some cases :o Add also some comments regarding to eeprom.

[REVIEW PATCH 15/41] it913x: merge it913x_fe_suspend() to it913x_fe_sleep()

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 32 +--- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c index f1938a1..6eb3afa 100644 ---

[REVIEW PATCH 14/41] it913x: merge it913x_fe_start() to it913x_init_tuner()

2013-03-09 Thread Antti Palosaari
Merge those functions to one and disable sleep. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 165 -- 1 file changed, 45 insertions(+), 120 deletions(-) diff --git a/drivers/media/tuners/it913x.c

[REVIEW PATCH 06/41] af9015: reject device TerraTec Cinergy T Stick Dual RC (rev. 2)

2013-03-09 Thread Antti Palosaari
That same USB ID is used both AF9015 and AF9035 driver. iManufacturer is only thing we can select correct driver without a I/O. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9015.c | 40 ++- 1 file changed, 39 insertions(+), 1

[REVIEW PATCH 08/41] af9035: constify clock tables

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.h b/drivers/media/usb/dvb-usb-v2/af9035.h index f995339..7086ff2 100644 ---

[REVIEW PATCH 41/41] MAINTAINERS: add drivers/media/tuners/it913x*

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ff2fcc9..ded88d3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4418,6 +4418,16 @@ Q:

[REVIEW PATCH 07/41] af9035: [0ccd:0099] TerraTec Cinergy T Stick Dual RC (rev. 2)

2013-03-09 Thread Antti Palosaari
That same USB ID is used both AF9015 and AF9035 driver. iManufacturer is only thing we can select correct driver without a I/O. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 42 ++- 1 file changed, 41 insertions(+), 1

[REVIEW PATCH 01/41] ITE IT913X silicon tuner driver

2013-03-09 Thread Antti Palosaari
It is tuner driver for tuner integrated to the ITE IT9135 and IT9137 chips. I split it out from the current it913x-fe driver. Cc: Malcolm Priestley tvbox...@gmail.com Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/Kconfig | 7 + drivers/media/tuners/Makefile |

[REVIEW PATCH 04/41] af9035: add auto configuration heuristic for it9135

2013-03-09 Thread Antti Palosaari
Detect automatically multiple chip versions and select configuration according to that. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 116 -- drivers/media/usb/dvb-usb-v2/af9035.h | 6 +- 2 files changed, 88

[REVIEW PATCH 17/41] it913x: tuner power up routines

2013-03-09 Thread Antti Palosaari
Copy forgotten power up registers from it913x-fe driver. Remove two demod registers as those are already written by af9033 driver. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[REVIEW PATCH 36/41] af9033: move code from it913x to af9033

2013-03-09 Thread Antti Palosaari
That register is property of demodulator so move it correct place. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 9 + drivers/media/tuners/it913x.c| 6 -- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git

[REVIEW PATCH 35/41] it913x: remove unused af9033 demod tuner config inits

2013-03-09 Thread Antti Palosaari
Those are demodulator init tables according to used tuner tuner config. af9033 demod driver does those inits currently and due to that these duplicate inits could be removed. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 6 -

[REVIEW PATCH 37/41] af9033: sleep on attach()

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 8e3a99d..2dba516 100644 ---

[REVIEW PATCH 39/41] af9035: check I/O errors on IR polling

2013-03-09 Thread Antti Palosaari
Use more careful error checks. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index

[REVIEW PATCH 40/41] af9035: style changes for remote controller polling

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index a1ae5c5..c35fab8 100644 ---

[REVIEW PATCH 38/41] af9033: implement i/o optimized reg table writer

2013-03-09 Thread Antti Palosaari
Use register address auto increment to reduce I/O when large register / values tables are written. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 47 1 file changed, 37 insertions(+), 10 deletions(-) diff --git

[REVIEW PATCH 13/41] af9035: IT9135 dual tuner related changes

2013-03-09 Thread Antti Palosaari
Now it supports IT9135 based dual tuner devices. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 201 +- drivers/media/usb/dvb-usb-v2/af9035.h | 3 +- 2 files changed, 102 insertions(+), 102 deletions(-) diff --git

[REVIEW PATCH 23/41] it913x: remove demod init reg tables

2013-03-09 Thread Antti Palosaari
These are demod inits and are already done by af9033 demod driver. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 8 -- drivers/media/tuners/it913x_priv.h | 211 - 2 files changed, 219 deletions(-) diff --git

[REVIEW PATCH 26/41] af9035: set demod TS mode config in read_config()

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index a29169f..7f87b01 100644 ---

[REVIEW PATCH 24/41] af9035: select firmware loader according to firmware

2013-03-09 Thread Antti Palosaari
AF9035 and IT9135 supports two different firmware format. Select correct loader according to first byte of firmware file. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[REVIEW PATCH 22/41] af9033: add IT9135 demod reg init tables

2013-03-09 Thread Antti Palosaari
Dumped out from Windows driver version 12.07.06.1, 07/06/2012. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 6 +- drivers/media/dvb-frontends/af9033_priv.h | 209 ++ 2 files changed, 214 insertions(+), 1 deletion(-)

[REVIEW PATCH 25/41] af9035: use already detected eeprom base addr

2013-03-09 Thread Antti Palosaari
eeprom memory mapped base address is detected at the very first. Use it everywhere. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c

[REVIEW PATCH 21/41] it913x: use dev_foo() logging

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c index 1cb9709..66e003f 100644 --- a/drivers/media/tuners/it913x.c +++

[REVIEW PATCH 27/41] af9035: enable remote controller for IT9135 too

2013-03-09 Thread Antti Palosaari
There is no difference towards AF9035 remote controller, so enable it. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index

[REVIEW PATCH 18/41] it913x: get rid of it913x config struct

2013-03-09 Thread Antti Palosaari
We don't need it. Tuner ID and device address are enough. Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 38 +-- drivers/media/tuners/it913x.h | 22 ++-- drivers/media/usb/dvb-usb-v2/af9035.c | 18

[REVIEW PATCH 32/41] af9033: add IT9135 tuner config 60 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 + drivers/media/dvb-frontends/af9033_priv.h | 215 ++ 2 files changed, 218 insertions(+) diff --git

[REVIEW PATCH 31/41] af9033: add IT9135 tuner config 52 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 + drivers/media/dvb-frontends/af9033_priv.h | 217 ++ 2 files changed, 220 insertions(+) diff --git

[REVIEW PATCH 19/41] it913x: remove unused variables

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 14 ++ drivers/media/tuners/it913x_priv.h | 12 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c index

[REVIEW PATCH 30/41] af9033: add IT9135 tuner config 51 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 + drivers/media/dvb-frontends/af9033_priv.h | 217 ++ 2 files changed, 220 insertions(+) diff --git

[REVIEW PATCH 34/41] af9033: add IT9135 tuner config 62 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 +- drivers/media/dvb-frontends/af9033_priv.h | 215 ++ 2 files changed, 217 insertions(+), 1 deletion(-) diff --git

[REVIEW PATCH 11/41] af9035: basic support for IT9135 v2 chips

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 44 --- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index a1e953a..0b92277

[REVIEW PATCH 09/41] af9035: USB1.1 support (== PID filters)

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 85 +-- 1 file changed, 82 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 1e1cee6..42ed0f7

[REVIEW PATCH 10/41] af9035: merge af9035 and it9135 eeprom read routines

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/usb/dvb-usb-v2/af9035.c | 139 ++ drivers/media/usb/dvb-usb-v2/af9035.h | 27 --- 2 files changed, 73 insertions(+), 93 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c

[REVIEW PATCH 20/41] it913x: include tuner IDs from af9033.h

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/tuners/it913x.c | 24 drivers/media/tuners/it913x_priv.h | 10 +- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c

[REVIEW PATCH 12/41] af9033: IT9135 v2 supported related changes

2013-03-09 Thread Antti Palosaari
Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index dece775..f510228 100644 ---

[REVIEW PATCH 33/41] af9033: add IT9135 tuner config 61 init table

2013-03-09 Thread Antti Palosaari
Dumped out from the Windows driver version 12.07.06.1 Signed-off-by: Antti Palosaari cr...@iki.fi --- drivers/media/dvb-frontends/af9033.c | 3 + drivers/media/dvb-frontends/af9033_priv.h | 216 +- 2 files changed, 218 insertions(+), 1 deletion(-) diff --git

Re: cannot unload cx18_alsa to hibernate Mint13 64 computer

2013-03-09 Thread Andy Walls
On Sat, 2013-03-09 at 21:57 +, Dixon Craig wrote: Hello and thank you to all linuxtv developers! I have my hauppuage pvr-1600 working very nicely for us-cable analog and composite inputs using cx18 from original linuxmint 13 MATE 64 and I also tried newest drivers from

[GIT PULL] dvb_usb_v2: do not use USB buffers from stack

2013-03-09 Thread Antti Palosaari
The following changes since commit ed72d37a33fdf43dc47787fe220532cdec9da528: [media] media: Add 0x3009 USB PID to ttusb2 driver (fixed diff) (2013-02-13 18:05:29 -0200) are available in the git repository at: git://linuxtv.org/anttip/media_tree.git dvb_usb_v2_stack for you to fetch