]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/IR/ir-sysfs.c
V4L/DVB: ir-core: Add Sony support to ir-core
[net-next-2.6.git] / drivers / media / IR / ir-sysfs.c
index 3ec760a98061b4288f724124990db81c1dd9d5d8..4c0bc32dcbafec8ddb8b52bea6397ea5eb71ff64 100644 (file)
@@ -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) {