The following two patches should show more clearly what I mean by adding protocols to the keytables (and letting userspace add keytable entries with explicit protocol information). Consider it a basis for discussion. Each patch has a separate description, please refer to those for more information. --- David Härdeman (2): rc-core: use the full 32 bits for NEC scancodes rc-core: don't throw away protocol information drivers/media/rc/ati_remote.c | 1 drivers/media/rc/imon.c | 7 + drivers/media/rc/ir-nec-decoder.c | 26 --- drivers/media/rc/rc-main.c | 233 ++++++++++++++++++++++++------ drivers/media/usb/dvb-usb-v2/af9015.c | 22 +-- drivers/media/usb/dvb-usb-v2/af9035.c | 23 +-- drivers/media/usb/dvb-usb-v2/az6007.c | 16 +- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 20 +-- drivers/media/usb/dvb-usb/dib0700_core.c | 24 +-- drivers/media/usb/em28xx/em28xx-input.c | 37 +---- include/media/rc-core.h | 26 +++ include/media/rc-map.h | 23 ++- 12 files changed, 264 insertions(+), 194 deletions(-) -- David Härdeman -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html