michal wrote:
Sorry, my fault. Modules evdev and input were not loaded.
But another problems still remain:
1) Each key can be pressed only once. There is no reaction on further keypress...
Here you have to play and improve either the msp430_ir_debounce() and msp430_ir_interrupt() functions or (if the repeat events don't arrive there) somebody has to write a new IR protocol parser for the msp430.
There was missing add_timer(&dev->timer) at the end of msp430_ir_interrupt() function. Now everything works fine.
static void msp430_ir_interrupt (unsigned long data) {
...
/* initialize debounce and repeat */ dev->repeat_key = code; /* Zenith remote _always_ sends 2 sequences */ dev->rep[0] = ~0; /* 350 milliseconds */ dev->timer.expires = jiffies + HZ * 350 / 1000; /* MAKE */ input_event(dev, EV_KEY, key_map[code], !0); -->> add_timer(&dev->timer); <<-- } }
Michal
-- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as subject.