1*32cf86f6SMauro Carvalho Chehab /* 2*32cf86f6SMauro Carvalho Chehab * DigitalNow TinyTwin remote controller keytable 3*32cf86f6SMauro Carvalho Chehab * 4*32cf86f6SMauro Carvalho Chehab * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 5*32cf86f6SMauro Carvalho Chehab * 6*32cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 7*32cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 8*32cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 9*32cf86f6SMauro Carvalho Chehab * (at your option) any later version. 10*32cf86f6SMauro Carvalho Chehab * 11*32cf86f6SMauro Carvalho Chehab * This program is distributed in the hope that it will be useful, 12*32cf86f6SMauro Carvalho Chehab * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*32cf86f6SMauro Carvalho Chehab * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*32cf86f6SMauro Carvalho Chehab * GNU General Public License for more details. 15*32cf86f6SMauro Carvalho Chehab * 16*32cf86f6SMauro Carvalho Chehab * You should have received a copy of the GNU General Public License along 17*32cf86f6SMauro Carvalho Chehab * with this program; if not, write to the Free Software Foundation, Inc., 18*32cf86f6SMauro Carvalho Chehab * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19*32cf86f6SMauro Carvalho Chehab */ 20*32cf86f6SMauro Carvalho Chehab 21*32cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 22*32cf86f6SMauro Carvalho Chehab 23*32cf86f6SMauro Carvalho Chehab static struct ir_scancode digitalnow_tinytwin[] = { 24*32cf86f6SMauro Carvalho Chehab { 0x0000, KEY_MUTE }, /* [symbol speaker] */ 25*32cf86f6SMauro Carvalho Chehab { 0x0001, KEY_VOLUMEUP }, 26*32cf86f6SMauro Carvalho Chehab { 0x0002, KEY_POWER2 }, /* TV [power button] */ 27*32cf86f6SMauro Carvalho Chehab { 0x0003, KEY_2 }, 28*32cf86f6SMauro Carvalho Chehab { 0x0004, KEY_3 }, 29*32cf86f6SMauro Carvalho Chehab { 0x0005, KEY_4 }, 30*32cf86f6SMauro Carvalho Chehab { 0x0006, KEY_6 }, 31*32cf86f6SMauro Carvalho Chehab { 0x0007, KEY_7 }, 32*32cf86f6SMauro Carvalho Chehab { 0x0008, KEY_8 }, 33*32cf86f6SMauro Carvalho Chehab { 0x0009, KEY_NUMERIC_STAR }, /* [*] */ 34*32cf86f6SMauro Carvalho Chehab { 0x000a, KEY_0 }, 35*32cf86f6SMauro Carvalho Chehab { 0x000b, KEY_NUMERIC_POUND }, /* [#] */ 36*32cf86f6SMauro Carvalho Chehab { 0x000c, KEY_RIGHT }, /* [right arrow] */ 37*32cf86f6SMauro Carvalho Chehab { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */ 38*32cf86f6SMauro Carvalho Chehab { 0x000e, KEY_RED }, /* [red] Videos */ 39*32cf86f6SMauro Carvalho Chehab { 0x0010, KEY_POWER }, /* PC [power button] */ 40*32cf86f6SMauro Carvalho Chehab { 0x0011, KEY_YELLOW }, /* [yellow] Pictures */ 41*32cf86f6SMauro Carvalho Chehab { 0x0012, KEY_DOWN }, /* [down arrow] */ 42*32cf86f6SMauro Carvalho Chehab { 0x0013, KEY_GREEN }, /* [green] Music */ 43*32cf86f6SMauro Carvalho Chehab { 0x0014, KEY_CYCLEWINDOWS }, /* BACK */ 44*32cf86f6SMauro Carvalho Chehab { 0x0015, KEY_FAVORITES }, /* MORE */ 45*32cf86f6SMauro Carvalho Chehab { 0x0016, KEY_UP }, /* [up arrow] */ 46*32cf86f6SMauro Carvalho Chehab { 0x0017, KEY_LEFT }, /* [left arrow] */ 47*32cf86f6SMauro Carvalho Chehab { 0x0018, KEY_OK }, /* OK */ 48*32cf86f6SMauro Carvalho Chehab { 0x0019, KEY_BLUE }, /* [blue] MyTV */ 49*32cf86f6SMauro Carvalho Chehab { 0x001a, KEY_REWIND }, /* REW [<<] */ 50*32cf86f6SMauro Carvalho Chehab { 0x001b, KEY_PLAY }, /* PLAY */ 51*32cf86f6SMauro Carvalho Chehab { 0x001c, KEY_5 }, 52*32cf86f6SMauro Carvalho Chehab { 0x001d, KEY_9 }, 53*32cf86f6SMauro Carvalho Chehab { 0x001e, KEY_VOLUMEDOWN }, 54*32cf86f6SMauro Carvalho Chehab { 0x001f, KEY_1 }, 55*32cf86f6SMauro Carvalho Chehab { 0x0040, KEY_STOP }, /* STOP */ 56*32cf86f6SMauro Carvalho Chehab { 0x0042, KEY_PAUSE }, /* PAUSE */ 57*32cf86f6SMauro Carvalho Chehab { 0x0043, KEY_SCREEN }, /* Aspect */ 58*32cf86f6SMauro Carvalho Chehab { 0x0044, KEY_FORWARD }, /* FWD [>>] */ 59*32cf86f6SMauro Carvalho Chehab { 0x0045, KEY_NEXT }, /* SKIP */ 60*32cf86f6SMauro Carvalho Chehab { 0x0048, KEY_RECORD }, /* RECORD */ 61*32cf86f6SMauro Carvalho Chehab { 0x0049, KEY_VIDEO }, /* RTV */ 62*32cf86f6SMauro Carvalho Chehab { 0x004a, KEY_EPG }, /* Guide */ 63*32cf86f6SMauro Carvalho Chehab { 0x004b, KEY_CHANNELUP }, 64*32cf86f6SMauro Carvalho Chehab { 0x004c, KEY_HELP }, /* Help */ 65*32cf86f6SMauro Carvalho Chehab { 0x004d, KEY_RADIO }, /* Radio */ 66*32cf86f6SMauro Carvalho Chehab { 0x004f, KEY_CHANNELDOWN }, 67*32cf86f6SMauro Carvalho Chehab { 0x0050, KEY_DVD }, /* DVD */ 68*32cf86f6SMauro Carvalho Chehab { 0x0051, KEY_AUDIO }, /* Audio */ 69*32cf86f6SMauro Carvalho Chehab { 0x0052, KEY_TITLE }, /* Title */ 70*32cf86f6SMauro Carvalho Chehab { 0x0053, KEY_NEW }, /* [symbol PIP?] */ 71*32cf86f6SMauro Carvalho Chehab { 0x0057, KEY_MENU }, /* Mouse */ 72*32cf86f6SMauro Carvalho Chehab { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 73*32cf86f6SMauro Carvalho Chehab }; 74*32cf86f6SMauro Carvalho Chehab 75*32cf86f6SMauro Carvalho Chehab static struct rc_keymap digitalnow_tinytwin_map = { 76*32cf86f6SMauro Carvalho Chehab .map = { 77*32cf86f6SMauro Carvalho Chehab .scan = digitalnow_tinytwin, 78*32cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(digitalnow_tinytwin), 79*32cf86f6SMauro Carvalho Chehab .ir_type = IR_TYPE_NEC, 80*32cf86f6SMauro Carvalho Chehab .name = RC_MAP_DIGITALNOW_TINYTWIN, 81*32cf86f6SMauro Carvalho Chehab } 82*32cf86f6SMauro Carvalho Chehab }; 83*32cf86f6SMauro Carvalho Chehab 84*32cf86f6SMauro Carvalho Chehab static int __init init_rc_map_digitalnow_tinytwin(void) 85*32cf86f6SMauro Carvalho Chehab { 86*32cf86f6SMauro Carvalho Chehab return ir_register_map(&digitalnow_tinytwin_map); 87*32cf86f6SMauro Carvalho Chehab } 88*32cf86f6SMauro Carvalho Chehab 89*32cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_digitalnow_tinytwin(void) 90*32cf86f6SMauro Carvalho Chehab { 91*32cf86f6SMauro Carvalho Chehab ir_unregister_map(&digitalnow_tinytwin_map); 92*32cf86f6SMauro Carvalho Chehab } 93*32cf86f6SMauro Carvalho Chehab 94*32cf86f6SMauro Carvalho Chehab module_init(init_rc_map_digitalnow_tinytwin) 95*32cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_digitalnow_tinytwin) 96*32cf86f6SMauro Carvalho Chehab 97*32cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 98*32cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 99