Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread David Härdeman
On Fri, Apr 09, 2010 at 11:00:41AM -0300, Mauro Carvalho Chehab wrote: > struct { > unsigned mark : 1; > unsigned duration :31; > } > > There's no memory spend at all: it will use just one unsigned int and it is > clearly indicated what's mark and what's duration. If all three of you

OOPS: cx18

2010-04-09 Thread Darren Blaber
I recieved an oops today while loading the cx18 driver: [342153.973342] cx18: Start initialization, version 1.4.0 [342153.974007] cx18-0: Initializing card 0 [342153.974012] cx18-0: Autodetected Hauppauge card [342153.974451] cx18 :07:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [342153

Re: [PATCH 4/4] Add RC6 support to ir-core

2010-04-09 Thread Andy Walls
On Fri, 2010-04-09 at 01:04 +0200, David Härdeman wrote: > This patch adds an RC6 decoder (modes 0 and 6A) to ir-core. > > Signed-off-by: David Härdeman David, Overall, a nice job of implementing RC6 decoder logic. I have a few comments below (along with some of me reasoning to myself out loud)

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Mauro Carvalho Chehab
Jon Smirl wrote: > On Fri, Apr 9, 2010 at 7:32 PM, Mauro Carvalho Chehab > wrote: > >> [1] Yet, none of the in-hardware decoders allow resume, AFAIK. With a >> software >> decoder, the IR IRQ might be used to wake, but this means that everything, >> even a glitch, would wake the hardware, so thi

Re: [PATCH] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Mauro Carvalho Chehab
Andy Walls wrote: > On Thu, 2010-04-08 at 18:10 +0200, David Härdeman wrote: > >> With this patch: >> >> s64 int's are used to represent pulse/space durations in ns > > If performing divides on 64 bit numbers, please check to make sure your > code compiles, links, and loads on a 32-bit system. >

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread hermann pitton
Hi! Am Freitag, den 09.04.2010, 20:32 -0300 schrieb Mauro Carvalho Chehab: > Andy Walls wrote: > > On Fri, 2010-04-09 at 17:55 -0400, Devin Heitmueller wrote: > >> On Fri, Apr 9, 2010 at 9:01 AM, Mauro Carvalho Chehab > >> wrote: > >>> [1] Basically, a keycode (like KEY_POWER) could be used to wa

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Mauro Carvalho Chehab
Andy Walls wrote: > On Thu, 2010-04-08 at 13:39 +0200, David Härdeman wrote: > Encoding pulse vs space with a negative sign, even if now hidden with > macros, is still just using a sign instead of a boolean. Memory in > modern computers (and now microcontrollers) is cheap and only getting > cheap

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Jon Smirl
On Fri, Apr 9, 2010 at 7:32 PM, Mauro Carvalho Chehab wrote: > [1] Yet, none of the in-hardware decoders allow resume, AFAIK. With a software > decoder, the IR IRQ might be used to wake, but this means that everything, > even a glitch, would wake the hardware, so this won't work neither. On my e

Re: [PATCH] DVB-T initial scan file for Israel (dvb-utils)

2010-04-09 Thread hermann pitton
Hi Shaul, Am Samstag, den 10.04.2010, 02:16 +0300 schrieb Shaul Kremer: > Hi, > > Here is an initial scan file for IBA's DVB-T transmitters. > > Generated from info at http://www.iba.org.il/reception/ (Hebrew) > > # HG changeset patch > # User Shaul Kremer > # Date 1270854557 -10800 > # Node I

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Mauro Carvalho Chehab
Andy Walls wrote: > On Fri, 2010-04-09 at 17:55 -0400, Devin Heitmueller wrote: >> On Fri, Apr 9, 2010 at 9:01 AM, Mauro Carvalho Chehab >> wrote: >>> [1] Basically, a keycode (like KEY_POWER) could be used to wake up the >>> machine. So, by >>> associating some scancode to KEY_POWER via ir-core,

[PATCH] DVB-T initial scan file for Israel (dvb-utils)

2010-04-09 Thread Shaul Kremer
Hi, Here is an initial scan file for IBA's DVB-T transmitters. Generated from info at http://www.iba.org.il/reception/ (Hebrew) # HG changeset patch # User Shaul Kremer # Date 1270854557 -10800 # Node ID ac84f6db6f031db82509c247ac1775ca48b0e2f3 # Parent 7de0663facd92bbb9049aeeda3dcba9601228f30

[PATCH] s2255drv: removes kref tracking and videodev parent

2010-04-09 Thread sensoray-dev
# HG changeset patch # User Dean Anderson # Date 1270853488 25200 # Node ID f2f44853e2eb914d4fc6c7004631839b86fb6d0e # Parent 040de984898870b01dfe553319aa18edb3a442bb s2255drv: removes kref tracking and videodev parent From: Dean Anderson kref replaced as suggested in code review uses atomic v

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Andy Walls
On Fri, 2010-04-09 at 17:55 -0400, Devin Heitmueller wrote: > On Fri, Apr 9, 2010 at 9:01 AM, Mauro Carvalho Chehab > wrote: > > [1] Basically, a keycode (like KEY_POWER) could be used to wake up the > > machine. So, by > > associating some scancode to KEY_POWER via ir-core, the driver can progra

[PATCH] s2255drv: v4l2_dev bug fix

2010-04-09 Thread sensoray-dev
# HG changeset patch # User Dean Anderson # Date 1270850190 25200 # Node ID 040de984898870b01dfe553319aa18edb3a442bb # Parent f987f637d904a281992844f2b17f805edd4734c2 s2255drv: v4l2_dev fixed From: Dean Anderson v4l2_dev should be registered once only. usb_set_intfdata should not be used when

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Devin Heitmueller
On Fri, Apr 9, 2010 at 9:01 AM, Mauro Carvalho Chehab wrote: > [1] Basically, a keycode (like KEY_POWER) could be used to wake up the > machine. So, by > associating some scancode to KEY_POWER via ir-core, the driver can program > the hardware > to wake up the machine with the corresponding scan

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread James Hogan
On Fri, Apr 09, 2010 at 06:50:26AM -0400, Andy Walls wrote: > If you're waiting for me to get that working, I'll advise you to plan on > getting off the couch and pushing the power switch for some time to > come. ;) :-) On Friday 09 April 2010 14:01:46 Mauro Carvalho Chehab wrote: > The additions

