aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-sysfs.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2010-04-15 17:46:05 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:57:43 -0400
commitbf670f641d478fa5a2dd60ed41bab3156cc780c0 (patch)
treefe3c9ef6531956d5904addb9e825254938b13810 /drivers/media/IR/ir-sysfs.c
parent384f23e8c9b189888d6d8c84ae5ebd23b074a0b6 (diff)
V4L/DVB: ir-core: Add JVC support to ir-core
This patch adds a JVC decoder to ir-core. Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-sysfs.c')
-rw-r--r--drivers/media/IR/ir-sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c
index ceec980552a4..3ec760a98061 100644
--- a/drivers/media/IR/ir-sysfs.c
+++ b/drivers/media/IR/ir-sysfs.c
@@ -63,6 +63,8 @@ static ssize_t show_protocol(struct device *d,
63 s = "nec"; 63 s = "nec";
64 else if (ir_type == IR_TYPE_RC6) 64 else if (ir_type == IR_TYPE_RC6)
65 s = "rc6"; 65 s = "rc6";
66 else if (ir_type == IR_TYPE_JVC)
67 s = "jvc";
66 else 68 else
67 s = "other"; 69 s = "other";
68 70
@@ -100,6 +102,8 @@ static ssize_t store_protocol(struct device *d,
100 ir_type |= IR_TYPE_PD; 102 ir_type |= IR_TYPE_PD;
101 if (!strcasecmp(buf, "nec")) 103 if (!strcasecmp(buf, "nec"))
102 ir_type |= IR_TYPE_NEC; 104 ir_type |= IR_TYPE_NEC;
105 if (!strcasecmp(buf, "jvc"))
106 ir_type |= IR_TYPE_JVC;
103 } 107 }
104 108
105 if (!ir_type) { 109 if (!ir_type) {