Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44097
b: refs/heads/master
c: b5471a2
h: refs/heads/master
i:
  44095: 4ba9d22
v: v3
  • Loading branch information
David Hardeman authored and Mauro Carvalho Chehab committed Dec 10, 2006
1 parent 8b52384 commit 9ef2328
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64741b70cf2030ffe017e5ed731620b4a4570f77
refs/heads/master: b5471a27b48801507c5bd0eadd83730230515016
8 changes: 8 additions & 0 deletions trunk/drivers/media/dvb/ttpci/budget-ci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 9ef2328

Please sign in to comment.