From: olx69 <ope...@gm...> - 2009-08-04 18:15:55
|
> > >>>> My guess is that your kernel might not have the ir_video i2c alias in >>>> its ivtv driver... Meaning we might need to adjust some of the kernel >>>> version thresholds where the newer i2c binding is used. >>> >>> I'd suggest changing all instances of... >>> >>> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) >>> >>> ...in lirc_i2c.c to (2, 6, 29) instead, and see if that does the job. >>> >>> --jarod >>> >> I got a compile error bis this: >> >> /home/olaf/work/lirc/cvs/lirc/drivers/lirc_i2c/lirc_i2c.c:385: error: >> ‘driver’ undeclared here (not in a function) > > D'oh. cvs up and try again. It looks like Christoph fixed this one > last night. 'driver' is defined just *after* that point in the code > instead of before, prior to the latest change to that driver. > > http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_i2c/lirc_i2c.c?r1=1.67&r2=1.68 > > Yes, now it works - I get the devices. Attached the patch. modprobe lirc_i2c debug= 1 got in messages: [ 201.488371] bttv: driver version 0.9.17 loaded [ 201.488375] bttv: using 8 buffers with 2080k (520 pages) each for capture [ 201.508197] cx88/0: cx2388x v4l2 driver version 0.0.6 loaded [ 201.509474] lirc_i2c: probe 0x1a @ ivtv i2c driver #0: no [ 201.509918] lirc_i2c: probe 0x18 @ ivtv i2c driver #0: yes [ 201.509921] lirc_i2c: chip 0x10020 found @ 0x18 (Hauppauge IR) [ 201.509943] lirc_dev: lirc_register_driver: sample_rate: 10 [ 201.511022] lirc_i2c: probe 0x71 @ ivtv i2c driver #0: no [ 201.512007] lirc_i2c: probe 0x4b @ ivtv i2c driver #0: no [ 201.513693] lirc_i2c: probe 0x64 @ ivtv i2c driver #0: no [ 201.514677] lirc_i2c: probe 0x30 @ ivtv i2c driver #0: no [ 201.515660] lirc_i2c: probe 0x6b @ ivtv i2c driver #0: no [ 201.516648] lirc_i2c: probe 0x1a @ ivtv i2c driver #1: no [ 201.517092] lirc_i2c: probe 0x18 @ ivtv i2c driver #1: yes [ 201.517095] lirc_i2c: chip 0x10020 found @ 0x18 (Hauppauge IR) [ 201.517114] lirc_dev: lirc_register_driver: sample_rate: 10 [ 201.521469] lirc_i2c: probe 0x71 @ ivtv i2c driver #1: no [ 201.522453] lirc_i2c: probe 0x4b @ ivtv i2c driver #1: no [ 201.523436] lirc_i2c: probe 0x64 @ ivtv i2c driver #1: no [ 201.524418] lirc_i2c: probe 0x30 @ ivtv i2c driver #1: no [ 201.525413] lirc_i2c: probe 0x6b @ ivtv i2c driver #1: no $ lsmod |grep lirc lirc_i2c 19332 0 lirc_imon 37056 0 lirc_dev 21576 2 lirc_i2c,lirc_imon and finaly: $ ls -la /dev/lirc* crw-rw---- 1 root root 61, 0 2009-08-04 20:01 /dev/lirc0 crw-rw---- 1 root root 61, 1 2009-08-04 20:04 /dev/lirc1 crw-rw---- 1 root root 61, 2 2009-08-04 20:04 /dev/lirc2 where lirc0 is the imon, lirc{1,2} from PVR 250 and PVR 350. BTW, how can I distuingish between both? Fine, thanks a lot Olaf |