Re: [PATCH] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Andy Walls
On Thu, 2010-04-08 at 18:10 +0200, David Härdeman wrote: > With this patch: > > s64 int's are used to represent pulse/space durations in ns If performing divides on 64 bit numbers, please check to make sure your code compiles, links, and loads on a 32-bit system. We've had problems in the past

Re: [PATCH] V4L/DVB: saa7146: IRQF_DISABLED causes only trouble

2010-04-09 Thread Andy Walls
On Thu, 2010-04-08 at 12:05 +0200, Bjørn Mork wrote: > Ehh, this is very embarrassing, but please disregard all my > statements about a hanging system related to IRQF_DISABLED. > > It turns out that I've had a faulty SATA hard drive which probably have > caused all these problems. I do not un

Found NEC IR specification in NEC uPD6122 datasheet (Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations)

2010-04-09 Thread Andy Walls
On Fri, 2010-04-09 at 11:00 -0300, Mauro Carvalho Chehab wrote: > Jon Smirl wrote: > >>> #define NEC_NBITS32 > >>> -#define NEC_UNIT 559979 /* ns */ > >>> -#define NEC_HEADER_MARK (16 * NEC_UNIT) > >>> -#define NEC_HEADER_SPACE (8 * NEC_UNIT) > >>> -#defin

[cron job] v4l-dvb daily build 2.6.22 and up: ERRORS, 2.6.16-2.6.21: WARNINGS

2010-04-09 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:Fri Apr 9 19:00:23 CEST 2010 path:http://www.linuxtv.org/hg/v4l-dvb changeset: 14561:7c0b887911cf git master:

Re: [PATCH] cx88: implement sharpness control

2010-04-09 Thread istva...@mailbox.hu
On 04/09/2010 06:33 AM, Mauro Carvalho Chehab wrote: > You're not adjusting the sharpness. Instead, you're changing the vertical tap > filter, > and just for the even frames, plus the notch filter. > Tricky, and you're probably affecting the sharpness, but on an indirect and > non-linear > way,

Re: [PATCH] V4L/DVB: budget-av: wait longer for frontend to power on

