On Mon, 2007-08-27 at 12:55 +0100, Piers Kittel wrote:
> Here's the interesting parts...
> 
> CORE cx88[1]: subsystem: 0070:9002, board: Hauppauge Nova-T DVB-T  
> [card=18,autodetected]
> TV tuner 4 at 0x1fe, Radio tuner -1 at 0x1fe
> tveeprom 1-0050: Hauppauge model 90002, rev C176, serial# 53702
> tveeprom 1-0050: MAC address is
> tveeprom 1-0050: tuner model is Thompson DTT7592 (idx 76, type 4)
> tveeprom 1-0050: TV standards ATSC/DVB Digital (eeprom 0x80)
> tveeprom 1-0050: audio processor is None (idx 0)
> tveeprom 1-0050: decoder processor is CX882 (idx 25)
> tveeprom 1-0050: has no radio, has IR receiver, has no IR transmitter
> 
> The other card has the exact same model and rev number - a funny  
> coincidence as I brought one card from a shop, and found the other in  
> the bargain bin at a computer fair a few months later inside an anti- 
> static bag without any box, drivers, cables, whatsoever.  Was a lucky  
> find as the box was full of unwanted analogue tuners, and I got it  
> for £10.

So you are a lucky owner of cx88 board defined as
CX88_BOARD_HAUPPAUGE_DVB_T1, that has built in IR sampler (according to
docs and sources).
If I understood well (from
Documentation/video4linux/hauppauge-wintv-cx88-ir.txt), the driver sets
the board to sample IR receiver with 4 KHz rate and 1 bit samples.
Samples are buffered in 32-bit buffer and you get an IRQ each time it is
filled. So theoretically you should get an interrupt 4000 / 32 = 125
times a second.
It more or less corresponds to what you are experiencing (but your
interrupts occur slightly slower).

Could you try the small patch I've attached (apply it to your kernel
sources and recompile, and then load cx88xx module with 'ir_disable=1')?

PS.
The ir_disable parameter should be probably available per board, not
globaly for all cx88 boards, but this is my first and quick try to see
if it will help you.

diff -urN linux-2.6.22.3.orig/drivers/media/video/cx88/cx88-input.c linux-2.6.22.3/drivers/media/video/cx88/cx88-input.c
--- linux-2.6.22.3.orig/drivers/media/video/cx88/cx88-input.c	2007-08-15 18:25:39.000000000 +0200
+++ linux-2.6.22.3/drivers/media/video/cx88/cx88-input.c	2007-08-27 14:52:39.000000000 +0200
@@ -62,6 +62,10 @@
 module_param(ir_debug, int, 0644);	/* debug level [IR] */
 MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]");
 
+static int ir_disable = 0;
+module_param(ir_disable, int, 0444);	/* disable support for IR */
+MODULE_PARM_DESC(ir_disable, "disable support for IR receiver");
+
 #define ir_dprintk(fmt, arg...)	if (ir_debug) \
 	printk(KERN_DEBUG "%s IR: " fmt , ir->core->name , ##arg)
 
@@ -194,6 +198,11 @@
 	int ir_type = IR_TYPE_OTHER;
 	int err = -ENOMEM;
 
+	if (ir_disable) {
+		printk(KERN_INFO "%s/0: Disabling support for IR receiver\n",core->name);
+		return 0;
+	}
+
 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
 	input_dev = input_allocate_device();
 	if (!ir || !input_dev)

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to