132cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 232cf86f6SMauro Carvalho Chehab 332cf86f6SMauro Carvalho Chehab static struct ir_scancode twinhan_vp1027[] = { 432cf86f6SMauro Carvalho Chehab { 0x16, KEY_POWER2 }, 532cf86f6SMauro Carvalho Chehab { 0x17, KEY_FAVORITES }, 632cf86f6SMauro Carvalho Chehab { 0x0f, KEY_TEXT }, 732cf86f6SMauro Carvalho Chehab { 0x48, KEY_INFO}, 832cf86f6SMauro Carvalho Chehab { 0x1c, KEY_EPG }, 932cf86f6SMauro Carvalho Chehab { 0x04, KEY_LIST }, 1032cf86f6SMauro Carvalho Chehab 1132cf86f6SMauro Carvalho Chehab { 0x03, KEY_1 }, 1232cf86f6SMauro Carvalho Chehab { 0x01, KEY_2 }, 1332cf86f6SMauro Carvalho Chehab { 0x06, KEY_3 }, 1432cf86f6SMauro Carvalho Chehab { 0x09, KEY_4 }, 1532cf86f6SMauro Carvalho Chehab { 0x1d, KEY_5 }, 1632cf86f6SMauro Carvalho Chehab { 0x1f, KEY_6 }, 1732cf86f6SMauro Carvalho Chehab { 0x0d, KEY_7 }, 1832cf86f6SMauro Carvalho Chehab { 0x19, KEY_8 }, 1932cf86f6SMauro Carvalho Chehab { 0x1b, KEY_9 }, 2032cf86f6SMauro Carvalho Chehab { 0x15, KEY_0 }, 2132cf86f6SMauro Carvalho Chehab 2232cf86f6SMauro Carvalho Chehab { 0x0c, KEY_CANCEL }, 2332cf86f6SMauro Carvalho Chehab { 0x4a, KEY_CLEAR }, 2432cf86f6SMauro Carvalho Chehab { 0x13, KEY_BACKSPACE }, 2532cf86f6SMauro Carvalho Chehab { 0x00, KEY_TAB }, 2632cf86f6SMauro Carvalho Chehab 2732cf86f6SMauro Carvalho Chehab { 0x4b, KEY_UP }, 2832cf86f6SMauro Carvalho Chehab { 0x51, KEY_DOWN }, 2932cf86f6SMauro Carvalho Chehab { 0x4e, KEY_LEFT }, 3032cf86f6SMauro Carvalho Chehab { 0x52, KEY_RIGHT }, 3132cf86f6SMauro Carvalho Chehab { 0x4f, KEY_ENTER }, 3232cf86f6SMauro Carvalho Chehab 3332cf86f6SMauro Carvalho Chehab { 0x1e, KEY_VOLUMEUP }, 3432cf86f6SMauro Carvalho Chehab { 0x0a, KEY_VOLUMEDOWN }, 3532cf86f6SMauro Carvalho Chehab { 0x02, KEY_CHANNELDOWN }, 3632cf86f6SMauro Carvalho Chehab { 0x05, KEY_CHANNELUP }, 3732cf86f6SMauro Carvalho Chehab { 0x11, KEY_RECORD }, 3832cf86f6SMauro Carvalho Chehab 3932cf86f6SMauro Carvalho Chehab { 0x14, KEY_PLAY }, 4032cf86f6SMauro Carvalho Chehab { 0x4c, KEY_PAUSE }, 4132cf86f6SMauro Carvalho Chehab { 0x1a, KEY_STOP }, 4232cf86f6SMauro Carvalho Chehab { 0x40, KEY_REWIND }, 4332cf86f6SMauro Carvalho Chehab { 0x12, KEY_FASTFORWARD }, 4432cf86f6SMauro Carvalho Chehab { 0x41, KEY_PREVIOUSSONG }, 4532cf86f6SMauro Carvalho Chehab { 0x42, KEY_NEXTSONG }, 4632cf86f6SMauro Carvalho Chehab { 0x54, KEY_SAVE }, 4732cf86f6SMauro Carvalho Chehab { 0x50, KEY_LANGUAGE }, 4832cf86f6SMauro Carvalho Chehab { 0x47, KEY_MEDIA }, 4932cf86f6SMauro Carvalho Chehab { 0x4d, KEY_SCREEN }, 5032cf86f6SMauro Carvalho Chehab { 0x43, KEY_SUBTITLE }, 5132cf86f6SMauro Carvalho Chehab { 0x10, KEY_MUTE }, 5232cf86f6SMauro Carvalho Chehab { 0x49, KEY_AUDIO }, 5332cf86f6SMauro Carvalho Chehab { 0x07, KEY_SLEEP }, 5432cf86f6SMauro Carvalho Chehab { 0x08, KEY_VIDEO }, 5532cf86f6SMauro Carvalho Chehab { 0x0e, KEY_AGAIN }, 5632cf86f6SMauro Carvalho Chehab { 0x45, KEY_EQUAL }, 5732cf86f6SMauro Carvalho Chehab { 0x46, KEY_MINUS }, 5832cf86f6SMauro Carvalho Chehab { 0x18, KEY_RED }, 5932cf86f6SMauro Carvalho Chehab { 0x53, KEY_GREEN }, 6032cf86f6SMauro Carvalho Chehab { 0x5e, KEY_YELLOW }, 6132cf86f6SMauro Carvalho Chehab { 0x5f, KEY_BLUE }, 6232cf86f6SMauro Carvalho Chehab }; 6332cf86f6SMauro Carvalho Chehab 6432cf86f6SMauro Carvalho Chehab static struct rc_keymap twinhan_vp1027_map = { 6532cf86f6SMauro Carvalho Chehab .map = { 6632cf86f6SMauro Carvalho Chehab .scan = twinhan_vp1027, 6732cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(twinhan_vp1027), 6852b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 6932cf86f6SMauro Carvalho Chehab .name = RC_MAP_TWINHAN_VP1027_DVBS, 7032cf86f6SMauro Carvalho Chehab } 7132cf86f6SMauro Carvalho Chehab }; 7232cf86f6SMauro Carvalho Chehab 7332cf86f6SMauro Carvalho Chehab static int __init init_rc_map_twinhan_vp1027(void) 7432cf86f6SMauro Carvalho Chehab { 7532cf86f6SMauro Carvalho Chehab return ir_register_map(&twinhan_vp1027_map); 7632cf86f6SMauro Carvalho Chehab } 7732cf86f6SMauro Carvalho Chehab 7832cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_twinhan_vp1027(void) 7932cf86f6SMauro Carvalho Chehab { 8032cf86f6SMauro Carvalho Chehab ir_unregister_map(&twinhan_vp1027_map); 8132cf86f6SMauro Carvalho Chehab } 8232cf86f6SMauro Carvalho Chehab 8332cf86f6SMauro Carvalho Chehab module_init(init_rc_map_twinhan_vp1027) 8432cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_twinhan_vp1027) 8532cf86f6SMauro Carvalho Chehab 8632cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8732cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Sergey Ivanov <123kash@gmail.com>"); 88