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