[PATCH] Link firmware to physical device

2009-04-26 Thread Jean Delvare
Use the physical device rather than the i2c adapter as the reference device when loading firmwares. This will prevent the sysfs name collision with i2c-dev that has been reported many times. I may have missed other drivers which need the same fix. Signed-off-by: Jean Delvare kh...@linux-fr.org

Re: [PATCH 0/6] ir-kbd-i2c conversion to the new i2c binding model (v2)

2009-04-29 Thread Jean Delvare
On Fri, 17 Apr 2009 22:29:27 +0200, Jean Delvare wrote: Here comes an update of my conversion of ir-kbd-i2c to the new i2c binding model. I've split it into 6 pieces for easier review. (...) Did anyone test these patches, please? -- Jean Delvare -- To unsubscribe from this list: send the line

Re: [PATCH] pvrusb2: Don't use the internal i2c client list

2009-05-02 Thread Jean Delvare
On Fri, 1 May 2009 22:25:28 -0500 (CDT), Mike Isely wrote: On Thu, 30 Apr 2009, Mike Isely wrote: On Thu, 30 Apr 2009, Jean Delvare wrote: The i2c core used to maintain a list of client for each adapter. This is a duplication of what the driver core already does, so this list

[PATCH 0/8] ir-kbd-i2c conversion to the new i2c binding model (v3)

2009-05-13 Thread Jean Delvare
/linux/ir-kbd-i2c/ Additionally I've put a combined patch there, to make testing easier: http://jdelvare.pck.nerim.net/linux/ir-kbd-i2c/ir-kbd-i2c-conversion-ALL-IN-ONE.patch But for review the individual patches are much better. Thanks, -- Jean Delvare -- To unsubscribe from this list: send

[PATCH 1/8] ir-kbd-i2c: Don't use i2c_client.name for our own needs

2009-05-13 Thread Jean Delvare
In the standard device driver binding model, the name field of struct i2c_client is used to match devices to their drivers, so we must stop using it for internal purposes. Define a separate field in struct IR_i2c as a replacement, and use it. Signed-off-by: Jean Delvare kh...@linux-fr.org

[PATCH 2/8] ir-kbd-i2c: Switch to the new-style device binding model

2009-05-13 Thread Jean Delvare
. This would be more efficient and less risky than always probing extra addresses on all boards. I'll give it a try later. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Hans Verkuil hverk...@xs4all.nl Cc: Andy Walls awa...@radix.net Cc: Mike Isely

[PATCH 3/8] ir-kbd-i2c: Use initialization data

2009-05-13 Thread Jean Delvare
For specific boards, pass initialization data to ir-kbd-i2c instead of modifying the settings after the device is initialized. This is more efficient and easier to read. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/drivers/media/video/cx231xx/cx231xx-cards.c |3 linux/drivers

[PATCH 4/8] ir-kbd-i2c: Don't assume all IR receivers are supported

2009-05-13 Thread Jean Delvare
crash on unsupported IR devices. Simply, the driver will not bind to the unsupported devices. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Andy Walls awa...@radix.net --- linux/drivers/media/video/ir-kbd-i2c.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) --- v4l

[PATCH 5/8] saa7134: Simplify handling of IR on MSI t...@nywhere Plus

2009-05-13 Thread Jean Delvare
Now that we instantiate I2C IR devices explicitly, we can skip probing altogether on boards where the I2C IR device address is known. The MSI t...@nywhere Plus is one of these boards. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/drivers/media/video/saa7134/saa7134-input.c | 28

[PATCH 6/8] saa7134: Simplify handling of IR on AVerMedia Cardbus E506R

2009-05-13 Thread Jean Delvare
Now that we instantiate I2C IR devices explicitly, we can skip probing altogether on boards where the I2C IR device address is known. The AVerMedia Cardbus E506R is one of these boards. Signed-off-by: Jean Delvare kh...@linux-fr.org Tested-by: Oldrich Jedlicka oldium@seznam.cz --- linux

[PATCH 7/8] ivtv: Probe more I2C addresses for IR devices

2009-05-13 Thread Jean Delvare
Probe I2C addresses 0x71 and 0x6b for IR receiver devices (for the PVR150 and Adaptec cards, respectively.) Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Hans Verkuil hverk...@xs4all.nl --- linux/drivers/media/video/ivtv/ivtv-i2c.c|7 ++- linux/drivers/media/video

[PATCH 8/8] pvrusb2: Instantiate ir_video I2C device by default

