1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * TwinHan AzureWave AD-TU700(704J) remote controller keytable
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
6*4882a593Smuzhiyun */
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun #include <media/rc-map.h>
9*4882a593Smuzhiyun #include <linux/module.h>
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun static struct rc_map_table azurewave_ad_tu700[] = {
12*4882a593Smuzhiyun { 0x0000, KEY_TAB }, /* Tab */
13*4882a593Smuzhiyun { 0x0001, KEY_NUMERIC_2 },
14*4882a593Smuzhiyun { 0x0002, KEY_CHANNELDOWN },
15*4882a593Smuzhiyun { 0x0003, KEY_NUMERIC_1 },
16*4882a593Smuzhiyun { 0x0004, KEY_MENU }, /* Record List */
17*4882a593Smuzhiyun { 0x0005, KEY_CHANNELUP },
18*4882a593Smuzhiyun { 0x0006, KEY_NUMERIC_3 },
19*4882a593Smuzhiyun { 0x0007, KEY_SLEEP }, /* Hibernate */
20*4882a593Smuzhiyun { 0x0008, KEY_VIDEO }, /* A/V */
21*4882a593Smuzhiyun { 0x0009, KEY_NUMERIC_4 },
22*4882a593Smuzhiyun { 0x000a, KEY_VOLUMEDOWN },
23*4882a593Smuzhiyun { 0x000c, KEY_CANCEL }, /* Cancel */
24*4882a593Smuzhiyun { 0x000d, KEY_NUMERIC_7 },
25*4882a593Smuzhiyun { 0x000e, KEY_AGAIN }, /* Recall */
26*4882a593Smuzhiyun { 0x000f, KEY_TEXT }, /* Teletext */
27*4882a593Smuzhiyun { 0x0010, KEY_MUTE },
28*4882a593Smuzhiyun { 0x0011, KEY_RECORD },
29*4882a593Smuzhiyun { 0x0012, KEY_FASTFORWARD }, /* FF >> */
30*4882a593Smuzhiyun { 0x0013, KEY_BACK }, /* Back */
31*4882a593Smuzhiyun { 0x0014, KEY_PLAY },
32*4882a593Smuzhiyun { 0x0015, KEY_NUMERIC_0 },
33*4882a593Smuzhiyun { 0x0016, KEY_POWER2 }, /* [red power button] */
34*4882a593Smuzhiyun { 0x0017, KEY_FAVORITES }, /* Favorite List */
35*4882a593Smuzhiyun { 0x0018, KEY_RED },
36*4882a593Smuzhiyun { 0x0019, KEY_NUMERIC_8 },
37*4882a593Smuzhiyun { 0x001a, KEY_STOP },
38*4882a593Smuzhiyun { 0x001b, KEY_NUMERIC_9 },
39*4882a593Smuzhiyun { 0x001c, KEY_EPG }, /* Info/EPG */
40*4882a593Smuzhiyun { 0x001d, KEY_NUMERIC_5 },
41*4882a593Smuzhiyun { 0x001e, KEY_VOLUMEUP },
42*4882a593Smuzhiyun { 0x001f, KEY_NUMERIC_6 },
43*4882a593Smuzhiyun { 0x0040, KEY_REWIND }, /* FR << */
44*4882a593Smuzhiyun { 0x0041, KEY_PREVIOUS }, /* Replay */
45*4882a593Smuzhiyun { 0x0042, KEY_NEXT }, /* Skip */
46*4882a593Smuzhiyun { 0x0043, KEY_SUBTITLE }, /* Subtitle / CC */
47*4882a593Smuzhiyun { 0x0045, KEY_KPPLUS }, /* Zoom+ */
48*4882a593Smuzhiyun { 0x0046, KEY_KPMINUS }, /* Zoom- */
49*4882a593Smuzhiyun { 0x0047, KEY_NEW }, /* PIP */
50*4882a593Smuzhiyun { 0x0048, KEY_INFO }, /* Preview */
51*4882a593Smuzhiyun { 0x0049, KEY_MODE }, /* L/R */
52*4882a593Smuzhiyun { 0x004a, KEY_CLEAR }, /* Clear */
53*4882a593Smuzhiyun { 0x004b, KEY_UP }, /* up arrow */
54*4882a593Smuzhiyun { 0x004c, KEY_PAUSE },
55*4882a593Smuzhiyun { 0x004d, KEY_ZOOM }, /* Full Screen */
56*4882a593Smuzhiyun { 0x004e, KEY_LEFT }, /* left arrow */
57*4882a593Smuzhiyun { 0x004f, KEY_OK }, /* Enter / ok */
58*4882a593Smuzhiyun { 0x0050, KEY_LANGUAGE }, /* SAP */
59*4882a593Smuzhiyun { 0x0051, KEY_DOWN }, /* down arrow */
60*4882a593Smuzhiyun { 0x0052, KEY_RIGHT }, /* right arrow */
61*4882a593Smuzhiyun { 0x0053, KEY_GREEN },
62*4882a593Smuzhiyun { 0x0054, KEY_CAMERA }, /* Capture */
63*4882a593Smuzhiyun { 0x005e, KEY_YELLOW },
64*4882a593Smuzhiyun { 0x005f, KEY_BLUE },
65*4882a593Smuzhiyun };
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun static struct rc_map_list azurewave_ad_tu700_map = {
68*4882a593Smuzhiyun .map = {
69*4882a593Smuzhiyun .scan = azurewave_ad_tu700,
70*4882a593Smuzhiyun .size = ARRAY_SIZE(azurewave_ad_tu700),
71*4882a593Smuzhiyun .rc_proto = RC_PROTO_NEC,
72*4882a593Smuzhiyun .name = RC_MAP_AZUREWAVE_AD_TU700,
73*4882a593Smuzhiyun }
74*4882a593Smuzhiyun };
75*4882a593Smuzhiyun
init_rc_map_azurewave_ad_tu700(void)76*4882a593Smuzhiyun static int __init init_rc_map_azurewave_ad_tu700(void)
77*4882a593Smuzhiyun {
78*4882a593Smuzhiyun return rc_map_register(&azurewave_ad_tu700_map);
79*4882a593Smuzhiyun }
80*4882a593Smuzhiyun
exit_rc_map_azurewave_ad_tu700(void)81*4882a593Smuzhiyun static void __exit exit_rc_map_azurewave_ad_tu700(void)
82*4882a593Smuzhiyun {
83*4882a593Smuzhiyun rc_map_unregister(&azurewave_ad_tu700_map);
84*4882a593Smuzhiyun }
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun module_init(init_rc_map_azurewave_ad_tu700)
87*4882a593Smuzhiyun module_exit(exit_rc_map_azurewave_ad_tu700)
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun MODULE_LICENSE("GPL");
90*4882a593Smuzhiyun MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
91