On Sunday 14 September 2008 23:55:38 Jarod Wilson wrote:
So I've done a bit of work to fix up a few drivers so they properly check to
see that lirc_register_driver() actually succeeded, and then accidentally
stumbled onto the fix for the failure when merging some coverity-inspired
patches from Erik Hovland. lirc_dev.c's lirc_cdev_add() function had an
inverted kmalloc failure check. With that fixed, lirc_i2c appears to be
behaving for me now, although I can't actually check to be 100% certain until
I get home tonight.
...
lirc_dev: IR Remote Control driver registered, major 240
lirc_i2c: probe 0x1a @ ivtv i2c driver #0: no
lirc_i2c: probe 0x18 @ ivtv i2c driver #0: yes
lirc_i2c: chip 0x10020 found @ 0x18 (Hauppauge IR)
lirc_dev: lirc_register_driver: sample_rate: 10
lirc_dev: driver lirc_i2c registered at minor number = 0
lirc_dev (lirc_i2c[0]): poll thread started
lirc_i2c: ir_attach: success (minor 0)
...
Fixes are in the git tree now for anyone else who wants to or is willing to
test. Will verify myself tonight w/lirc_i2c and lirc_mceusb2 at a minimum.
--
Jarod Wilson
jarod@redhat.com
--