2009-05-13 Thread Jean Delvare
Now that the ir-kbd-i2c driver has been converted to a new-style i2c driver, we can instantiate the ir_video I2C device by default. The pvr2_disable_ir_video is kept to disable the IR receiver, either because the user doesn't use it, or for debugging purpose. Signed-off-by: Jean Delvare kh

Re: [PATCH 0/8] ir-kbd-i2c conversion to the new i2c binding model (v3)

2009-05-14 Thread Jean Delvare
On Thu, 14 May 2009 21:25:02 +0200, Oldřich Jedlička wrote: On Wednesday 13 of May 2009 at 21:45:59, Jean Delvare wrote: Hi all, Here comes an update of my conversion of ir-kbd-i2c to the new i2c binding model. I've split it into 8 pieces for easier review. Firstly there is 1

Re: [PATCH 0/8] ir-kbd-i2c conversion to the new i2c binding model (v3)

2009-05-18 Thread Jean Delvare
On Sun, 17 May 2009 16:55:54 -0500 (CDT), Mike Isely wrote: On Wednesday 13 of May 2009 at 21:45:59, Jean Delvare wrote: Here comes an update of my conversion of ir-kbd-i2c to the new i2c binding model. I've split it into 8 pieces for easier review. Firstly there is 1 preliminary patch

Re: [PATCH] i2c: Simplified CONFIG_I2C=n interface.

2009-05-27 Thread Jean Delvare
anyway, because you certainly need to run different code paths depending on how the device is connected, and you also have to differentiate between the I2C support is missing case and the I2C device registration failed case, etc. -- Jean Delvare -- To unsubscribe from this list: send the line

Re: [PATCH] i2c: Simplified CONFIG_I2C=n interface.

2009-06-02 Thread Jean Delvare
Hi Mark, On Wed, 27 May 2009 13:01:40 +0100, Mark Brown wrote: On Wed, May 27, 2009 at 09:18:31AM +0200, Jean Delvare wrote: Violent nack. Drivers which optionally use I2C are a minority. It's extremely common for devices like the CODECs and PMICs used in embedded systems to have both

[PATCH] Add missing __devexit_p()

2009-06-04 Thread Jean Delvare
Add missing __devexit_p() to several drivers. Also add a few missing __init, __devinit and __exit markers. These errors could result in build failures depending on the kernel configuration. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/drivers/media/dvb/bt8xx/bt878.c

[PATCH] i2c: Don't advertise i2c functions when not available

2009-06-05 Thread Jean Delvare
On Tue, 2 Jun 2009 10:34:32 +0100, Mark Brown wrote: On Tue, Jun 02, 2009 at 09:12:29AM +0200, Jean Delvare wrote: What could be done, OTOH, is to surround all the function declarations in linux/i2c.h with a simple #ifdef CONFIG_I2C, so that mistakes are caught earlier (build time instead

Re: RFC: proposal for new i2c.h macro to initialize i2c address lists on the fly

2009-06-08 Thread Jean Delvare
. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: RFC: proposal for new i2c.h macro to initialize i2c address lists on the fly

2009-06-09 Thread Jean Delvare
. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [v4l-dvb-maintainer] 2.6.30: missing audio device in bttv

2009-06-12 Thread Jean Delvare
that still relies on autoprobing. If it comes first, then it seems to mess up tveeprom for some reason. Once ir-kbd-i2c no longer does autoprobing, then it probably should move back to the other i2c modules. Hopefully this will happen in the next few days :) -- Jean Delvare -- To unsubscribe

[PATCH] Stop defining I2C adapter IDs nobody uses

2009-06-19 Thread Jean Delvare
There is no point in defining I2C adapter IDs when no code is using them. As this field might go away in the future, stop using it when we don't need to. Signed-off-by: Jean Delvare kh...@linux-fr.org --- There are 2 different cases: * If ir-kbd-i2c tests the adapter ID on older kernels, we have

Re: [REVIEW] ivtv, ir-kbd-i2c: Explicit IR support for the AVerTV M116 for newer kernels

2009-10-05 Thread Jean Delvare
support fast I2C, up to 400 kHz but limited to 250 kHz by the i2c-algo-bit implementation. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [REVIEW] ivtv, ir-kbd-i2c: Explicit IR support for the AVerTV M116 for newer kernels

2009-10-05 Thread Jean Delvare
: i2c write to 71 failed Oct 5 11:41:16 moon kernel: [45431.031468] ivtv0: i2c: Slave did not ack That would be I2C probe attempts such as the ones done by ir-kbd-i2c. Nothing to be afraid of. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media

