rc-digitalnow-tinytwin.c (2988B)
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * DigitalNow TinyTwin remote controller keytable 4 * 5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 6 */ 7 8#include <media/rc-map.h> 9#include <linux/module.h> 10 11static struct rc_map_table digitalnow_tinytwin[] = { 12 { 0x0000, KEY_MUTE }, /* [symbol speaker] */ 13 { 0x0001, KEY_VOLUMEUP }, 14 { 0x0002, KEY_POWER2 }, /* TV [power button] */ 15 { 0x0003, KEY_NUMERIC_2 }, 16 { 0x0004, KEY_NUMERIC_3 }, 17 { 0x0005, KEY_NUMERIC_4 }, 18 { 0x0006, KEY_NUMERIC_6 }, 19 { 0x0007, KEY_NUMERIC_7 }, 20 { 0x0008, KEY_NUMERIC_8 }, 21 { 0x0009, KEY_NUMERIC_STAR }, /* [*] */ 22 { 0x000a, KEY_NUMERIC_0 }, 23 { 0x000b, KEY_NUMERIC_POUND }, /* [#] */ 24 { 0x000c, KEY_RIGHT }, /* [right arrow] */ 25 { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */ 26 { 0x000e, KEY_RED }, /* [red] Videos */ 27 { 0x0010, KEY_POWER }, /* PC [power button] */ 28 { 0x0011, KEY_YELLOW }, /* [yellow] Pictures */ 29 { 0x0012, KEY_DOWN }, /* [down arrow] */ 30 { 0x0013, KEY_GREEN }, /* [green] Music */ 31 { 0x0014, KEY_CYCLEWINDOWS }, /* BACK */ 32 { 0x0015, KEY_FAVORITES }, /* MORE */ 33 { 0x0016, KEY_UP }, /* [up arrow] */ 34 { 0x0017, KEY_LEFT }, /* [left arrow] */ 35 { 0x0018, KEY_OK }, /* OK */ 36 { 0x0019, KEY_BLUE }, /* [blue] MyTV */ 37 { 0x001a, KEY_REWIND }, /* REW [<<] */ 38 { 0x001b, KEY_PLAY }, /* PLAY */ 39 { 0x001c, KEY_NUMERIC_5 }, 40 { 0x001d, KEY_NUMERIC_9 }, 41 { 0x001e, KEY_VOLUMEDOWN }, 42 { 0x001f, KEY_NUMERIC_1 }, 43 { 0x0040, KEY_STOP }, /* STOP */ 44 { 0x0042, KEY_PAUSE }, /* PAUSE */ 45 { 0x0043, KEY_SCREEN }, /* Aspect */ 46 { 0x0044, KEY_FORWARD }, /* FWD [>>] */ 47 { 0x0045, KEY_NEXT }, /* SKIP */ 48 { 0x0048, KEY_RECORD }, /* RECORD */ 49 { 0x0049, KEY_VIDEO }, /* RTV */ 50 { 0x004a, KEY_EPG }, /* Guide */ 51 { 0x004b, KEY_CHANNELUP }, 52 { 0x004c, KEY_HELP }, /* Help */ 53 { 0x004d, KEY_RADIO }, /* Radio */ 54 { 0x004f, KEY_CHANNELDOWN }, 55 { 0x0050, KEY_DVD }, /* DVD */ 56 { 0x0051, KEY_AUDIO }, /* Audio */ 57 { 0x0052, KEY_TITLE }, /* Title */ 58 { 0x0053, KEY_NEW }, /* [symbol PIP?] */ 59 { 0x0057, KEY_MENU }, /* Mouse */ 60 { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 61}; 62 63static struct rc_map_list digitalnow_tinytwin_map = { 64 .map = { 65 .scan = digitalnow_tinytwin, 66 .size = ARRAY_SIZE(digitalnow_tinytwin), 67 .rc_proto = RC_PROTO_NEC, 68 .name = RC_MAP_DIGITALNOW_TINYTWIN, 69 } 70}; 71 72static int __init init_rc_map_digitalnow_tinytwin(void) 73{ 74 return rc_map_register(&digitalnow_tinytwin_map); 75} 76 77static void __exit exit_rc_map_digitalnow_tinytwin(void) 78{ 79 rc_map_unregister(&digitalnow_tinytwin_map); 80} 81 82module_init(init_rc_map_digitalnow_tinytwin) 83module_exit(exit_rc_map_digitalnow_tinytwin) 84 85MODULE_LICENSE("GPL"); 86MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");