Path: blob/master/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
15112 views
/*1* DigitalNow TinyTwin 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>2122static struct rc_map_table digitalnow_tinytwin[] = {23{ 0x0000, KEY_MUTE }, /* [symbol speaker] */24{ 0x0001, KEY_VOLUMEUP },25{ 0x0002, KEY_POWER2 }, /* TV [power button] */26{ 0x0003, KEY_2 },27{ 0x0004, KEY_3 },28{ 0x0005, KEY_4 },29{ 0x0006, KEY_6 },30{ 0x0007, KEY_7 },31{ 0x0008, KEY_8 },32{ 0x0009, KEY_NUMERIC_STAR }, /* [*] */33{ 0x000a, KEY_0 },34{ 0x000b, KEY_NUMERIC_POUND }, /* [#] */35{ 0x000c, KEY_RIGHT }, /* [right arrow] */36{ 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */37{ 0x000e, KEY_RED }, /* [red] Videos */38{ 0x0010, KEY_POWER }, /* PC [power button] */39{ 0x0011, KEY_YELLOW }, /* [yellow] Pictures */40{ 0x0012, KEY_DOWN }, /* [down arrow] */41{ 0x0013, KEY_GREEN }, /* [green] Music */42{ 0x0014, KEY_CYCLEWINDOWS }, /* BACK */43{ 0x0015, KEY_FAVORITES }, /* MORE */44{ 0x0016, KEY_UP }, /* [up arrow] */45{ 0x0017, KEY_LEFT }, /* [left arrow] */46{ 0x0018, KEY_OK }, /* OK */47{ 0x0019, KEY_BLUE }, /* [blue] MyTV */48{ 0x001a, KEY_REWIND }, /* REW [<<] */49{ 0x001b, KEY_PLAY }, /* PLAY */50{ 0x001c, KEY_5 },51{ 0x001d, KEY_9 },52{ 0x001e, KEY_VOLUMEDOWN },53{ 0x001f, KEY_1 },54{ 0x0040, KEY_STOP }, /* STOP */55{ 0x0042, KEY_PAUSE }, /* PAUSE */56{ 0x0043, KEY_SCREEN }, /* Aspect */57{ 0x0044, KEY_FORWARD }, /* FWD [>>] */58{ 0x0045, KEY_NEXT }, /* SKIP */59{ 0x0048, KEY_RECORD }, /* RECORD */60{ 0x0049, KEY_VIDEO }, /* RTV */61{ 0x004a, KEY_EPG }, /* Guide */62{ 0x004b, KEY_CHANNELUP },63{ 0x004c, KEY_HELP }, /* Help */64{ 0x004d, KEY_RADIO }, /* Radio */65{ 0x004f, KEY_CHANNELDOWN },66{ 0x0050, KEY_DVD }, /* DVD */67{ 0x0051, KEY_AUDIO }, /* Audio */68{ 0x0052, KEY_TITLE }, /* Title */69{ 0x0053, KEY_NEW }, /* [symbol PIP?] */70{ 0x0057, KEY_MENU }, /* Mouse */71{ 0x005a, KEY_PREVIOUS }, /* REPLAY */72};7374static struct rc_map_list digitalnow_tinytwin_map = {75.map = {76.scan = digitalnow_tinytwin,77.size = ARRAY_SIZE(digitalnow_tinytwin),78.rc_type = RC_TYPE_NEC,79.name = RC_MAP_DIGITALNOW_TINYTWIN,80}81};8283static int __init init_rc_map_digitalnow_tinytwin(void)84{85return rc_map_register(&digitalnow_tinytwin_map);86}8788static void __exit exit_rc_map_digitalnow_tinytwin(void)89{90rc_map_unregister(&digitalnow_tinytwin_map);91}9293module_init(init_rc_map_digitalnow_tinytwin)94module_exit(exit_rc_map_digitalnow_tinytwin)9596MODULE_LICENSE("GPL");97MODULE_AUTHOR("Antti Palosaari <[email protected]>");9899100