Re: [REVIEW] ivtv, ir-kbd-i2c: Explicit IR support for the AVerTV M116 for newer kernels

2009-10-05 Thread Jean Delvare
Hi Andy, On Sun, 04 Oct 2009 16:11:32 -0400, Andy Walls wrote: On Sun, 2009-10-04 at 10:54 +0200, Jean Delvare wrote: On Sat, 03 Oct 2009 11:44:20 -0400, Andy Walls wrote: /* This array should match the IVTV_HW_ defines */ @@ -126,7 +131,8 @@ wm8739, vp27smpx, m52790

Re: Details about DVB frontend API

2009-10-23 Thread Jean Delvare
Hi Devin, On Thu, 22 Oct 2009 15:27:20 -0400, Devin Heitmueller wrote: On Thu, Oct 22, 2009 at 3:13 PM, Jean Delvare kh...@linux-fr.org wrote: Hi folks, I am looking for details regarding the DVB frontend API. I've read linux-dvb-api-1.0.0.pdf, it roughly explains what the FE_READ_BER

Re: Details about DVB frontend API

2009-10-23 Thread Jean Delvare
On Thu, 22 Oct 2009 21:13:30 +0200, Jean Delvare wrote: For example, the signal strength. All I know so far is that this is a 16-bit value. But then what? Do greater values represent stronger signal or weaker signal? Are 0x and 0x special values? Is the returned value meaningful even

Re: Details about DVB frontend API

2009-11-17 Thread Jean Delvare
calls are taken from the same original register value. One advantage is that we thus did not have to map the API to the hardware register constraints and thus have the guarantee that all hardware designs fit. I don't know if a similar logic would help for DVB. -- Jean Delvare -- To unsubscribe

Re: IR Receiver on an Tevii S470

2009-11-22 Thread Jean Delvare
to live in the lm-sensors package (up to 2.10.x) but is now in i2c-tools: http://www.lm-sensors.org/wiki/I2CTools With that information, I should be able to figure out what I2C address that microcontroller is listening to. -- Jean Delvare -- To unsubscribe from this list: send the line

Re: IR Receiver on an Tevii S470

2009-11-22 Thread Jean Delvare
commands for all the addresses. Beware though that some chips are known to not like it at all (in particular the infamous AT24RF08... not that I expect to ever see one on a TV adapter but you never know.) At least the above scan has already found 3 chips. -- Jean Delvare -- To unsubscribe from

Re: IR Receiver on an Tevii S470

2009-11-23 Thread Jean Delvare
On Sun, 22 Nov 2009 19:17:59 -0500, Andy Walls wrote: On Sun, 2009-11-22 at 21:32 +0100, Jean Delvare wrote: The fact that 0x30-0x37 and 0x50-0x5f all reply suggest that the bus driver erroneously returns success to SMBus receive byte transactions even when no device acks. This is a bug

cx88 remote control event device

2010-03-31 Thread Jean Delvare
. Can't we have the cx88 driver poll the remote control only when the device node is opened? I believe this would save some power by allowing the CPU to stay in higher C states. Thanks, -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message

Re: cx88 remote control event device

2010-03-31 Thread Jean Delvare
Hi Mauro, On Wed, 31 Mar 2010 14:46:37 -0300, Mauro Carvalho Chehab wrote: Hi Jean, Jean Delvare wrote: Hi Andrzej, Last year, you submitted a fix for the cx88 remote control not behaving properly on some cards. The fix works fine for me and lets me use my remote control, and I am

[PATCH 1/2] i2c: Add support for custom probe function

2010-04-04 Thread Jean Delvare
The probe method used by i2c_new_probed_device() may not be suitable for all cases. Let the caller provide its own, optional probe function. Signed-off-by: Jean Delvare kh...@linux-fr.org --- Documentation/i2c/instantiating-devices |2 drivers/i2c/i2c-core.c| 65

[PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-04-04 Thread Jean Delvare
Now that i2c-core offers the possibility to provide custom probing function for I2C devices, let's make use of it. Signed-off-by: Jean Delvare kh...@linux-fr.org --- I wasn't too sure where to put the custom probe function: in each driver, in the ir-common module or in the v4l2-common module. I

Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-04-05 Thread Jean Delvare
Hi Andy, On Sun, 04 Apr 2010 21:54:39 -0400, Andy Walls wrote: On Sun, 2010-04-04 at 16:14 +0200, Jean Delvare wrote: Now that i2c-core offers the possibility to provide custom probing function for I2C devices, let's make use of it. Signed-off-by: Jean Delvare kh...@linux-fr.org

Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-04-05 Thread Jean Delvare
Hi Mauro, On Mon, 05 Apr 2010 15:26:32 -0300, Mauro Carvalho Chehab wrote: Jean Delvare wrote: Now that i2c-core offers the possibility to provide custom probing function for I2C devices, let's make use of it. Signed-off-by: Jean Delvare kh...@linux-fr.org --- I wasn't too sure

Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-04-06 Thread Jean Delvare
Hi Mauro, On Tue, 06 Apr 2010 02:34:46 -0300, Mauro Carvalho Chehab wrote: Jean Delvare wrote: On Mon, 05 Apr 2010 15:26:32 -0300, Mauro Carvalho Chehab wrote: Please, don't add new things at ir-common module. It basically contains the decoding functions for RC5 and pulse/distance, plus

Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-04-09 Thread Jean Delvare
Hi Mauro, On Fri, 09 Apr 2010 01:09:08 -0300, Mauro Carvalho Chehab wrote: Jean Delvare wrote: There are no other probing functions yet, this is the first one. I have added the mechanism to i2c-core for these very IR chips. Putting all probe functions together would mean moving them

Re: [patch] video/saa7134: potential null dereferences in debug code

2010-05-22 Thread Jean Delvare
() could be replaced with i2cdprintk (which is misnamed IMHO, BTW.) -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [patch v3 1/2] video/saa7134: change dprintk() to i2cdprintk()

2010-05-26 Thread Jean Delvare
Hi Dan, On Tue, 25 May 2010 11:19:53 +0200, Dan Carpenter wrote: The problem is that dprintk() dereferences dev which is null here. The i2cdprintk() uses ir so that's OK. Signed-off-by: Dan Carpenter erro...@gmail.com --- v2: Jean Delvare suggested that I use i2cdprintk() instead

Re: [patch v3 2/2] video/saa7134: remove duplicate break

2010-05-26 Thread Jean Delvare
On Tue, 25 May 2010 11:21:50 +0200, Dan Carpenter wrote: The original code had two break statements in a row. Signed-off-by: Dan Carpenter erro...@gmail.com Acked-by: Jean Delvare kh...@linux-fr.org --- v3: Put this in a seperate patch. diff --git a/drivers/media/video/saa7134/saa7134

[PATCH RESEND] FusionHDTV: Use quick reads for I2C IR device probing

2010-05-26 Thread Jean Delvare
a custom probing function. Signed-off-by: Jean Delvare kh...@linux-fr.org Tested-by: Timothy D. Lenz tl...@vorgon.com --- This fix applies to kernels 2.6.31 to 2.6.34. Should be sent to Linus quickly. I had already sent on March 29th, but apparently it was overlooked. I have further i2c patches which

Re: [patch] video/saa7134: potential null dereferences in debug code

2010-05-29 Thread Jean Delvare
On Sat, 29 May 2010 01:29:54 -0300, Mauro Carvalho Chehab wrote: Em Sat, 22 May 2010 22:59:21 +0200 Jean Delvare kh...@linux-fr.org escreveu: I would have used (null) instead of null for consistency with lib/vsprintf.c:string(). But more importantly, I suspect that a better fix would

Re: [PATCH] drivers: remove all i2c_set_clientdata(client, NULL)

2010-05-31 Thread Jean Delvare
it all in one go. If I take the patch in my i2c tree, the aim is to merge it upstream immediately, so merge issues won't exist. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] drivers: remove all i2c_set_clientdata(client, NULL)

2010-06-01 Thread Jean Delvare
e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers. As there is no need anymore to clear the clientdata-pointer, remove all current occurrences in the drivers to simplify the code and prevent confusion. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Cc: Jean Delvare kh...@linux-fr.org

Re: [PATCH RESEND] FusionHDTV: Use quick reads for I2C IR device probing

2010-06-04 Thread Jean Delvare
Mauro, On Wed, 26 May 2010 15:05:11 +0200, Jean Delvare wrote: IR support on FusionHDTV cards is broken since kernel 2.6.31. One side effect of the switch to the standard binding model for IR I2C devices was to let i2c-core do the probing instead of the ir-kbd-i2c driver. There is a slight

[PATCH 1/2] i2c: Add support for custom probe function

2010-06-08 Thread Jean Delvare
The probe method used by i2c_new_probed_device() may not be suitable for all cases. Let the caller provide its own, optional probe function. Signed-off-by: Jean Delvare kh...@linux-fr.org Acked-by: Mauro Carvalho Chehab mche...@redhat.com --- Documentation/i2c/instantiating-devices |2

[PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-06-08 Thread Jean Delvare
Now that i2c-core offers the possibility to provide custom probing function for I2C devices, let's make use of it. Signed-off-by: Jean Delvare kh...@linux-fr.org Acked-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/i2c/i2c-core.c|7 +++ drivers/media/video

Re: [PATCH 2/2] V4L/DVB: Use custom I2C probing function mechanism

2010-06-09 Thread Jean Delvare
Hi Wolfram, On Wed, 9 Jun 2010 17:05:40 +0200, Wolfram Sang wrote: Hi Jean, On Tue, Jun 08, 2010 at 10:01:00AM +0200, Jean Delvare wrote: Now that i2c-core offers the possibility to provide custom probing function for I2C devices, let's make use of it. Signed-off-by: Jean Delvare kh

Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used

2010-06-14 Thread Jean Delvare
of warning gcc 4.6.0 generates. Depends which warnings we value more, as we can't sanely have both. mutex_unlock(core_lock); return 0; -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 7/8]ieee1394/sdp2 Fix warning: variable 'unit_characteristics' set but not used

2010-06-15 Thread Jean Delvare
? ud-model_id : SBP2_ROM_VALUE_MISSING; -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used

2010-06-15 Thread Jean Delvare
Hi David, On Mon, 14 Jun 2010 14:28:57 -0700, David Daney wrote: On 06/14/2010 01:53 PM, Jean Delvare wrote: Hi Justin, On Mon, 14 Jun 2010 13:26:46 -0700, Justin P. Mattock wrote: could be a right solution, could be wrong here is the warning: CC drivers/i2c/i2c-core.o

Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used

2010-06-15 Thread Jean Delvare
Hi Justin, On Mon, 14 Jun 2010 14:06:12 -0700, Justin P. Mattock wrote: On 06/14/2010 01:53 PM, Jean Delvare wrote: Hi Justin, On Mon, 14 Jun 2010 13:26:46 -0700, Justin P. Mattock wrote: could be a right solution, could be wrong here is the warning: CC drivers/i2c/i2c-core.o

Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used

2010-06-16 Thread Jean Delvare
On Tue, 15 Jun 2010 09:20:39 -0700, David Daney wrote: On 06/15/2010 04:40 AM, Jean Delvare wrote: __process_new_adapter() calls i2c_do_add_adapter() which always returns 0. Why should I check the return value of bus_for_each_drv() when I know it will always be 0 by construction? Also

[PATCH 1/2] V4L/DVB: cx88: Move I2C IR initialization

2010-06-28 Thread Jean Delvare
to disable IR support (coming soon.) Signed-off-by: Jean Delvare kh...@linux-fr.org --- drivers/media/video/cx88/cx88-cards.c |1 + drivers/media/video/cx88/cx88-i2c.c |6 +- drivers/media/video/cx88/cx88.h |1 + 3 files changed, 7 insertions(+), 1 deletion(-) --- linux-2.6.34-rc3

[PATCH 2/2] V4L/DVB: cx88: Let the user disable IR support

2010-06-28 Thread Jean Delvare
It might be useful to be able to disable the IR support, either for debugging purposes, or just for users who know they won't use the IR remote control anyway. On many cards, IR support requires expensive polling/sampling which is better avoided if never needed. Signed-off-by: Jean Delvare kh

Re: KWorld ATSC 115 all static

2009-01-16 Thread Jean Delvare
, as presumably this only happens once at initialization time? -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: KWorld ATSC 115 all static

2009-01-16 Thread Jean Delvare
Hi Trent, On Fri, 16 Jan 2009 05:34:59 -0800 (PST), Trent Piepho wrote: On Fri, 16 Jan 2009, Jean Delvare wrote: Hi Mauro, Trent, On Fri, 16 Jan 2009 00:02:52 -0200, Mauro Carvalho Chehab wrote: For now, we should finish the Hans approach, since it also helps to stop using

Re: KWorld ATSC 115 all static

2009-01-18 Thread Jean Delvare
Hi Trent, On Sat, 17 Jan 2009 11:45:57 -0800 (PST), Trent Piepho wrote: On Fri, 16 Jan 2009, Jean Delvare wrote: On Fri, 16 Jan 2009 05:34:59 -0800 (PST), Trent Piepho wrote: How will this work for drivers like bttv, where the i2c address of the tuner chips isn't know for every supported

Re: cx88-dvb broken since 2.6.29-rc1

2009-02-01 Thread Jean Delvare
On Sun, 1 Feb 2009 11:42:57 -0200, Mauro Carvalho Chehab wrote: On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare kh...@linux-fr.org wrote: On Thu, 29 Jan 2009 19:24:31 -0200, Mauro Carvalho Chehab wrote: I have already a pull request almost ready that will fix this issue. I'll likely

Re: [PATCH] saa7146_i2c: saa7146_i2c_transfer() wrong?

2009-02-01 Thread Jean Delvare
this. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cx88-dvb broken since 2.6.29-rc1

2009-02-03 Thread Jean Delvare
On Sun, 1 Feb 2009 11:42:57 -0200, Mauro Carvalho Chehab wrote: On Sun, 1 Feb 2009 14:29:27 +0100 Jean Delvare kh...@linux-fr.org wrote: Hi Mauro, On Thu, 29 Jan 2009 19:24:31 -0200, Mauro Carvalho Chehab wrote: On Thu, 29 Jan 2009 22:10:12 +0100 Jean Delvare kh...@linux-fr.org

General protection fault on rmmod cx8800

2009-02-15 Thread Jean Delvare
happen on each rmmod cx8800, but as I managed to reproduce it once, I guess I should be able to reproduce it again if needed. Please let me know if you need more information or want me to test something. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media

Minimum kernel version supported by v4l-dvb

2009-02-17 Thread Jean Delvare
to be too high, so there's a balance to be found between users and developers. At the moment the balance isn't right IMHO. Thanks, -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCH v4l-dvb] Drop test for kernel version 2.6.15

2009-02-17 Thread Jean Delvare
The v4l-dvb repository supports kernel versions 2.6.16 and later only, so no need to test for kernel version 2.6.15. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/drivers/media/dvb/dvb-usb/af9015.c |3 --- 1 file changed, 3 deletions(-) --- v4l-dvb-zoran.orig/linux/drivers/media

Re: Minimum kernel version supported by v4l-dvb

2009-02-18 Thread Jean Delvare
is the way to go, I'm not going to prevent you from going down that road. As a kernel developer, that would make me very happy. But I remember that the hg tree is there to help users test the newest developments without running a bleeding-edge kernel, and that certainly makes some sense. Thanks, -- Jean

Re: Minimum kernel version supported by v4l-dvb

2009-02-21 Thread Jean Delvare
Hi Mauro, Only answering points Hans didn't already answered (and I agree with him): On Fri, 20 Feb 2009 21:23:27 -0300, Mauro Carvalho Chehab wrote: On Wed, 18 Feb 2009 14:01:05 +0100 Jean Delvare kh...@linux-fr.org wrote: Not necessarily something to be proud about. This only shows how

Re: Minimum kernel version supported by v4l-dvb

2009-02-21 Thread Jean Delvare
, why don't send your patches out to Hans and myself for review? If you came up with simplifications that work, we will be very happy to apply them. Thanks, -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org

Re: Minimum kernel version supported by v4l-dvb

2009-02-21 Thread Jean Delvare
On Sat, 21 Feb 2009 14:28:31 +0100, Hans Verkuil wrote: On Saturday 21 February 2009 14:11:30 Jean Delvare wrote: Well, that's basically what Hans has been doing with v4l2-i2c-drv-legacy.h for months now, isn't it? This is the easy part (even though even this wasn't exactly trivial

Re: Minimum kernel version supported by v4l-dvb

2009-02-21 Thread Jean Delvare
on the result you then call i2c_new_device(A) or i2c_new_device(B). The 3rd method is very similar to the legacy i2c binding model. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info

Re: Minimum kernel version supported by v4l-dvb

2009-02-21 Thread Jean Delvare
, and it is a good that I am not in charge of anything. Actually, it would totally please me :) -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Minimum kernel version supported by v4l-dvb

2009-02-22 Thread Jean Delvare
Hi Trent, On Sat, 21 Feb 2009 05:58:10 -0800 (PST), Trent Piepho wrote: On Sat, 21 Feb 2009, Jean Delvare wrote: Well, that's basically what Hans has been doing with v4l2-i2c-drv-legacy.h for months now, isn't it? This is the easy part (even though even this wasn't exactly trivial

Re: [PULL] http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-zoran

2009-02-22 Thread Jean Delvare
. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: POLL: for/against dropping support for kernels 2.6.22

2009-02-23 Thread Jean Delvare
them into ex-developers when they realize they lost all the fun, and prevents new developers from joining the project because of the complexity of the compatibility layer. So let's just drop support for kernels 2.6.22 and focus on better supporting upstream and recent kernels. Thanks, -- Jean

Re: Conversion of vino driver for SGI to not use the legacy decoder API

2009-02-27 Thread Jean Delvare
that, so if we can't find a tester and it has to stay for a few more years, this really isn't a problem for me. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PULL] http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-zoran

2009-03-01 Thread Jean Delvare
users with failed buffer allocation kmalloc() can fail for large video buffers. By default the kernel complains loudly about allocation failures, but we don't want to frighten the user, so ask kmalloc() to keep quiet on such failures. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux

Re: General protection fault on rmmod cx8800

2009-03-02 Thread Jean Delvare
Hi Andy, On Mon, 02 Mar 2009 09:16:05 -0500, Andy Walls wrote: On Mon, 2009-03-02 at 13:39 +0100, Jean Delvare wrote: On Sun, 15 Feb 2009 21:41:08 +0100, Jean Delvare wrote: Hi all, Today I have hit the following general protection fault when removing module cx8800: This has

Re: General protection fault on rmmod cx8800

2009-03-02 Thread Jean Delvare
On Mon, 2 Mar 2009 17:03:49 +0100, Jean Delvare wrote: As far as I can see the key difference between bttv-input and cx88-input is that bttv-input only uses a simple self-rearming timer, while cx88-input uses a timer and a separate workqueue. The timer runs the workqueue, which rearms

Re: General protection fault on rmmod cx8800

2009-03-03 Thread Jean Delvare
On Tue, 3 Mar 2009 12:14:06 -0800 (PST), Trent Piepho wrote: On Tue, 3 Mar 2009, Jean Delvare wrote: On Tue, 3 Mar 2009 01:40:00 -0800 (PST), Trent Piepho wrote: On Mon, 2 Mar 2009, Jean Delvare wrote: In 2.6.20 delayed_work was split from work_struct. The concept of delayed work

Re: [PATCH] cx88: Prevent general protection fault on rmmod

2009-03-05 Thread Jean Delvare
On Thu, 5 Mar 2009 01:43:55 -0800 (PST), Trent Piepho wrote: On Thu, 5 Mar 2009, Jean Delvare wrote: +#if LINUX_VERSION_CODE KERNEL_VERSION(2,6,20) struct work_struct work; struct timer_list timer; +#else + struct delayed_work work; +#endif You don't need this compat

Re: [PATCH] Fix race in infrared polling on rmmod

2009-03-05 Thread Jean Delvare
Hi Devin, On Thu, 5 Mar 2009 13:03:00 -0500, Devin Heitmueller wrote: On Thu, Mar 5, 2009 at 4:39 AM, Jean Delvare kh...@linux-fr.org wrote: I would suggest that this patch be broken into three separate patches, and then they can go in as the individual maintainers have the opportunity

[PATCH] zoran: Drop the lock_norm module parameter

2009-03-07 Thread Jean Delvare
The lock_norm module parameter doesn't look terribly useful. If you don't want to change the norm, just don't change it. As a matter of fact, no other v4l driver has such a parameter. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Trent Piepho xy...@speakeasy.org Cc: Hans Verkuil hverk

[PATCH] zoran: Don't frighten users with failed buffer allocation

2009-03-07 Thread Jean Delvare
kmalloc() can fail for large video buffers. By default the kernel complains loudly about allocation failures, but we don't want to frighten the user, so ask kmalloc() to keep quiet on such failures. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Trent Piepho xy...@speakeasy.org Cc: Hans

[PATCH] cx88: Prevent general protection fault on rmmod

2009-03-07 Thread Jean Delvare
When unloading the cx8800 driver I sometimes get a general protection fault. Analysis revealed a race in cx88_ir_stop(). It can be solved by using a delayed work instead of a timer for infrared input polling. Signed-off-by: Jean Delvare kh...@linux-fr.org --- Thanks to Trent's compatibility

[PATCH] em28xx: Prevent general protection fault on rmmod

2009-03-07 Thread Jean Delvare
The removal of the timer which polls the infrared input is racy. Replacing the timer with a delayed work solves the problem. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Devin Heitmueller devin.heitmuel...@gmail.com --- linux/drivers/media/video/em28xx/em28xx-input.c | 24

[PATCH] ir-kbd-i2c: Prevent general protection fault on rmmod

2009-03-07 Thread Jean Delvare
The removal of the timer which polls the infrared input is racy. Replacing the timer with a delayed work solves the problem. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/drivers/media/video/ir-kbd-i2c.c | 22 ++ linux/include/media/ir-kbd-i2c.h |3

Re: [hg:v4l-dvb] cx88: Prevent general protection fault on rmmod

2009-03-11 Thread Jean Delvare
On Wed, 11 Mar 2009 04:55:19 +0100, Patch from Jean Delvare wrote: The patch number 10935 was added via Mauro Carvalho Chehab mche...@redhat.com to http://linuxtv.org/hg/v4l-dvb master development tree. Kernel patches in this development tree may be modified to be backward compatible

[PATCH] MAINTAINERS: Drop references to deprecated video4linux list

2009-03-14 Thread Jean Delvare
Mailing list video4linux-l...@redhat.com is deprecated, so drop references to it in MAINTAINERS. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Mauro Carvalho Chehab mche...@infradead.org --- MAINTAINERS |2 -- 1 file changed, 2 deletions(-) --- linux-2.6.29-rc8.orig/MAINTAINERS 2009

[PATCH] Update remaining references to old video4linux list

2009-03-14 Thread Jean Delvare
The video4linux-l...@redhat.com list is deprecated, point the users to the new linux-media list instead. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux/Documentation/video4linux/bttv/README |4 ++-- linux/drivers/media/radio/radio-si470x.c |4 ++-- linux/drivers/media

Re: [PATCH] Update remaining references to old video4linux list

2009-03-14 Thread Jean Delvare
Hi Hans, On Sat, 14 Mar 2009 22:39:35 +0100, Hans Verkuil wrote: On Saturday 14 March 2009 22:25:14 Jean Delvare wrote: The video4linux-l...@redhat.com list is deprecated, point the users to the new linux-media list instead. Signed-off-by: Jean Delvare kh...@linux-fr.org --- linux

[PATCH] Fix notify callback prototype

2009-03-15 Thread Jean Delvare
I see the following warning when building the zoran driver: v4l/zoran_card.c: In function 'zoran_probe': v4l/zoran_card.c:1243: warning: assignment from incompatible pointer type Fixing the notify callback prototype solves it. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Hans Verkuil hverk

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-15 Thread Jean Delvare
-i2c drivers, so I might as well be completely off track. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-15 Thread Jean Delvare
On Sun, 15 Mar 2009 10:42:41 -0700 (PDT), Trent Piepho wrote: On Sun, 15 Mar 2009, Jean Delvare wrote: On Sun, 15 Mar 2009 13:44:01 +0100, Hans Verkuil wrote: This is the typical multifunction device problem. It isn't specifically related to I2C, the exact same problem happens for other

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-15 Thread Jean Delvare
Hi Andy, On Sun, 15 Mar 2009 15:34:33 -0400, Andy Walls wrote: On Sun, 2009-03-15 at 18:12 +0100, Jean Delvare wrote: Hi Hans, On Sun, 15 Mar 2009 13:44:01 +0100, Hans Verkuil wrote: Hi Mauro, Jean, When converting the bttv driver to v4l2_subdev I found one probing conflict

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-15 Thread Jean Delvare
with the current situation. Or even slightly better since we can now ensure that audio is working at least. Agreed. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-16 Thread Jean Delvare
the same I2C device. And even if only one driver accesses the I2C device, all accesses that can happen in parallel (for example triggered by sysfs attribute reads or writes) may have to be serialized by the driver. -- Jean Delvare -- To unsubscribe from this list: send the line unsubscribe linux

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-16 Thread Jean Delvare
Hi Mauro, On Mon, 16 Mar 2009 06:34:02 -0300, Mauro Carvalho Chehab wrote: On Sun, 15 Mar 2009 18:53:13 +0100 Jean Delvare kh...@linux-fr.org wrote: On Sun, 15 Mar 2009 10:42:41 -0700 (PDT), Trent Piepho wrote: You can also split the device into multiple devices. Most SoCs have one

Re: bttv, tvaudio and ir-kbd-i2c probing conflict

2009-03-16 Thread Jean Delvare
Hi Mauro, On Mon, 16 Mar 2009 09:52:37 -0300, Mauro Carvalho Chehab wrote: On Mon, 16 Mar 2009 12:18:01 +0100 Jean Delvare kh...@linux-fr.org wrote: I really don't see any problem there. There are many drivers (i2c or not) in the kernel which do exactly this and this works just fine. We

PCTV teleScope: good or not?

2012-02-07 Thread Jean Delvare
is supported since kernel 2.6.26, which looks promising. However, before I actually buy it, I would love to hear from someone actually using this device under Linux. Anyone? Is there anything to worry about, or can I just buy it? Thanks, -- Jean Delvare -- To unsubscribe from this list: send the line

<    1   2   3   4   >