132cf86f6SMauro Carvalho Chehab /* 232cf86f6SMauro Carvalho Chehab * Digittrade DVB-T USB Stick 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> 227a707b89SPaul Gortmaker #include <linux/module.h> 2332cf86f6SMauro Carvalho Chehab 2432cf86f6SMauro Carvalho Chehab /* Digittrade DVB-T USB Stick remote controller. */ 2532cf86f6SMauro Carvalho Chehab /* Imported from af9015.h. 2632cf86f6SMauro Carvalho Chehab Initial keytable was from Alain Kalker <miki@dds.nl> */ 2732cf86f6SMauro Carvalho Chehab 2832cf86f6SMauro Carvalho Chehab /* Digittrade DVB-T USB Stick */ 292f4f58d6SMauro Carvalho Chehab static struct rc_map_table digittrade[] = { 3032cf86f6SMauro Carvalho Chehab { 0x0000, KEY_9 }, 3132cf86f6SMauro Carvalho Chehab { 0x0001, KEY_EPG }, /* EPG */ 3232cf86f6SMauro Carvalho Chehab { 0x0002, KEY_VOLUMEDOWN }, /* Vol Dn */ 3332cf86f6SMauro Carvalho Chehab { 0x0003, KEY_TEXT }, /* TELETEXT */ 3432cf86f6SMauro Carvalho Chehab { 0x0004, KEY_8 }, 3532cf86f6SMauro Carvalho Chehab { 0x0005, KEY_MUTE }, /* MUTE */ 3632cf86f6SMauro Carvalho Chehab { 0x0006, KEY_POWER2 }, /* POWER */ 3732cf86f6SMauro Carvalho Chehab { 0x0009, KEY_ZOOM }, /* FULLSCREEN */ 3832cf86f6SMauro Carvalho Chehab { 0x000a, KEY_RECORD }, /* RECORD */ 3932cf86f6SMauro Carvalho Chehab { 0x000d, KEY_SUBTITLE }, /* SUBTITLE */ 4032cf86f6SMauro Carvalho Chehab { 0x000e, KEY_STOP }, /* STOP */ 4132cf86f6SMauro Carvalho Chehab { 0x0010, KEY_OK }, /* RETURN */ 4232cf86f6SMauro Carvalho Chehab { 0x0011, KEY_2 }, 4332cf86f6SMauro Carvalho Chehab { 0x0012, KEY_4 }, 4432cf86f6SMauro Carvalho Chehab { 0x0015, KEY_3 }, 4532cf86f6SMauro Carvalho Chehab { 0x0016, KEY_5 }, 4632cf86f6SMauro Carvalho Chehab { 0x0017, KEY_CHANNELDOWN }, /* Ch Dn */ 4732cf86f6SMauro Carvalho Chehab { 0x0019, KEY_CHANNELUP }, /* CH Up */ 4832cf86f6SMauro Carvalho Chehab { 0x001a, KEY_PAUSE }, /* PAUSE */ 4932cf86f6SMauro Carvalho Chehab { 0x001b, KEY_1 }, 5032cf86f6SMauro Carvalho Chehab { 0x001d, KEY_AUDIO }, /* DUAL SOUND */ 5132cf86f6SMauro Carvalho Chehab { 0x001e, KEY_PLAY }, /* PLAY */ 5232cf86f6SMauro Carvalho Chehab { 0x001f, KEY_CAMERA }, /* SNAPSHOT */ 5332cf86f6SMauro Carvalho Chehab { 0x0040, KEY_VOLUMEUP }, /* Vol Up */ 5432cf86f6SMauro Carvalho Chehab { 0x0048, KEY_7 }, 5532cf86f6SMauro Carvalho Chehab { 0x004c, KEY_6 }, 5632cf86f6SMauro Carvalho Chehab { 0x004d, KEY_PLAYPAUSE }, /* TIMESHIFT */ 5732cf86f6SMauro Carvalho Chehab { 0x0054, KEY_0 }, 5832cf86f6SMauro Carvalho Chehab }; 5932cf86f6SMauro Carvalho Chehab 60d100e659SMauro Carvalho Chehab static struct rc_map_list digittrade_map = { 6132cf86f6SMauro Carvalho Chehab .map = { 6232cf86f6SMauro Carvalho Chehab .scan = digittrade, 6332cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(digittrade), 64*6d741bfeSSean Young .rc_proto = RC_PROTO_NEC, 6532cf86f6SMauro Carvalho Chehab .name = RC_MAP_DIGITTRADE, 6632cf86f6SMauro Carvalho Chehab } 6732cf86f6SMauro Carvalho Chehab }; 6832cf86f6SMauro Carvalho Chehab 6932cf86f6SMauro Carvalho Chehab static int __init init_rc_map_digittrade(void) 7032cf86f6SMauro Carvalho Chehab { 71d100e659SMauro Carvalho Chehab return rc_map_register(&digittrade_map); 7232cf86f6SMauro Carvalho Chehab } 7332cf86f6SMauro Carvalho Chehab 7432cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_digittrade(void) 7532cf86f6SMauro Carvalho Chehab { 76d100e659SMauro Carvalho Chehab rc_map_unregister(&digittrade_map); 7732cf86f6SMauro Carvalho Chehab } 7832cf86f6SMauro Carvalho Chehab 7932cf86f6SMauro Carvalho Chehab module_init(init_rc_map_digittrade) 8032cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_digittrade) 8132cf86f6SMauro Carvalho Chehab 8232cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8332cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 84