1*32cf86f6SMauro Carvalho Chehab /* 2*32cf86f6SMauro Carvalho Chehab * Digittrade DVB-T USB Stick 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 /* Digittrade DVB-T USB Stick remote controller. */ 24*32cf86f6SMauro Carvalho Chehab /* Imported from af9015.h. 25*32cf86f6SMauro Carvalho Chehab Initial keytable was from Alain Kalker <miki@dds.nl> */ 26*32cf86f6SMauro Carvalho Chehab 27*32cf86f6SMauro Carvalho Chehab /* Digittrade DVB-T USB Stick */ 28*32cf86f6SMauro Carvalho Chehab static struct ir_scancode digittrade[] = { 29*32cf86f6SMauro Carvalho Chehab { 0x0000, KEY_9 }, 30*32cf86f6SMauro Carvalho Chehab { 0x0001, KEY_EPG }, /* EPG */ 31*32cf86f6SMauro Carvalho Chehab { 0x0002, KEY_VOLUMEDOWN }, /* Vol Dn */ 32*32cf86f6SMauro Carvalho Chehab { 0x0003, KEY_TEXT }, /* TELETEXT */ 33*32cf86f6SMauro Carvalho Chehab { 0x0004, KEY_8 }, 34*32cf86f6SMauro Carvalho Chehab { 0x0005, KEY_MUTE }, /* MUTE */ 35*32cf86f6SMauro Carvalho Chehab { 0x0006, KEY_POWER2 }, /* POWER */ 36*32cf86f6SMauro Carvalho Chehab { 0x0009, KEY_ZOOM }, /* FULLSCREEN */ 37*32cf86f6SMauro Carvalho Chehab { 0x000a, KEY_RECORD }, /* RECORD */ 38*32cf86f6SMauro Carvalho Chehab { 0x000d, KEY_SUBTITLE }, /* SUBTITLE */ 39*32cf86f6SMauro Carvalho Chehab { 0x000e, KEY_STOP }, /* STOP */ 40*32cf86f6SMauro Carvalho Chehab { 0x0010, KEY_OK }, /* RETURN */ 41*32cf86f6SMauro Carvalho Chehab { 0x0011, KEY_2 }, 42*32cf86f6SMauro Carvalho Chehab { 0x0012, KEY_4 }, 43*32cf86f6SMauro Carvalho Chehab { 0x0015, KEY_3 }, 44*32cf86f6SMauro Carvalho Chehab { 0x0016, KEY_5 }, 45*32cf86f6SMauro Carvalho Chehab { 0x0017, KEY_CHANNELDOWN }, /* Ch Dn */ 46*32cf86f6SMauro Carvalho Chehab { 0x0019, KEY_CHANNELUP }, /* CH Up */ 47*32cf86f6SMauro Carvalho Chehab { 0x001a, KEY_PAUSE }, /* PAUSE */ 48*32cf86f6SMauro Carvalho Chehab { 0x001b, KEY_1 }, 49*32cf86f6SMauro Carvalho Chehab { 0x001d, KEY_AUDIO }, /* DUAL SOUND */ 50*32cf86f6SMauro Carvalho Chehab { 0x001e, KEY_PLAY }, /* PLAY */ 51*32cf86f6SMauro Carvalho Chehab { 0x001f, KEY_CAMERA }, /* SNAPSHOT */ 52*32cf86f6SMauro Carvalho Chehab { 0x0040, KEY_VOLUMEUP }, /* Vol Up */ 53*32cf86f6SMauro Carvalho Chehab { 0x0048, KEY_7 }, 54*32cf86f6SMauro Carvalho Chehab { 0x004c, KEY_6 }, 55*32cf86f6SMauro Carvalho Chehab { 0x004d, KEY_PLAYPAUSE }, /* TIMESHIFT */ 56*32cf86f6SMauro Carvalho Chehab { 0x0054, KEY_0 }, 57*32cf86f6SMauro Carvalho Chehab }; 58*32cf86f6SMauro Carvalho Chehab 59*32cf86f6SMauro Carvalho Chehab static struct rc_keymap digittrade_map = { 60*32cf86f6SMauro Carvalho Chehab .map = { 61*32cf86f6SMauro Carvalho Chehab .scan = digittrade, 62*32cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(digittrade), 63*32cf86f6SMauro Carvalho Chehab .ir_type = IR_TYPE_NEC, 64*32cf86f6SMauro Carvalho Chehab .name = RC_MAP_DIGITTRADE, 65*32cf86f6SMauro Carvalho Chehab } 66*32cf86f6SMauro Carvalho Chehab }; 67*32cf86f6SMauro Carvalho Chehab 68*32cf86f6SMauro Carvalho Chehab static int __init init_rc_map_digittrade(void) 69*32cf86f6SMauro Carvalho Chehab { 70*32cf86f6SMauro Carvalho Chehab return ir_register_map(&digittrade_map); 71*32cf86f6SMauro Carvalho Chehab } 72*32cf86f6SMauro Carvalho Chehab 73*32cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_digittrade(void) 74*32cf86f6SMauro Carvalho Chehab { 75*32cf86f6SMauro Carvalho Chehab ir_unregister_map(&digittrade_map); 76*32cf86f6SMauro Carvalho Chehab } 77*32cf86f6SMauro Carvalho Chehab 78*32cf86f6SMauro Carvalho Chehab module_init(init_rc_map_digittrade) 79*32cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_digittrade) 80*32cf86f6SMauro Carvalho Chehab 81*32cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 82*32cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 83