132cf86f6SMauro Carvalho Chehab /* 232cf86f6SMauro Carvalho Chehab * DigitalNow TinyTwin remote controller keytable 332cf86f6SMauro Carvalho Chehab * 432cf86f6SMauro Carvalho Chehab * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 532cf86f6SMauro Carvalho Chehab * 632cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 732cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 832cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 932cf86f6SMauro Carvalho Chehab * (at your option) any later version. 1032cf86f6SMauro Carvalho Chehab * 1132cf86f6SMauro Carvalho Chehab * This program is distributed in the hope that it will be useful, 1232cf86f6SMauro Carvalho Chehab * but WITHOUT ANY WARRANTY; without even the implied warranty of 1332cf86f6SMauro Carvalho Chehab * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1432cf86f6SMauro Carvalho Chehab * GNU General Public License for more details. 1532cf86f6SMauro Carvalho Chehab * 1632cf86f6SMauro Carvalho Chehab * You should have received a copy of the GNU General Public License along 1732cf86f6SMauro Carvalho Chehab * with this program; if not, write to the Free Software Foundation, Inc., 1832cf86f6SMauro Carvalho Chehab * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 1932cf86f6SMauro Carvalho Chehab */ 2032cf86f6SMauro Carvalho Chehab 2132cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 2232cf86f6SMauro Carvalho Chehab 2332cf86f6SMauro Carvalho Chehab static struct ir_scancode digitalnow_tinytwin[] = { 2432cf86f6SMauro Carvalho Chehab { 0x0000, KEY_MUTE }, /* [symbol speaker] */ 2532cf86f6SMauro Carvalho Chehab { 0x0001, KEY_VOLUMEUP }, 2632cf86f6SMauro Carvalho Chehab { 0x0002, KEY_POWER2 }, /* TV [power button] */ 2732cf86f6SMauro Carvalho Chehab { 0x0003, KEY_2 }, 2832cf86f6SMauro Carvalho Chehab { 0x0004, KEY_3 }, 2932cf86f6SMauro Carvalho Chehab { 0x0005, KEY_4 }, 3032cf86f6SMauro Carvalho Chehab { 0x0006, KEY_6 }, 3132cf86f6SMauro Carvalho Chehab { 0x0007, KEY_7 }, 3232cf86f6SMauro Carvalho Chehab { 0x0008, KEY_8 }, 3332cf86f6SMauro Carvalho Chehab { 0x0009, KEY_NUMERIC_STAR }, /* [*] */ 3432cf86f6SMauro Carvalho Chehab { 0x000a, KEY_0 }, 3532cf86f6SMauro Carvalho Chehab { 0x000b, KEY_NUMERIC_POUND }, /* [#] */ 3632cf86f6SMauro Carvalho Chehab { 0x000c, KEY_RIGHT }, /* [right arrow] */ 3732cf86f6SMauro Carvalho Chehab { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */ 3832cf86f6SMauro Carvalho Chehab { 0x000e, KEY_RED }, /* [red] Videos */ 3932cf86f6SMauro Carvalho Chehab { 0x0010, KEY_POWER }, /* PC [power button] */ 4032cf86f6SMauro Carvalho Chehab { 0x0011, KEY_YELLOW }, /* [yellow] Pictures */ 4132cf86f6SMauro Carvalho Chehab { 0x0012, KEY_DOWN }, /* [down arrow] */ 4232cf86f6SMauro Carvalho Chehab { 0x0013, KEY_GREEN }, /* [green] Music */ 4332cf86f6SMauro Carvalho Chehab { 0x0014, KEY_CYCLEWINDOWS }, /* BACK */ 4432cf86f6SMauro Carvalho Chehab { 0x0015, KEY_FAVORITES }, /* MORE */ 4532cf86f6SMauro Carvalho Chehab { 0x0016, KEY_UP }, /* [up arrow] */ 4632cf86f6SMauro Carvalho Chehab { 0x0017, KEY_LEFT }, /* [left arrow] */ 4732cf86f6SMauro Carvalho Chehab { 0x0018, KEY_OK }, /* OK */ 4832cf86f6SMauro Carvalho Chehab { 0x0019, KEY_BLUE }, /* [blue] MyTV */ 4932cf86f6SMauro Carvalho Chehab { 0x001a, KEY_REWIND }, /* REW [<<] */ 5032cf86f6SMauro Carvalho Chehab { 0x001b, KEY_PLAY }, /* PLAY */ 5132cf86f6SMauro Carvalho Chehab { 0x001c, KEY_5 }, 5232cf86f6SMauro Carvalho Chehab { 0x001d, KEY_9 }, 5332cf86f6SMauro Carvalho Chehab { 0x001e, KEY_VOLUMEDOWN }, 5432cf86f6SMauro Carvalho Chehab { 0x001f, KEY_1 }, 5532cf86f6SMauro Carvalho Chehab { 0x0040, KEY_STOP }, /* STOP */ 5632cf86f6SMauro Carvalho Chehab { 0x0042, KEY_PAUSE }, /* PAUSE */ 5732cf86f6SMauro Carvalho Chehab { 0x0043, KEY_SCREEN }, /* Aspect */ 5832cf86f6SMauro Carvalho Chehab { 0x0044, KEY_FORWARD }, /* FWD [>>] */ 5932cf86f6SMauro Carvalho Chehab { 0x0045, KEY_NEXT }, /* SKIP */ 6032cf86f6SMauro Carvalho Chehab { 0x0048, KEY_RECORD }, /* RECORD */ 6132cf86f6SMauro Carvalho Chehab { 0x0049, KEY_VIDEO }, /* RTV */ 6232cf86f6SMauro Carvalho Chehab { 0x004a, KEY_EPG }, /* Guide */ 6332cf86f6SMauro Carvalho Chehab { 0x004b, KEY_CHANNELUP }, 6432cf86f6SMauro Carvalho Chehab { 0x004c, KEY_HELP }, /* Help */ 6532cf86f6SMauro Carvalho Chehab { 0x004d, KEY_RADIO }, /* Radio */ 6632cf86f6SMauro Carvalho Chehab { 0x004f, KEY_CHANNELDOWN }, 6732cf86f6SMauro Carvalho Chehab { 0x0050, KEY_DVD }, /* DVD */ 6832cf86f6SMauro Carvalho Chehab { 0x0051, KEY_AUDIO }, /* Audio */ 6932cf86f6SMauro Carvalho Chehab { 0x0052, KEY_TITLE }, /* Title */ 7032cf86f6SMauro Carvalho Chehab { 0x0053, KEY_NEW }, /* [symbol PIP?] */ 7132cf86f6SMauro Carvalho Chehab { 0x0057, KEY_MENU }, /* Mouse */ 7232cf86f6SMauro Carvalho Chehab { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 7332cf86f6SMauro Carvalho Chehab }; 7432cf86f6SMauro Carvalho Chehab 7532cf86f6SMauro Carvalho Chehab static struct rc_keymap digitalnow_tinytwin_map = { 7632cf86f6SMauro Carvalho Chehab .map = { 7732cf86f6SMauro Carvalho Chehab .scan = digitalnow_tinytwin, 7832cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(digitalnow_tinytwin), 79*52b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_NEC, 8032cf86f6SMauro Carvalho Chehab .name = RC_MAP_DIGITALNOW_TINYTWIN, 8132cf86f6SMauro Carvalho Chehab } 8232cf86f6SMauro Carvalho Chehab }; 8332cf86f6SMauro Carvalho Chehab 8432cf86f6SMauro Carvalho Chehab static int __init init_rc_map_digitalnow_tinytwin(void) 8532cf86f6SMauro Carvalho Chehab { 8632cf86f6SMauro Carvalho Chehab return ir_register_map(&digitalnow_tinytwin_map); 8732cf86f6SMauro Carvalho Chehab } 8832cf86f6SMauro Carvalho Chehab 8932cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_digitalnow_tinytwin(void) 9032cf86f6SMauro Carvalho Chehab { 9132cf86f6SMauro Carvalho Chehab ir_unregister_map(&digitalnow_tinytwin_map); 9232cf86f6SMauro Carvalho Chehab } 9332cf86f6SMauro Carvalho Chehab 9432cf86f6SMauro Carvalho Chehab module_init(init_rc_map_digitalnow_tinytwin) 9532cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_digitalnow_tinytwin) 9632cf86f6SMauro Carvalho Chehab 9732cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 9832cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 99