[PATCH 1/5] [media] mb86a20s: add i2c_gate_ctrl

2011-06-11 Thread Manoel Pinheiro
The register 0xfe controls the i2c-bus from the mb86a20s to tuner. Signed-off-by: Manoel Pinheiro pinus...@hotmail.com --- drivers/media/dvb/frontends/mb86a20s.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/media/dvb/frontends/mb86a20s.c

[PATCH 2/5] [media] mb86a20s: Add support for TBS-Tech ISDB-T Full Seg DTB08

2011-06-11 Thread Manoel Pinheiro
This code allows free programming of some registers of the mb86a20s demodulator. All registers that need changes received an identification (REG_IDCFG). Signed-off-by: Manoel Pinheiro pinus...@hotmail.com --- drivers/media/dvb/frontends/mb86a20s.c | 203

[PATCH 3/5] [media] Add Keytable for tbs_dtb08 remote controller

2011-06-11 Thread Manoel Pinheiro
Signed-off-by: Manoel Pinheiro pinus...@hotmail.com --- drivers/media/rc/keymaps/Makefile |1 + drivers/media/rc/keymaps/rc-tbs-dtb08.c | 77 +++ include/media/rc-map.h |1 + 3 files changed, 79 insertions(+), 0 deletions(-) create

[PATCH 4/5] [media] Add support for TBS-Tech ISDB-T Full Seg DTB08

2011-06-11 Thread Manoel Pinheiro
Signed-off-by: Manoel Pinheiro pinus...@hotmail.com --- drivers/media/dvb/dvb-usb/Kconfig |8 drivers/media/dvb/dvb-usb/Makefile |3 +++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index

[PATCH 5/5] [media] Add support for TBS-Tech ISDB-T Full Seg DTB08

2011-06-11 Thread Manoel Pinheiro
Need patches: [PATCH 1/5] [media] mb86a20s: add i2c_gate_ctrl [PATCH 2/5] [media] mb86a20s: Add support for TBS-Tech ISDB-T Full Seg DTB08 [PATCH 3/5] [media] Add Keytable for tbs_dtb08 remote controller [PATCH 4/5] [media] Add support for TBS-Tech ISDB-T Full Seg DTB08 Signed-off-by: Manoel

Re: Improving kernel - userspace (usbfs) usb device hand off

2011-06-11 Thread Hans de Goede
Hi, Given the many comments in this thread, I'm just going reply to this one, and try to also answer any other ones in this mail. As far as the dual mode camera is involved, I agree that that should be fixed in the existing v4l2 drivers + libgphoto. I think that Felipe's solution to also handle

Re: Crash on unplug with the uvc driver in linuxtv/staging/for_v3.1

2011-06-11 Thread Laurent Pinchart
Hi Hans, On Thursday 09 June 2011 13:22:03 Hans de Goede wrote: Hi, When I unplug a uvc camera *while streaming* I get: [15824.809741] BUG: unable to handle kernel NULL pointer dereference at (null) [snip] I've not tested if this also impacts 3.0!! It probably does. Thanks

dual sveon stv22 Afatech af9015 support (kworld clone)

2011-06-11 Thread Lopez Lopez
Hello: I have patched af9015.c and dvb-usb-ids to support sveon stv22 ( KWorld USB Dual DVB-T TV Stick (DVB-T 399U)  clone ) dual with - #define USB_PID_SVEON_STV22                0xe401 --  in dvb-usb-ids.h file and - /* 30 */{USB_DEVICE(USB_VID_KWORLD_2, 

Re: [PATCH] usbvision: remove (broken) image format conversion

2011-06-11 Thread Mauro Carvalho Chehab
Hi Hans de G., Em 26-04-2011 08:54, Hans de Goede escreveu: If you could give it a shot that would be great. I've some hardware to test this with (although I've never actually tested that hardware), so I can hopefully pick things up if you cannot finish things before you need to return the

Re: [PATCH 09/10] rc-core: lirc use unsigned int

