Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Teletext and DMX_SET_PES_FILTER



Ralph Metzler wrote:
> You could try the latest driver on http://www.metzlerbros.org/dvb
> I changed the bitmap loading code in the firmware to be less
> disruptive to other transfers. Previously it disrupted everything
> else when loading the bitmap (or rather one 32K part of one).
> Now it has to wait for other transfers.

Support for the remote control of the Hauppauge Nexus card is broken in 
this driver. The following patch fixes this and enables autorepeat for 
the input device.

--- av7110_ir.c.old	Mon Sep 30 02:43:25 2002
+++ av7110_ir.c	Mon Feb 24 00:14:18 2003
@@ -9,9 +9,7 @@
 #include "input_fake.h"
 
 
-#define UP_TIMEOUT (HZ/2)
-
-static int av7110_ir_debug = 1;
+static int av7110_ir_debug = 0;
 
 #define dprintk(x...)  do { if (av7110_ir_debug) printk (x); } while 
(0)
 
@@ -49,20 +47,6 @@
 
 
 static
-void av7110_emit_keyup (unsigned long data)
-{
-	if (!data || !test_bit (data, input_dev.key))
-		return;
-
-	input_event (&input_dev, EV_KEY, data, !!0);
-}
-
-
-static
-struct timer_list keyup_timer = { function: av7110_emit_keyup };
-
-
-static
 void av7110_emit_key (u32 ircom)
 {
 	int down = ircom & (0x80000000);
@@ -77,20 +61,7 @@
 		return;
 	}
 
-	if (timer_pending (&keyup_timer)) {
-		del_timer (&keyup_timer);
-		if (keyup_timer.data != keycode)
-			input_event (&input_dev, EV_KEY, keyup_timer.data, !!0);
-	}
-
-	clear_bit (keycode, input_dev.key);
-
-	input_event (&input_dev, EV_KEY, keycode, !0);
-
-	keyup_timer.expires = jiffies + UP_TIMEOUT;
-	keyup_timer.data = keycode;
-
-	add_timer (&keyup_timer);
+	input_event (&input_dev, EV_KEY, keycode, (down) ? 1 : 0);
 }
 
 static
@@ -133,15 +104,13 @@
 {
 	static struct proc_dir_entry *e;
 
-	init_timer (&keyup_timer);
-	keyup_timer.data = 0;
-
         input_dev.name = "DVB on-card IR receiver";
 
         /**
          *  enable keys
          */
         set_bit (EV_KEY, input_dev.evbit);
+        set_bit (EV_REP, input_dev.evbit);
 
 	input_register_keys ();
 

Oliver


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index