JVC = 1 << 3,
SONY = 1 << 4,
LIRC = 1 << 5,
+ SANYO = 1 << 6,
OTHER = 1 << 31,
};
" SYSDEV - the ir class as found at /sys/class/rc\n"
" TABLE - a file with a set of scancode=keycode value pairs\n"
" SCANKEY - a set of scancode1=keycode1,scancode2=keycode2.. value pairs\n"
- " PROTOCOL - protocol name (nec, rc-5, rc-6, other) to be enabled\n"
+ " PROTOCOL - protocol name (nec, rc-5, rc-6, jvc, sony, sanyo, lirc, other) to be enabled\n"
" DELAY - Delay before repeating a keystroke\n"
" PERIOD - Period to repeat a keystroke\n"
" CFGFILE - configuration file that associates a driver/table name with a keymap file\n"
ch_proto |= JVC;
else if (!strcasecmp(p,"sony"))
ch_proto |= SONY;
+ else if (!strcasecmp(p,"sanyo"))
+ ch_proto |= SONY;
else if (!strcasecmp(p,"other") || !strcasecmp(p,"unknown"))
ch_proto |= OTHER;
else {
ch_proto |= JVC;
else if (!strcasecmp(p,"sony"))
ch_proto |= SONY;
+ else if (!strcasecmp(p,"sanyo"))
+ ch_proto |= SANYO;
else if (!strcasecmp(p,"lirc"))
ch_proto |= LIRC;
else
proto |= JVC;
else if (!strcmp(p, "sony"))
proto |= SONY;
+ else if (!strcmp(p, "sanyo"))
+ proto |= SANYO;
else
proto |= OTHER;
if (rc_dev->current & SONY)
fprintf(fp, "sony ");
+ if (rc_dev->current & SANYO)
+ fprintf(fp, "sanyo ");
+
if (rc_dev->current & OTHER)
fprintf(fp, "unknown ");
proto = JVC;
else if (!strcmp(p, "sony"))
proto = SONY;
+ else if (!strcmp(p, "sanyo"))
+ proto = SANYO;
else if (!strcmp(p, "lirc")) /* Only V2 has LIRC support */
proto = LIRC;
else
if (rc_dev->current & SONY)
fprintf(fp, "+sony\n");
+ if (rc_dev->current & SANYO)
+ fprintf(fp, "+sanyo\n");
+
if (rc_dev->current & LIRC)
fprintf(fp, "+lirc\n");
fprintf (stderr, "JVC ");
if (proto & SONY)
fprintf (stderr, "SONY ");
+ if (proto & SANYO)
+ fprintf (stderr, "SANYO ");
if (proto & LIRC)
fprintf (stderr, "LIRC ");
if (proto & OTHER)