Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193080
b: refs/heads/master
c: 666a9ed
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 290cb17 commit 6ba9329
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96c1f99621a73c58f97d7ca615b2fe936abda555
refs/heads/master: 666a9ed8971657ea7dcf0bd9df17195db4dddf29
20 changes: 9 additions & 11 deletions trunk/drivers/media/IR/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ int imon_ir_change_protocol(void *priv, u64 ir_type)
unsigned char ir_proto_packet[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86 };

if (!(ir_type & ictx->props->allowed_protos))
if (ir_type && !(ir_type & ictx->props->allowed_protos))
dev_warn(dev, "Looks like you're trying to use an IR protocol "
"this device does not support\n");

Expand All @@ -1014,25 +1014,23 @@ int imon_ir_change_protocol(void *priv, u64 ir_type)
break;
case IR_TYPE_UNKNOWN:
case IR_TYPE_OTHER:
dev_dbg(dev, "Configuring IR receiver for iMON protocol");
if (pad_stabilize) {
printk(KERN_CONT "\n");
dev_dbg(dev, "Configuring IR receiver for iMON protocol\n");
if (pad_stabilize)
pad_mouse = true;
} else {
printk(KERN_CONT " (without PAD stabilization)\n");
else {
dev_dbg(dev, "PAD stabilize functionality disabled\n");
pad_mouse = false;
}
/* ir_proto_packet[0] = 0x00; // already the default */
ir_type = IR_TYPE_OTHER;
break;
default:
dev_warn(dev, "Unsupported IR protocol specified, overriding "
"to iMON IR protocol");
if (pad_stabilize) {
printk(KERN_CONT "\n");
"to iMON IR protocol\n");
if (pad_stabilize)
pad_mouse = true;
} else {
printk(KERN_CONT " (without PAD stabilization)\n");
else {
dev_dbg(dev, "PAD stabilize functionality disabled\n");
pad_mouse = false;
}
/* ir_proto_packet[0] = 0x00; // already the default */
Expand Down

0 comments on commit 6ba9329

Please sign in to comment.