[PATCH] [media] convert drivers/media/* to use module_i2c_driver()

2012-01-21 Thread Axel Lin
This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin axel@gmail.com Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Heungjun Kim

Re: DVB-S2 multistream support

2012-01-21 Thread Christian Prähauser
Dear Marek, Konstantin and I are currently work on making the BB-demux work with recent version of Linux DVB and the TBS 6925. We well let you know as soon as a working patch is available (early february). In the meantime, maybe you want to tell me more about your use-case, for helping

Re: [PATCH] [media] convert drivers/media/* to use module_i2c_driver()

2012-01-21 Thread Laurent Pinchart
Hi Axel, Thanks for the patch. On Saturday 21 January 2012 11:10:45 Axel Lin wrote: This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin axel@gmail.com For the following modules,

Re: [PATCH] [media] convert drivers/media/* to use module_i2c_driver()

2012-01-21 Thread Sylwester Nawrocki
On 01/21/2012 11:10 AM, Axel Lin wrote: This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Linaxel@gmail.com For s5k6aa, noon010pc30, sr030pc30, m5mols modules, Acked-by: Sylwester

Re: No video0, /dev/dvb/adapter0 present

2012-01-21 Thread Steve Myatt
Cliffe cliffe at ii.net writes: Hello I would really appreciate some help. [...cropped...] [9.079590] af9013: found a 'Afatech AF9013 DVB-T' in warm state. [9.082319] af9013: firmware version:4.95.0 [9.094043] DVB: registering adapter 1 frontend 0 (Afatech AF9013 DVB-T)...

Re: Siano DVB USB device called Smart Plus

2012-01-21 Thread Denilson Figueiredo de Sá
On Fri, Jan 20, 2012 at 08:01, Mauro Carvalho Chehab mche...@redhat.com wrote: Then I added a few lines, as shown below, but it seems the driver still tries to load dvb_nova_12mhz_b0.inp instead of isdbt_nova_12mhz_b0.inp. No. there's a parameter for the smsmdtv module to select the right

Re: [PATCH/RFC v4 3/3] gspca: zc3xx: Add V4L2_CID_JPEG_COMPRESSION_QUALITY control support

2012-01-21 Thread Sylwester Nawrocki
On 01/14/2012 08:53 PM, Sylwester Nawrocki wrote: The JPEG compression quality control is currently done by means of the VIDIOC_S/G_JPEGCOMP ioctls. As the quality field of struct v4l2_jpgecomp is being deprecated, we add the V4L2_CID_JPEG_COMPRESSION_QUALITY control, so after the deprecation

[PATCH] anysee: repeat failed USB control messages

2012-01-21 Thread Antti Palosaari
Control message load increased heavily after CI/CAM support due to dvb_ca_en50221. It looks like CI/CAM drops to non-working state easily after error is returned to its callbacks. Due to that, add some logic to avoid errors repeating failed messages. Signed-off-by: Antti Palosaari cr...@iki.fi

Re: [patch 2/2] [media] ds3000: off by one in ds3000_read_snr()

2012-01-21 Thread Dan Carpenter
On Thu, Jan 19, 2012 at 03:22:02PM +0300, Dan Carpenter wrote: It's a good point. I will redo the patch. Sorry, I've decided to bail on this. The original code is buggy but I don't know what's going on well enough to fix it with any confidence. regards, dan carpenter signature.asc

[PATCH 03/35] [media] az6007: Fix it to allow loading it without crash

2012-01-21 Thread Mauro Carvalho Chehab
Add some fixes to allow frontend attachment. The patch is not complete yet, as just the frontend 0 is initialized. So, more changes will be needed, including some changes at dvb-usb core. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 190

[PATCH 02/35] [media] az6007: Fix compilation troubles at az6007

2012-01-21 Thread Mauro Carvalho Chehab
Some changes are needed, in order to make az6007 compile with the upstream tree. Most of the changes are due to the upstream drxk module. Even allowing its compilation, the driver is not working yet. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com ---

[PATCH 01/35] [media] dvb: Add a new driver for az6007

2012-01-21 Thread Mauro Carvalho Chehab
Import the az6007 driver from Terratec H7 source, as-is. It won't compile or run, so latter patches are needed in order to fix it. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 627

[PATCH 11/35] [media] az6007: make driver less verbose

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 35 +-- 1 files changed, 17 insertions(+), 18 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index

[PATCH 13/35] [media] az6007: need to define drivers name before including dvb-usb.h

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 523972f..87dff93 100644 ---

[PATCH 12/35] [media] drxk: Don't assume a default firmware name

2012-01-21 Thread Mauro Carvalho Chehab
Move the ngene/ddbridge firmware into their drivers. There are two reasons for that: 1) The firmware used there didn't work for a few devices I tested here (Terratec H5, H6 and H7); 2) At least Terratec H7 doesn't seem to require a firmware for it to work. After this change, if

[PATCH 15/35] [media] az6007: Change the az6007 read/write routine parameter

2012-01-21 Thread Mauro Carvalho Chehab
Use usb_device for those routines, as it allows using them on all places. While there, rename to better express the meaning. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 56 ++-- 1 files changed, 28

[PATCH 14/35] [media] az6007: Fix some init sequences and use the right firmwares

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 105 +++- 1 files changed, 43 insertions(+), 62 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index

[PATCH 10/35] [media] az6007: move device PID's to the proper place

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |4 drivers/media/dvb/dvb-usb/dvb-usb-ids.h |2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c

[PATCH 07/35] [media] az6007: CodingStyle cleanup

2012-01-21 Thread Mauro Carvalho Chehab
make checkpatch.pl happy Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 239 ++-- 1 files changed, 120 insertions(+), 119 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c

[PATCH 09/35] [media] az6007: Replace the comments at the beginning of the driver

2012-01-21 Thread Mauro Carvalho Chehab
The comments there is wrong. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c

[PATCH 08/35] [media] az6007: Get rid of az6007.h

2012-01-21 Thread Mauro Carvalho Chehab
The header file serves for no purpose and exports some things that should be static. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 11 +-- drivers/media/dvb/dvb-usb/az6007.h | 18 -- 2 files changed, 9 insertions(+),

[PATCH 04/35] [media] az6007: Fix the I2C code in order to handle mt2063

2012-01-21 Thread Mauro Carvalho Chehab
mt2063 uses a one-byte transfer. This requires a special handling inside the i2c code. Fix it to properly accept i2c reads. This is needed to make the mt2063 to be detected. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 47

[PATCH 06/35] [media] az6007: Remove some dead code that doesn't seem to be needed

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 79 +++ 1 files changed, 16 insertions(+), 63 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index

[PATCH 17/35] [media] az6007: Simplify the code by removing an uneeded function

2012-01-21 Thread Mauro Carvalho Chehab
Everything to reset the demod is already at az6007_frontend_poweron(). Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 29 - 1 files changed, 0 insertions(+), 29 deletions(-) diff --git

[PATCH 16/35] [media] az6007: Simplify the read/write logic

2012-01-21 Thread Mauro Carvalho Chehab
This patch introduces no functional changes. It basically defines a macro for each different req found at the driver, and cleans the code to use them, making easier to understand the code. With regards to the IR handling code, although the original code doesn't define what's the request, it is

[PATCH 00/35] Add a driver for Terratec H7

2012-01-21 Thread Mauro Carvalho Chehab
Terratec H7 is a Cypress FX2 device with a mt2063 tuner and a drx-k demod. This series add support for it. It started with a public tree found at: http://linux.terratec.de/files/TERRATEC_H7/20110323_TERRATEC_H7_Linux.tar.gz The driver were almost completely re-written, and it is now

[PATCH 18/35] [media] az6007: Fix IR receive code

2012-01-21 Thread Mauro Carvalho Chehab
The code still needs to be commented, as there's a mutex missing at the az6007_read() call. A mutex there is needed, in order to prevent RC (or CI) calls while other operations are in progress. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 37

[PATCH 05/35] [media] az6007: Comment the gate_ctl mutex

2012-01-21 Thread Mauro Carvalho Chehab
The mutex is there to protect the I2C gate. However, for some reason, it is being called twice: [ 2103.542796] usbcore: registered new interface driver dvb_usb_az6007 [ 2103.772392] az6007: drxk_gate_ctrl: enable [ 2103.793900] az6007: drxk_gate_ctrl: enable For now, let's just comment, to allow

[PATCH 21/35] [media] az6007: Change it to use the MFE solution adopted at dvb-usb

2012-01-21 Thread Mauro Carvalho Chehab
This driver were written to use a previous solution for MFE at dvb-usb. Due to the internal API changes, change the binding to work with the new way. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 42 ++- 1 files

[PATCH 33/35] [media] az6007: Use the right keycode for Terratec H7

2012-01-21 Thread Mauro Carvalho Chehab
Instead of using a fake keycode, just for testing, use the right one, for Terratec H7. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |2 +- .../media/rc/keymaps/rc-nec-terratec-cinergy-xs.c | 52 2 files

[PATCH 35/35] [media] az6007: CodingStyle fixes

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 27 +-- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 14733b8..02efd94

[PATCH 32/35] [media] az6007: Convert IR to use the rc_core logic

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 30 +++--- 1 files changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index a8aedb8..2288916

[PATCH 23/35] [media] drxk: Allow setting it on dynamic_clock mode

2012-01-21 Thread Mauro Carvalho Chehab
This is used on az6007. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/frontends/drxk.h | 17 ++--- drivers/media/dvb/frontends/drxk_hard.c | 14 +- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git

[PATCH 34/35] [media] az6007: Enable the driver at the building system

2012-01-21 Thread Mauro Carvalho Chehab
Add the corresponding entries to allow building this driver. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/Kconfig |8 drivers/media/dvb/dvb-usb/Makefile |4 +++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git

[PATCH 31/35] [media] az6007: Fix IR handling

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 31 +-- 1 files changed, 13 insertions(+), 18 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 142ef7b..a8aedb8

[PATCH 29/35] [media] az6007: Protect read/write calls with a mutex

2012-01-21 Thread Mauro Carvalho Chehab
This will avoid interference with CI and IR I/O operations. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 122 ++-- 1 files changed, 62 insertions(+), 60 deletions(-) diff --git

[PATCH 30/35] [media] az6007: Be sure to use kmalloc'ed buffer for transfers

2012-01-21 Thread Mauro Carvalho Chehab
USB data transfers may not work if the buffer is allocated at the stack. Be sure to use kmalloc on all places where a buffer is needed. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 27 +-- 1 files changed, 17

[PATCH 28/35] [media] az6007: Driver cleanup

2012-01-21 Thread Mauro Carvalho Chehab
Remove commented test code, remove unused poweroff stuff, and fix the copyright data. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 56 --- 1 files changed, 13 insertions(+), 43 deletions(-) diff --git

[PATCH 27/35] [media] az6007: code cleanups and fixes

2012-01-21 Thread Mauro Carvalho Chehab
Several changes were needed to make az6007 to work, producing the same commands as the original driver. This patch does that. While here, be less verbose when debug is not enabled. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 148

[PATCH 26/35] [media] drxk: Allow enabling MERR/MVAL cfg

2012-01-21 Thread Mauro Carvalho Chehab
Those two settings are different when used with az6007. Add a config option to enable it. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |1 + drivers/media/dvb/frontends/drxk.h |2 ++ drivers/media/dvb/frontends/drxk_hard.c |

[PATCH 24/35] [media] az6007: Use DRX-K dynamic clock mode

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 342f929..00a0bf1 100644 ---

[PATCH 25/35] [media] drxk: add support for Mpeg output clock drive strength config

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |3 +-- drivers/media/dvb/frontends/drxk.h |4 +++- drivers/media/dvb/frontends/drxk_hard.c | 12 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git

[PATCH 22/35] [media] az6007: Use a per device private struct

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index 92ded30..342f929 100644 ---

[PATCH 19/35] [media] az6007: improve the error messages for az6007 read/write calls

2012-01-21 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c index c9743ee..c9b6f80 100644 ---

[PATCH 20/35] [media] az6007: Use the new MFE support at dvb-usb

2012-01-21 Thread Mauro Carvalho Chehab
Use the newly dvb-usb MFE support added by changeset 9bd9e3bd2c57530dfe3057dd0aa9bdb37824925d. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/dvb/dvb-usb/az6007.c | 74 ++- 1 files changed, 38 insertions(+), 36 deletions(-) diff --git

RE: mygica hdcap

2012-01-21 Thread Nathan
On Mar 10, 2011, at 12:26 PM, James Klaas wrote: I just got one of these the other day and I was wondering if anyone has looked at it. It will take HDMI, component and composite input plus stereo. I have a picture I can post somewhere of the board. It has 3 main chips. AD9985A -

Re: mygica hdcap

2012-01-21 Thread Devin Heitmueller
On Sat, Jan 21, 2012 at 11:07 AM, Nathan nathan.groo...@gmail.com wrote: Any progress made with this?  I have this same card and I can't find a datasheet for tm6200. Nobody has written an open source driver for the tm6200 (and nobody is in the process of doing such), and there are no publicly

Re: [PATCH] [RFC] dvb: Add DVBv5 properties for quality parameters

2012-01-21 Thread Antti Palosaari
On 01/20/2012 02:38 PM, Mauro Carvalho Chehab wrote: Basically I would like to ask slow down API changes since it causes all the problems and extra work. Rather than always doing API changes of our perspective I would like to ask if it is possible to ask applications developers to help?

cron job: media_tree daily build: ERRORS

2012-01-21 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 Jan 21 19:00:19 CET 2012 git hash:9e5e3097a3febbf317abc6d1b07bc6c33b20c279 gcc version: i686-linux-gcc

Re: [PATCH] [RFC] dvb: Add DVBv5 properties for quality parameters

2012-01-21 Thread Mauro Carvalho Chehab
Hi Antti, This patch is a return of the discussions that started in 2009 with those patches: http://patchwork.linuxtv.org/patch/1883/ http://patchwork.linuxtv.org/patch/2262/ http://patchwork.linuxtv.org/patch/2280/ Em 21-01-2012 15:04, Antti Palosaari escreveu: On

Re: [PATCH v2] media i.MX27 camera: properly detect frame loss.

2012-01-21 Thread Guennadi Liakhovetski
Hi Javier Please, excuse my curiosity and bear with my lack of understanding :-) On Wed, 11 Jan 2012, Javier Martin wrote: As V4L2 specification states, frame_count must also regard lost frames so that the user can handle that case properly. This patch adds a mechanism to increment the

Realtek RTL2831U

2012-01-21 Thread Antti Palosaari
Hello I picked up again my old RTL2831U tree and upgraded to current level. It supports only RTL2831U, not RTL2832U or any other. I think I will pull-request it to the master in hope it get development effort. I have no time for it. It is working, but does not do anything extra - just show

Re: DVB-S2 multistream support

2012-01-21 Thread Mauro Carvalho Chehab
Hi Christian, Em 27-12-2011 08:12, Christian Prähauser escreveu: Yes, I'm meaning something like what it was described there. I think that the code written by Christian were never submitted upstream. Hello Mauro, Konstantin drew my attention to this discussion. Indeed, some time ago I