2011-06-11 Thread Mauro Carvalho Chehab
Em 06-05-2011 06:46, David Härdeman escreveu: On Wed, 04 May 2011 12:23:03 -0300, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 28-04-2011 12:13, David Härdeman escreveu: Durations can never be negative, so it makes sense to consistently use unsigned int for LIRC transmission. Contrary

[PATCH] tea575x: allow multiple opens

2011-06-11 Thread Ondrej Zary
Change locking to allow tea575x-radio device to be opened multiple times. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- linux-2.6.39-rc2-/include/sound/tea575x-tuner.h 2011-06-11 15:21:50.0 +0200 +++ linux-2.6.39-rc2/include/sound/tea575x-tuner.h 2011-06-11

[RFCv1 PATCH 0/7] tuner-core: fix g_freq/s_std and g/s_tuner

2011-06-11 Thread Hans Verkuil
While testing the new multi-standard tuner of the HVR-1600 (the cx18 driver) I came across a number of bugs in tuner-core that were recently introduced. This patch series fixes those bugs and cleans up some code that confused me. The bugs fixed in this series are: 1) 'type' is set by the

[RFCv1 PATCH 1/7] tuner-core: rename check_mode to supported_mode

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The check_mode function checks whether a mode is supported. So calling it supported_mode is more appropriate. In addition it returned either 0 or -EINVAL which suggests that the -EINVAL error should be passed on. However, that's not the case so change the

[RFCv1 PATCH 2/7] tuner-core: change return type of set_mode_freq to bool

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com set_mode_freq currently returns 0 or -EINVAL. But -EINVAL does not indicate a error that should be passed on, it just indicates that the tuner does not support the requested mode. So change the return type to bool. Signed-off-by: Hans Verkuil

[RFCv1 PATCH 6/7] tuner-core: fix g_tuner

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com g_tuner just returns the tuner data for the current tuner mode and the application does not have to set the tuner type. So don't test for a valid tuner type. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/tuner-core.c |2

[RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com According to the spec the tuner type field is not used when calling S_TUNER: index, audmode and reserved are the only writable fields. So remove the type check. Instead, just set the audmode if the current tuner mode is set to radio. Signed-off-by: Hans

[RFCv1 PATCH 3/7] tuner-core: fix g_frequency support.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com VIDIOC_G_FREQUENCY should not check the tuner type, instead that is something the driver fill in. Since apps will often leave the type at 0, the 'supported_mode' call will return false and the frequency never gets filled in. Remove this check.

[RFCv1 PATCH 5/7] tuner-core: fix s_std and s_tuner.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Both s_std and s_tuner are broken because set_mode_freq is called before the new std (for s_std) and audmode (for s_tuner) are set. This patch splits set_mode_freq in a set_mode and a set_freq and in s_std first calls set_mode, and if that returns true

Re: [PATCH] tea575x: allow multiple opens

2011-06-11 Thread Hans Verkuil
On Saturday, June 11, 2011 15:28:59 Ondrej Zary wrote: Change locking to allow tea575x-radio device to be opened multiple times. Very nice! Signed-off-by: Hans Verkuil hverk...@xs4all.nl Regards, Hans Signed-off-by: Ondrej Zary li...@rainbow-software.org ---

Re: [PATCH] [media] rc-core support for Microsoft IR keyboard/mouse

2011-06-11 Thread Mauro Carvalho Chehab
Em 03-06-2011 18:28, Jarod Wilson escreveu: This is a custom IR protocol decoder, for the RC-6-ish protocol used by the Microsoft Remote Keyboard. http://www.amazon.com/Microsoft-Remote-Keyboard-Windows-ZV1-4/dp/B000AOAAN8 Its a standard keyboard with embedded thumb stick mouse pointer

Re: [RFCv1 PATCH 3/7] tuner-core: fix g_frequency support.

2011-06-11 Thread Mauro Carvalho Chehab
Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com VIDIOC_G_FREQUENCY should not check the tuner type, instead that is something the driver fill in. Since apps will often leave the type at 0, the 'supported_mode' call will return false and the frequency

Re: [RFCv1 PATCH 6/7] tuner-core: fix g_tuner

2011-06-11 Thread Mauro Carvalho Chehab
Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com g_tuner just returns the tuner data for the current tuner mode and the application does not have to set the tuner type. So don't test for a valid tuner type. This also breaks support for a separate radio

Re: [RFCv1 PATCH 3/7] tuner-core: fix g_frequency support.

2011-06-11 Thread Hans Verkuil
On Saturday, June 11, 2011 15:44:43 Mauro Carvalho Chehab wrote: Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com VIDIOC_G_FREQUENCY should not check the tuner type, instead that is something the driver fill in. Since apps will often leave the

Re: [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode.

2011-06-11 Thread Mauro Carvalho Chehab
Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com According to the spec the tuner type field is not used when calling S_TUNER: index, audmode and reserved are the only writable fields. So remove the type check. Instead, just set the audmode if the

[RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Hans Verkuil
Second version of this patch series. It's the same as RFCv1, except that I dropped the g_frequency and g_tuner/s_tuner patches (patch 3, 6 and 7 in the original patch series) because I need to think more on those, and I added a new fix for tuner_resume which was broken as well. Regards,

[RFCv2 PATCH 1/5] tuner-core: rename check_mode to supported_mode

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The check_mode function checks whether a mode is supported. So calling it supported_mode is more appropriate. In addition it returned either 0 or -EINVAL which suggests that the -EINVAL error should be passed on. However, that's not the case so change the

[RFCv2 PATCH 2/5] tuner-core: change return type of set_mode_freq to bool

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com set_mode_freq currently returns 0 or -EINVAL. But -EINVAL does not indicate a error that should be passed on, it just indicates that the tuner does not support the requested mode. So change the return type to bool. Signed-off-by: Hans Verkuil

[RFCv2 PATCH 3/5] tuner-core: simplify the standard fixup.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Get rid of a number of unnecessary tuner_dbg messages by simplifying the std fixup function. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/tuner-core.c | 92 +++--- 1 files changed, 27

[RFCv2 PATCH 4/5] tuner-core: fix s_std and s_tuner.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Both s_std and s_tuner are broken because set_mode_freq is called before the new std (for s_std) and audmode (for s_tuner) are set. This patch splits set_mode_freq in a set_mode and a set_freq and in s_std first calls set_mode, and if that returns true

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Devin Heitmueller
On Sat, Jun 11, 2011 at 11:05 AM, Hans Verkuil hverk...@xs4all.nl wrote: Second version of this patch series. It's the same as RFCv1, except that I dropped the g_frequency and g_tuner/s_tuner patches (patch 3, 6 and 7 in the original patch series) because I need to think more on those, and I

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Hans Verkuil
On Saturday, June 11, 2011 17:32:10 Devin Heitmueller wrote: On Sat, Jun 11, 2011 at 11:05 AM, Hans Verkuil hverk...@xs4all.nl wrote: Second version of this patch series. It's the same as RFCv1, except that I dropped the g_frequency and g_tuner/s_tuner patches (patch 3, 6 and 7 in the

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Andy Walls
Hans Verkuil hverk...@xs4all.nl wrote: On Saturday, June 11, 2011 17:32:10 Devin Heitmueller wrote: On Sat, Jun 11, 2011 at 11:05 AM, Hans Verkuil hverk...@xs4all.nl wrote: Second version of this patch series. It's the same as RFCv1, except that I dropped the g_frequency and

Re: Improving kernel - userspace (usbfs) usb device hand off

2011-06-11 Thread Theodore Kilgore
On Sat, 11 Jun 2011, Hans de Goede wrote: Hi, Given the many comments in this thread, I'm just going reply to this one, and try to also answer any other ones in this mail. As far as the dual mode camera is involved, I agree that that should be fixed in the existing v4l2 drivers +

Re: [PATCH] Add support for PCTV452E.

2011-06-11 Thread Doychin Dokov
i've been using the patches in the latest media_tree for some hours - the S2-3650 CI seems to work. There's one thing that disturbs me, though - when it scans / locks on a frequency, another device on the same PC, using the same stb6100, gets stuck for a moment. Any ideas what might be the

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Devin Heitmueller
On Sat, Jun 11, 2011 at 12:06 PM, Andy Walls awa...@md.metrocast.net wrote: Devin, I think I have a Gotview or compro card with an xc2028.  Is that tuner capable of standby?  Would the cx18 or ivtv driver need to actively support using stand by? An xc2028/xc3028 should be fine, as that

Re: Improving kernel - userspace (usbfs) usb device hand off

2011-06-11 Thread Alan Stern
On Sat, 11 Jun 2011, Hans de Goede wrote: So what do we need to make this situation better: 1) A usb_driver callback alternative to the disconnect callback, I propose to call this soft_disconnect. This serves 2 purposes a) It will allow the driver to tell the caller that that is

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Devin Heitmueller
On Sat, Jun 11, 2011 at 11:53 AM, Hans Verkuil hverk...@xs4all.nl wrote: Do you happen to know not-too-expensive cards that you can buy that have this sort of tuners? It may be useful to be able to test this myself. Anything with an xc3028 or xc5000 would have this issue. I don't really keep

Re: [RFCv2 PATCH 0/5] tuner-core: fix s_std and s_tuner

2011-06-11 Thread Devin Heitmueller
On Sat, Jun 11, 2011 at 1:02 PM, Hans Verkuil hverk...@xs4all.nl wrote: OK, but how do you get it into standby in the first place? (I must be missing something here...) The tuner core puts the chip into standby when the last V4L filehandle is closed. Yes, I realize this violates the V4L spec

Re: [RFCv2 PATCH 4/5] tuner-core: fix s_std and s_tuner.

2011-06-11 Thread Hans Verkuil
On Saturday, June 11, 2011 17:05:30 Hans Verkuil wrote: From: Hans Verkuil hans.verk...@cisco.com Both s_std and s_tuner are broken because set_mode_freq is called before the new std (for s_std) and audmode (for s_tuner) are set. This patch splits set_mode_freq in a set_mode and a set_freq

Re: [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode.

2011-06-11 Thread Hans Verkuil
On Saturday, June 11, 2011 15:54:59 Mauro Carvalho Chehab wrote: Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com According to the spec the tuner type field is not used when calling S_TUNER: index, audmode and reserved are the only writable fields.

[PATCH 1/8] marvell-cam: Move cafe-ccic into its own directory

2011-06-11 Thread Jonathan Corbet
This driver will soon become a family of drivers, so let's give it its own place to live. This move requires putting ov7670.h into include/media, but there are no code changes. Cc: Daniel Drake d...@laptop.org Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/Kconfig

Refactor cafe_ccic and add Armada 610 driver [V2]

2011-06-11 Thread Jonathan Corbet
Here is the second posting of the cafe_ccic driver rework and the addition of the Armada 610 camera driver. Things have been somewhat cleaned up since the first time around, and I think that this series is ready to be queued for 3.1. Mauro, if you agree, the whole series can be pulled from:

[PATCH 3/8] marvell-cam: Pass sensor parameters from the platform

2011-06-11 Thread Jonathan Corbet
Depending on the controller, the ov7670 sensor may be told to work with a different clock speed or to use the SMBUS protocol. Remove the wired-in code and pass that information from the platform layer. The Cafe driver now just assumes it's running on an OLPC XO 1; I do not believe it has ever

[PATCH 5/8] marvell-cam: Move Cafe-specific register definitions to cafe-driver.c

2011-06-11 Thread Jonathan Corbet
Nobody else ever needs to see these, so let's hide them. Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/marvell-ccic/cafe-driver.c | 63 drivers/media/video/marvell-ccic/mcam-core.h | 56 +- 2 files changed, 64

[PATCH 4/8] marvell-cam: Remove the untested comment

2011-06-11 Thread Jonathan Corbet
This code is, indeed, tested :) Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/marvell-ccic/cafe-driver.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/marvell-ccic/cafe-driver.c

[PATCH 7/8] marvell-cam: Allocate the i2c adapter in the platform driver

2011-06-11 Thread Jonathan Corbet
The upcoming mmp-camera driver will need an i2c_adapter structure allocated externally, so change the core adapter to a pointer and require the platform code to fill it in. Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/marvell-ccic/cafe-driver.c |9 +++--

[PATCH 8/8] marvell-cam: Basic working MMP camera driver

2011-06-11 Thread Jonathan Corbet
Now we have a camera working over the marvell cam controller core. It works like the cafe driver and has all the same limitations, contiguous DMA only being one of them. But it's a start. Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/Makefile |1 +

[PATCH 6/8] marvell-cam: Right-shift i2c slave ID's in the cafe driver

2011-06-11 Thread Jonathan Corbet
This makes the cafe i2c implement consistent with the rest of Linux so that the core can use the same slave ID everywhere. Signed-off-by: Jonathan Corbet cor...@lwn.net --- drivers/media/video/marvell-ccic/cafe-driver.c |9 - drivers/media/video/marvell-ccic/mcam-core.c |2 +-

[RFCv3 PATCH 0/6] tuner-core: fix g_freq/s_std and g/s_tuner

2011-06-11 Thread Hans Verkuil
Third version of this patch series. Pretty much the same as RFCv2 (except for a small fix in the fourth patch) except for patch 6. This it my attempt to fix tuner-core without having to change any drivers. It just keeps track of whether the current application mode is valid for this tuner. If

[RFCv3 PATCH 2/6] tuner-core: change return type of set_mode_freq to bool

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com set_mode_freq currently returns 0 or -EINVAL. But -EINVAL does not indicate a error that should be passed on, it just indicates that the tuner does not support the requested mode. So change the return type to bool. Signed-off-by: Hans Verkuil

[RFCv3 PATCH 3/6] tuner-core: simplify the standard fixup.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Get rid of a number of unnecessary tuner_dbg messages by simplifying the std fixup function. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/tuner-core.c | 92 +++--- 1 files changed, 27

[RFCv3 PATCH 5/6] tuner-core: fix tuner_resume: use t-mode instead of t-type.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com set_mode is called with t-type, which is the tuner type. Instead, use t-mode which is the actual tuner mode (i.e. radio vs tv). Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/tuner-core.c |2 +- 1 files changed, 1

[RFCv3 PATCH 4/6] tuner-core: fix s_std and s_tuner.

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Both s_std and s_tuner are broken because set_mode_freq is called before the new std (for s_std) and audmode (for s_tuner) are set. This patch splits set_mode_freq in a set_mode and a set_freq and in s_std first calls set_mode, and if that returns true

[RFCv3 PATCH 6/6] tuner-core: fix g_frequency and g/s_tuner

2011-06-11 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com VIDIOC_G_FREQUENCY and VIDIOC_G/S_TUNER should not check the tuner type, instead that is something the driver fills in. Since apps will often leave the type at 0, the 'supported_mode' call will return false and the call just returns. But the call should

Re: [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode.

2011-06-11 Thread Andy Walls
Hans Verkuil hverk...@xs4all.nl wrote: On Saturday, June 11, 2011 15:54:59 Mauro Carvalho Chehab wrote: Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com According to the spec the tuner type field is not used when calling S_TUNER: index, audmode and

[cron job] v4l-dvb daily build: ERRORS

2011-06-11 Thread Hans Verkuil
This message is generated daily by a cron job that builds v4l-dvb for the kernels and architectures in the list below. Results of the daily build of v4l-dvb: date:Sat Jun 11 19:02:27 CEST 2011 git hash:f49c454fe981d955d7c3d620f6baa04fb9876adc gcc version: i686-linux-gcc (GCC)

Re: [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode.

2011-06-11 Thread Mauro Carvalho Chehab
Em 11-06-2011 14:27, Hans Verkuil escreveu: On Saturday, June 11, 2011 15:54:59 Mauro Carvalho Chehab wrote: Em 11-06-2011 10:34, Hans Verkuil escreveu: From: Hans Verkuil hans.verk...@cisco.com According to the spec the tuner type field is not used when calling S_TUNER: index, audmode and