132cf86f6SMauro Carvalho Chehab /* fusionhdtv-mce.h - Keytable for fusionhdtv_mce Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 632cf86f6SMauro Carvalho Chehab * 732cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 832cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 932cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 1032cf86f6SMauro Carvalho Chehab * (at your option) any later version. 1132cf86f6SMauro Carvalho Chehab */ 1232cf86f6SMauro Carvalho Chehab 1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 1432cf86f6SMauro Carvalho Chehab 1532cf86f6SMauro Carvalho Chehab /* DViCO FUSION HDTV MCE remote */ 1632cf86f6SMauro Carvalho Chehab 1732cf86f6SMauro Carvalho Chehab static struct ir_scancode fusionhdtv_mce[] = { 1832cf86f6SMauro Carvalho Chehab 1932cf86f6SMauro Carvalho Chehab { 0x0b, KEY_1 }, 2032cf86f6SMauro Carvalho Chehab { 0x17, KEY_2 }, 2132cf86f6SMauro Carvalho Chehab { 0x1b, KEY_3 }, 2232cf86f6SMauro Carvalho Chehab { 0x07, KEY_4 }, 2332cf86f6SMauro Carvalho Chehab { 0x50, KEY_5 }, 2432cf86f6SMauro Carvalho Chehab { 0x54, KEY_6 }, 2532cf86f6SMauro Carvalho Chehab { 0x48, KEY_7 }, 2632cf86f6SMauro Carvalho Chehab { 0x4c, KEY_8 }, 2732cf86f6SMauro Carvalho Chehab { 0x58, KEY_9 }, 2832cf86f6SMauro Carvalho Chehab { 0x03, KEY_0 }, 2932cf86f6SMauro Carvalho Chehab 3032cf86f6SMauro Carvalho Chehab { 0x5e, KEY_OK }, 3132cf86f6SMauro Carvalho Chehab { 0x51, KEY_UP }, 3232cf86f6SMauro Carvalho Chehab { 0x53, KEY_DOWN }, 3332cf86f6SMauro Carvalho Chehab { 0x5b, KEY_LEFT }, 3432cf86f6SMauro Carvalho Chehab { 0x5f, KEY_RIGHT }, 3532cf86f6SMauro Carvalho Chehab 3632cf86f6SMauro Carvalho Chehab { 0x02, KEY_TV }, /* Labeled DTV on remote */ 3732cf86f6SMauro Carvalho Chehab { 0x0e, KEY_MP3 }, 3832cf86f6SMauro Carvalho Chehab { 0x1a, KEY_DVD }, 3932cf86f6SMauro Carvalho Chehab { 0x1e, KEY_FAVORITES }, /* Labeled CPF on remote */ 4032cf86f6SMauro Carvalho Chehab { 0x16, KEY_SETUP }, 4132cf86f6SMauro Carvalho Chehab { 0x46, KEY_POWER2 }, /* TV On/Off button on remote */ 4232cf86f6SMauro Carvalho Chehab { 0x0a, KEY_EPG }, /* Labeled Guide on remote */ 4332cf86f6SMauro Carvalho Chehab 4432cf86f6SMauro Carvalho Chehab { 0x49, KEY_BACK }, 4532cf86f6SMauro Carvalho Chehab { 0x59, KEY_INFO }, /* Labeled MORE on remote */ 4632cf86f6SMauro Carvalho Chehab { 0x4d, KEY_MENU }, /* Labeled DVDMENU on remote */ 4732cf86f6SMauro Carvalho Chehab { 0x55, KEY_CYCLEWINDOWS }, /* Labeled ALT-TAB on remote */ 4832cf86f6SMauro Carvalho Chehab 4932cf86f6SMauro Carvalho Chehab { 0x0f, KEY_PREVIOUSSONG }, /* Labeled |<< REPLAY on remote */ 5032cf86f6SMauro Carvalho Chehab { 0x12, KEY_NEXTSONG }, /* Labeled >>| SKIP on remote */ 5132cf86f6SMauro Carvalho Chehab { 0x42, KEY_ENTER }, /* Labeled START with a green 5232cf86f6SMauro Carvalho Chehab MS windows logo on remote */ 5332cf86f6SMauro Carvalho Chehab 5432cf86f6SMauro Carvalho Chehab { 0x15, KEY_VOLUMEUP }, 5532cf86f6SMauro Carvalho Chehab { 0x05, KEY_VOLUMEDOWN }, 5632cf86f6SMauro Carvalho Chehab { 0x11, KEY_CHANNELUP }, 5732cf86f6SMauro Carvalho Chehab { 0x09, KEY_CHANNELDOWN }, 5832cf86f6SMauro Carvalho Chehab 5932cf86f6SMauro Carvalho Chehab { 0x52, KEY_CAMERA }, 6032cf86f6SMauro Carvalho Chehab { 0x5a, KEY_TUNER }, 6132cf86f6SMauro Carvalho Chehab { 0x19, KEY_OPEN }, 6232cf86f6SMauro Carvalho Chehab 6332cf86f6SMauro Carvalho Chehab { 0x13, KEY_MODE }, /* 4:3 16:9 select */ 6432cf86f6SMauro Carvalho Chehab { 0x1f, KEY_ZOOM }, 6532cf86f6SMauro Carvalho Chehab 6632cf86f6SMauro Carvalho Chehab { 0x43, KEY_REWIND }, 6732cf86f6SMauro Carvalho Chehab { 0x47, KEY_PLAYPAUSE }, 6832cf86f6SMauro Carvalho Chehab { 0x4f, KEY_FASTFORWARD }, 6932cf86f6SMauro Carvalho Chehab { 0x57, KEY_MUTE }, 7032cf86f6SMauro Carvalho Chehab { 0x0d, KEY_STOP }, 7132cf86f6SMauro Carvalho Chehab { 0x01, KEY_RECORD }, 7232cf86f6SMauro Carvalho Chehab { 0x4e, KEY_POWER }, 7332cf86f6SMauro Carvalho Chehab }; 7432cf86f6SMauro Carvalho Chehab 7532cf86f6SMauro Carvalho Chehab static struct rc_keymap fusionhdtv_mce_map = { 7632cf86f6SMauro Carvalho Chehab .map = { 7732cf86f6SMauro Carvalho Chehab .scan = fusionhdtv_mce, 7832cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(fusionhdtv_mce), 7952b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 8032cf86f6SMauro Carvalho Chehab .name = RC_MAP_FUSIONHDTV_MCE, 8132cf86f6SMauro Carvalho Chehab } 8232cf86f6SMauro Carvalho Chehab }; 8332cf86f6SMauro Carvalho Chehab 8432cf86f6SMauro Carvalho Chehab static int __init init_rc_map_fusionhdtv_mce(void) 8532cf86f6SMauro Carvalho Chehab { 8632cf86f6SMauro Carvalho Chehab return ir_register_map(&fusionhdtv_mce_map); 8732cf86f6SMauro Carvalho Chehab } 8832cf86f6SMauro Carvalho Chehab 8932cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_fusionhdtv_mce(void) 9032cf86f6SMauro Carvalho Chehab { 9132cf86f6SMauro Carvalho Chehab ir_unregister_map(&fusionhdtv_mce_map); 9232cf86f6SMauro Carvalho Chehab } 9332cf86f6SMauro Carvalho Chehab 9432cf86f6SMauro Carvalho Chehab module_init(init_rc_map_fusionhdtv_mce) 9532cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_fusionhdtv_mce) 9632cf86f6SMauro Carvalho Chehab 9732cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 9832cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 99