2010-04-09 Thread Bjørn Mork
Mauro Carvalho Chehab writes: > Oliver Endriss wrote: > >> Mauro, please do not apply this patch! > > Don't worry, I won't apply this patch. >> >> Afaik there is no tuner which takes 5 seconds to initialize. (And if >> there was one, it would be a bad idea to add a 5s delay for all tuners!) > > Y

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Jon Smirl
On Fri, Apr 9, 2010 at 10:00 AM, Mauro Carvalho Chehab wrote: > Jon Smirl wrote: +/* macros for ir decoders */ +#define PULSE(units)                         ((units)) +#define SPACE(units)                         (-(units)) >>> Encoding pulse vs space with a negative sign, even

Re: [PATCH] V4L/DVB: budget-av: wait longer for frontend to power on

2010-04-09 Thread Mauro Carvalho Chehab
Oliver Endriss wrote: > Mauro Carvalho Chehab wrote: >> Bjørn Mork wrote: >>> Some devices need much more time than 100ms to power on, leading to a >>> failure to enable the frontend on the first attempt. Instead we get >>> >>> [ 38.194200] saa7146: register extension 'budget_av'. >>> [ 38.2538

Re: [PATCH] V4L/DVB: budget-av: wait longer for frontend to power on

2010-04-09 Thread Oliver Endriss
Mauro Carvalho Chehab wrote: > Bjørn Mork wrote: > > Some devices need much more time than 100ms to power on, leading to a > > failure to enable the frontend on the first attempt. Instead we get > > > > [ 38.194200] saa7146: register extension 'budget_av'. > > [ 38.253828] budget_av :05:01

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Mauro Carvalho Chehab
Jon Smirl wrote: >>> >>> +/* macros for ir decoders */ >>> +#define PULSE(units) ((units)) >>> +#define SPACE(units) (-(units)) >> Encoding pulse vs space with a negative sign, even if now hidden with >> macros, is still just using a sign instead of a

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Mauro Carvalho Chehab
Hi James, Andy Walls wrote: > On Fri, 2010-04-09 at 08:21 +0100, James Hogan wrote: >> Hi, >> >> On Thursday 25 March 2010 14:42:33 Mauro Carvalho Chehab wrote: >>> Comments? >> I haven't seen this mentioned yet, but are there any plans for a sysfs >> interface to set up waking from suspend/stand

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Jon Smirl
On Fri, Apr 9, 2010 at 8:58 AM, Jarod Wilson wrote: > On Fri, Apr 09, 2010 at 06:50:26AM -0400, Andy Walls wrote: >> On Fri, 2010-04-09 at 08:21 +0100, James Hogan wrote: >> > Hi, >> > >> > On Thursday 25 March 2010 14:42:33 Mauro Carvalho Chehab wrote: >> > > Comments? >> > >> > I haven't seen th

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Jarod Wilson
On Fri, Apr 09, 2010 at 06:50:26AM -0400, Andy Walls wrote: > On Fri, 2010-04-09 at 08:21 +0100, James Hogan wrote: > > Hi, > > > > On Thursday 25 March 2010 14:42:33 Mauro Carvalho Chehab wrote: > > > Comments? > > > > I haven't seen this mentioned yet, but are there any plans for a sysfs > > i

Re: [PATCH 4/4] Add RC6 support to ir-core

2010-04-09 Thread Mauro Carvalho Chehab
David Härdeman wrote: > On Fri, April 9, 2010 10:17, Andreas Oberritter wrote: >>> +/* from ir-rc6-decoder.c */ >>> +#ifdef CONFIG_IR_RC5_DECODER_MODULE >> you probably intended to use CONFIG_IR_RC6_DECODER_MODULE instead. Andreas, thanks for pointing it! > Of course, thanks for noticing. > > Ma

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Jon Smirl
On Fri, Apr 9, 2010 at 7:25 AM, Andy Walls wrote: > On Thu, 2010-04-08 at 13:39 +0200, David Härdeman wrote: >> drivers/media/IR/ir-raw-event.c is currently written with the assumption >> that all "raw" hardware will generate events only on state change (i.e. >> when a pulse or space starts). >> >

remote control for idVendor=2040, idProduct=5500 Siano MDTV

2010-04-09 Thread Richard Zidlicky
Hi, I am using this stick with a 2.6.33.2 kernel kernel.org) and kaffeine. Works nicely so far but the infrared remote does not work. I am quite happy to apply pacthes or experimental dirvers - are there any? Is there any documentation that woud allow me to write the code? Apr 8 15:05:23 loca

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Andy Walls
On Thu, 2010-04-08 at 13:39 +0200, David Härdeman wrote: > drivers/media/IR/ir-raw-event.c is currently written with the assumption > that all "raw" hardware will generate events only on state change (i.e. > when a pulse or space starts). > > However, some hardware (like mceusb, probably the mo

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Andy Walls
On Fri, 2010-04-09 at 08:21 +0100, James Hogan wrote: > Hi, > > On Thursday 25 March 2010 14:42:33 Mauro Carvalho Chehab wrote: > > Comments? > > I haven't seen this mentioned yet, but are there any plans for a sysfs > interface to set up waking from suspend/standby on a particular IR scancode

[GIT PATCHES FOR 2.6.35] gspca for_2.6.35

2010-04-09 Thread Jean-Francois Moine
Hi Mauro, The following changes since commit 680af931a10ba684c617038a0149281c193295ff: Mauro Carvalho Chehab (1): V4L/DVB: tm6000: fix compilation due to the lack of a semicolon are available in the git repository at: git://linuxtv.org/jfrancois/gspca.git for_2.6.35 Erik Andrén (1):

Re: V4L2 and Media controller mini-summit in Helsinki 14.--16. June

2010-04-09 Thread Hans de Goede
Hi, On 04/09/2010 08:58 AM, Hans Verkuil wrote: On Monday 05 April 2010 21:36:35 Sakari Ailus wrote: Hello everyone, I'm glad to announce Nokia will be hosting a V4L2 and Media controller mini-summit in Helsinki, Finland from 14th to 16th June --- that's from Monday to Wednesday. The event rep

Re: [PATCH 4/4] Add RC6 support to ir-core

2010-04-09 Thread David Härdeman
On Fri, April 9, 2010 10:17, Andreas Oberritter wrote: >> +/* from ir-rc6-decoder.c */ >> +#ifdef CONFIG_IR_RC5_DECODER_MODULE > > you probably intended to use CONFIG_IR_RC6_DECODER_MODULE instead. Of course, thanks for noticing. Mauro, do you want a new patch or will you fix it yourself? (and by

Re: [PATCH 4/4] Add RC6 support to ir-core

2010-04-09 Thread Andreas Oberritter
Hello David, David Härdeman wrote: > --- a/drivers/media/IR/ir-core-priv.h > +++ b/drivers/media/IR/ir-core-priv.h > @@ -109,4 +109,11 @@ void ir_raw_init(void); > #define load_rc5_decode()0 > #endif > > +/* from ir-rc6-decoder.c */ > +#ifdef CONFIG_IR_RC5_DECODER_MODULE > +#define load_rc

cx23885: board id [14f1:8852]

2010-04-09 Thread Nick GIannakopoulos
Hi, I've made tests with my *LV8H Hybrid PCI Express* board: *Model*: LV8H Hybrid PCI Express *Vendor/Product id*:[14f1:8852] *Kernel:* 2.6.33 + v4l-dvb-fw-bf7cd2fb7a35 *Tests made*: - Analog [No] - DVB[No] - VBI[No] * Part of Kernel Logs:* --->

em28xx: board id [eb1a:e310]

2010-04-09 Thread Nick GIannakopoulos
Hi, I've made tests with my *KWORLD DVB USB 2.0 310U* board: *Model*: KWORLD DVB USB 2.0 310U *Vendor/Product id*: [eb1a:e310] *Kernel:* 2.6.33 + v4l-dvb-fw-bf7cd2fb7a35 + xc3028-v27.fw *Tests made*: - Analog [Worked Video+Audio, But i can change channels correctly only if i set m

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread James Hogan
Hi, On Thursday 25 March 2010 14:42:33 Mauro Carvalho Chehab wrote: > Comments? I haven't seen this mentioned yet, but are there any plans for a sysfs interface to set up waking from suspend/standby on a particular IR scancode (for hardware decoders that support masking of comparing of the IR d

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