Skip to contentSkip to conversation

ir-keytable: "-p all" or "-p mce-kdb" does not work

PATCH New Sean Young 1 participant 1 message Dec 2, 2016 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 5/6 ir-keytable: "-p all" or "-p mce-kdb" does not work

When writing to the sysfs protocols file, use the underscore variant. The kernel does not accept "mce-kdb" and it never did.

---
 utils/keytable/keytable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/keytable/keytable.c +1 -1
index 202610a..a6ecc9e 100644
@@ -131,8 +131,8 @@ const struct protocol_map_entry protocol_map[] = {
 	{ "sony20",	NULL,		SYSFS_INVALID	},
 	{ "nec",	"/nec_decoder",	SYSFS_NEC	},
 	{ "sanyo",	NULL,		SYSFS_SANYO	},
-	{ "mce-kbd",	NULL,		SYSFS_MCE_KBD	},
 	{ "mce_kbd",	NULL,		SYSFS_MCE_KBD	},
+	{ "mce-kbd",	NULL,		SYSFS_MCE_KBD	},
 	{ "rc-6",	"/rc6_decoder",	SYSFS_RC6	},
 	{ "rc6",	NULL,		SYSFS_RC6	},
 	{ "rc-6-0",	NULL,		SYSFS_INVALID	},
Signature · 1 line
2.9.3