aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Hardeman <david@hardeman.nu>2006-12-02 18:16:05 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:05:18 -0500
commitb5471a27b48801507c5bd0eadd83730230515016 (patch)
tree22e3ece0aeb84bf7dbf2a8cb8ea45173a4b2ff3b /drivers
parent64741b70cf2030ffe017e5ed731620b4a4570f77 (diff)
V4L/DVB (4881): 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 Hardeman <david@hardeman.nu> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 76d3b6694bce..2a3707c87942 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -92,6 +92,10 @@ static int rc5_device = -1;
92module_param(rc5_device, int, 0644); 92module_param(rc5_device, int, 0644);
93MODULE_PARM_DESC(rc5_device, "only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)"); 93MODULE_PARM_DESC(rc5_device, "only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)");
94 94
95static int ir_debug = 0;
96module_param(ir_debug, int, 0644);
97MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding");
98
95struct budget_ci_ir { 99struct budget_ci_ir {
96 struct input_dev *dev; 100 struct input_dev *dev;
97 struct tasklet_struct msp430_irq_tasklet; 101 struct tasklet_struct msp430_irq_tasklet;
@@ -140,11 +144,15 @@ static void msp430_ir_interrupt(unsigned long data)
140 144
141 /* Is this a RC5 command byte? */ 145 /* Is this a RC5 command byte? */
142 if (command & 0x40) { 146 if (command & 0x40) {
147 if (ir_debug)
148 printk("budget_ci: received command byte 0x%02x\n", command);
143 ir_key = command & 0x3f; 149 ir_key = command & 0x3f;
144 return; 150 return;
145 } 151 }
146 152
147 /* It's a RC5 device byte */ 153 /* It's a RC5 device byte */
154 if (ir_debug)
155 printk("budget_ci: received device byte 0x%02x\n", command);
148 device = command & 0x1f; 156 device = command & 0x1f;
149 toggle = command & 0x20; 157 toggle = command & 0x20;
150 158