diff options
author | David Härdeman <david@hardeman.nu> | 2010-04-15 18:46:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 12:57:44 -0300 |
commit | 3fe29c897272b18e18663832c43942c3936dffe6 (patch) | |
tree | dbc47c805c37fc78e5cad3c07f5f0793acd1881b /drivers/media/IR/ir-sysfs.c | |
parent | bf670f641d478fa5a2dd60ed41bab3156cc780c0 (diff) | |
download | lwn-3fe29c897272b18e18663832c43942c3936dffe6.tar.gz lwn-3fe29c897272b18e18663832c43942c3936dffe6.zip |
V4L/DVB: ir-core: Add Sony support to ir-core
This patch adds a Sony12/15/20 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c index 3ec760a98061..4c0bc32dcbaf 100644 --- a/drivers/media/IR/ir-sysfs.c +++ b/drivers/media/IR/ir-sysfs.c @@ -65,6 +65,8 @@ static ssize_t show_protocol(struct device *d, s = "rc6"; else if (ir_type == IR_TYPE_JVC) s = "jvc"; + else if (ir_type == IR_TYPE_SONY) + s = "sony"; else s = "other"; @@ -104,6 +106,8 @@ static ssize_t store_protocol(struct device *d, ir_type |= IR_TYPE_NEC; if (!strcasecmp(buf, "jvc")) ir_type |= IR_TYPE_JVC; + if (!strcasecmp(buf, "sony")) + ir_type |= IR_TYPE_SONY; } if (!ir_type) { |