162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * DigitalNow TinyTwin remote controller keytable 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include <media/rc-map.h> 962306a36Sopenharmony_ci#include <linux/module.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistatic struct rc_map_table digitalnow_tinytwin[] = { 1262306a36Sopenharmony_ci { 0x0000, KEY_MUTE }, /* [symbol speaker] */ 1362306a36Sopenharmony_ci { 0x0001, KEY_VOLUMEUP }, 1462306a36Sopenharmony_ci { 0x0002, KEY_POWER2 }, /* TV [power button] */ 1562306a36Sopenharmony_ci { 0x0003, KEY_NUMERIC_2 }, 1662306a36Sopenharmony_ci { 0x0004, KEY_NUMERIC_3 }, 1762306a36Sopenharmony_ci { 0x0005, KEY_NUMERIC_4 }, 1862306a36Sopenharmony_ci { 0x0006, KEY_NUMERIC_6 }, 1962306a36Sopenharmony_ci { 0x0007, KEY_NUMERIC_7 }, 2062306a36Sopenharmony_ci { 0x0008, KEY_NUMERIC_8 }, 2162306a36Sopenharmony_ci { 0x0009, KEY_NUMERIC_STAR }, /* [*] */ 2262306a36Sopenharmony_ci { 0x000a, KEY_NUMERIC_0 }, 2362306a36Sopenharmony_ci { 0x000b, KEY_NUMERIC_POUND }, /* [#] */ 2462306a36Sopenharmony_ci { 0x000c, KEY_RIGHT }, /* [right arrow] */ 2562306a36Sopenharmony_ci { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */ 2662306a36Sopenharmony_ci { 0x000e, KEY_RED }, /* [red] Videos */ 2762306a36Sopenharmony_ci { 0x0010, KEY_POWER }, /* PC [power button] */ 2862306a36Sopenharmony_ci { 0x0011, KEY_YELLOW }, /* [yellow] Pictures */ 2962306a36Sopenharmony_ci { 0x0012, KEY_DOWN }, /* [down arrow] */ 3062306a36Sopenharmony_ci { 0x0013, KEY_GREEN }, /* [green] Music */ 3162306a36Sopenharmony_ci { 0x0014, KEY_CYCLEWINDOWS }, /* BACK */ 3262306a36Sopenharmony_ci { 0x0015, KEY_FAVORITES }, /* MORE */ 3362306a36Sopenharmony_ci { 0x0016, KEY_UP }, /* [up arrow] */ 3462306a36Sopenharmony_ci { 0x0017, KEY_LEFT }, /* [left arrow] */ 3562306a36Sopenharmony_ci { 0x0018, KEY_OK }, /* OK */ 3662306a36Sopenharmony_ci { 0x0019, KEY_BLUE }, /* [blue] MyTV */ 3762306a36Sopenharmony_ci { 0x001a, KEY_REWIND }, /* REW [<<] */ 3862306a36Sopenharmony_ci { 0x001b, KEY_PLAY }, /* PLAY */ 3962306a36Sopenharmony_ci { 0x001c, KEY_NUMERIC_5 }, 4062306a36Sopenharmony_ci { 0x001d, KEY_NUMERIC_9 }, 4162306a36Sopenharmony_ci { 0x001e, KEY_VOLUMEDOWN }, 4262306a36Sopenharmony_ci { 0x001f, KEY_NUMERIC_1 }, 4362306a36Sopenharmony_ci { 0x0040, KEY_STOP }, /* STOP */ 4462306a36Sopenharmony_ci { 0x0042, KEY_PAUSE }, /* PAUSE */ 4562306a36Sopenharmony_ci { 0x0043, KEY_SCREEN }, /* Aspect */ 4662306a36Sopenharmony_ci { 0x0044, KEY_FORWARD }, /* FWD [>>] */ 4762306a36Sopenharmony_ci { 0x0045, KEY_NEXT }, /* SKIP */ 4862306a36Sopenharmony_ci { 0x0048, KEY_RECORD }, /* RECORD */ 4962306a36Sopenharmony_ci { 0x0049, KEY_VIDEO }, /* RTV */ 5062306a36Sopenharmony_ci { 0x004a, KEY_EPG }, /* Guide */ 5162306a36Sopenharmony_ci { 0x004b, KEY_CHANNELUP }, 5262306a36Sopenharmony_ci { 0x004c, KEY_HELP }, /* Help */ 5362306a36Sopenharmony_ci { 0x004d, KEY_RADIO }, /* Radio */ 5462306a36Sopenharmony_ci { 0x004f, KEY_CHANNELDOWN }, 5562306a36Sopenharmony_ci { 0x0050, KEY_DVD }, /* DVD */ 5662306a36Sopenharmony_ci { 0x0051, KEY_AUDIO }, /* Audio */ 5762306a36Sopenharmony_ci { 0x0052, KEY_TITLE }, /* Title */ 5862306a36Sopenharmony_ci { 0x0053, KEY_NEW }, /* [symbol PIP?] */ 5962306a36Sopenharmony_ci { 0x0057, KEY_MENU }, /* Mouse */ 6062306a36Sopenharmony_ci { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 6162306a36Sopenharmony_ci}; 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_cistatic struct rc_map_list digitalnow_tinytwin_map = { 6462306a36Sopenharmony_ci .map = { 6562306a36Sopenharmony_ci .scan = digitalnow_tinytwin, 6662306a36Sopenharmony_ci .size = ARRAY_SIZE(digitalnow_tinytwin), 6762306a36Sopenharmony_ci .rc_proto = RC_PROTO_NEC, 6862306a36Sopenharmony_ci .name = RC_MAP_DIGITALNOW_TINYTWIN, 6962306a36Sopenharmony_ci } 7062306a36Sopenharmony_ci}; 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_cistatic int __init init_rc_map_digitalnow_tinytwin(void) 7362306a36Sopenharmony_ci{ 7462306a36Sopenharmony_ci return rc_map_register(&digitalnow_tinytwin_map); 7562306a36Sopenharmony_ci} 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_cistatic void __exit exit_rc_map_digitalnow_tinytwin(void) 7862306a36Sopenharmony_ci{ 7962306a36Sopenharmony_ci rc_map_unregister(&digitalnow_tinytwin_map); 8062306a36Sopenharmony_ci} 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_cimodule_init(init_rc_map_digitalnow_tinytwin) 8362306a36Sopenharmony_cimodule_exit(exit_rc_map_digitalnow_tinytwin) 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 8662306a36Sopenharmony_ciMODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 87