Path: blob/master/drivers/media/rc/keymaps/rc-digittrade.c
15112 views
/*1* Digittrade DVB-T USB Stick remote controller keytable2*3* Copyright (C) 2010 Antti Palosaari <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License along16* with this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#include <media/rc-map.h>2122/* Digittrade DVB-T USB Stick remote controller. */23/* Imported from af9015.h.24Initial keytable was from Alain Kalker <[email protected]> */2526/* Digittrade DVB-T USB Stick */27static struct rc_map_table digittrade[] = {28{ 0x0000, KEY_9 },29{ 0x0001, KEY_EPG }, /* EPG */30{ 0x0002, KEY_VOLUMEDOWN }, /* Vol Dn */31{ 0x0003, KEY_TEXT }, /* TELETEXT */32{ 0x0004, KEY_8 },33{ 0x0005, KEY_MUTE }, /* MUTE */34{ 0x0006, KEY_POWER2 }, /* POWER */35{ 0x0009, KEY_ZOOM }, /* FULLSCREEN */36{ 0x000a, KEY_RECORD }, /* RECORD */37{ 0x000d, KEY_SUBTITLE }, /* SUBTITLE */38{ 0x000e, KEY_STOP }, /* STOP */39{ 0x0010, KEY_OK }, /* RETURN */40{ 0x0011, KEY_2 },41{ 0x0012, KEY_4 },42{ 0x0015, KEY_3 },43{ 0x0016, KEY_5 },44{ 0x0017, KEY_CHANNELDOWN }, /* Ch Dn */45{ 0x0019, KEY_CHANNELUP }, /* CH Up */46{ 0x001a, KEY_PAUSE }, /* PAUSE */47{ 0x001b, KEY_1 },48{ 0x001d, KEY_AUDIO }, /* DUAL SOUND */49{ 0x001e, KEY_PLAY }, /* PLAY */50{ 0x001f, KEY_CAMERA }, /* SNAPSHOT */51{ 0x0040, KEY_VOLUMEUP }, /* Vol Up */52{ 0x0048, KEY_7 },53{ 0x004c, KEY_6 },54{ 0x004d, KEY_PLAYPAUSE }, /* TIMESHIFT */55{ 0x0054, KEY_0 },56};5758static struct rc_map_list digittrade_map = {59.map = {60.scan = digittrade,61.size = ARRAY_SIZE(digittrade),62.rc_type = RC_TYPE_NEC,63.name = RC_MAP_DIGITTRADE,64}65};6667static int __init init_rc_map_digittrade(void)68{69return rc_map_register(&digittrade_map);70}7172static void __exit exit_rc_map_digittrade(void)73{74rc_map_unregister(&digittrade_map);75}7677module_init(init_rc_map_digittrade)78module_exit(exit_rc_map_digittrade)7980MODULE_LICENSE("GPL");81MODULE_AUTHOR("Antti Palosaari <[email protected]>");828384