diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-11-22 21:02:54 +0000 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-11-22 21:02:54 +0000 |
commit | c6a44299a7a4152b3d9b7911985042a10a498502 (patch) | |
tree | abd9e3d0e259d3526bd82b5cb003dc5245ea57af | |
parent | bb8a8592ad802919c2d8b99e774a41ad7d4a02a9 (diff) | |
download | mediapointer-dvb-s2-c6a44299a7a4152b3d9b7911985042a10a498502.tar.gz mediapointer-dvb-s2-c6a44299a7a4152b3d9b7911985042a10a498502.tar.bz2 |
[PATCH 7/8] budget-ci IR: add IR debugging information
This adds a ir_debug parameter which is useful in tracking down
IR decoding problems.
Based on Darren Salt's dvb-ir patchset.
Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
-rw-r--r-- | linux/drivers/media/dvb/ttpci/budget-ci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-ci.c b/linux/drivers/media/dvb/ttpci/budget-ci.c index cb3185440..8ed2411d0 100644 --- a/linux/drivers/media/dvb/ttpci/budget-ci.c +++ b/linux/drivers/media/dvb/ttpci/budget-ci.c @@ -92,6 +92,10 @@ static int rc5_device = -1; module_param(rc5_device, int, 0644); MODULE_PARM_DESC(rc5_device, "only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)"); +static int ir_debug = 0; +module_param(ir_debug, int, 0644); +MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); + struct budget_ci_ir { struct input_dev *dev; struct tasklet_struct msp430_irq_tasklet; @@ -140,11 +144,15 @@ static void msp430_ir_interrupt(unsigned long data) /* Is this a RC5 command byte? */ if (command & 0x40) { + if (ir_debug) + printk("budget_ci: received command byte 0x%02x\n", command); ir_key = command & 0x3f; return; } /* It's a RC5 device byte */ + if (ir_debug) + printk("budget_ci: received device byte 0x%02x\n", command); device = command & 0x1f; toggle = command & 0x20; |