162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * TwinHan AzureWave AD-TU700(704J) 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 azurewave_ad_tu700[] = { 1262306a36Sopenharmony_ci { 0x0000, KEY_TAB }, /* Tab */ 1362306a36Sopenharmony_ci { 0x0001, KEY_NUMERIC_2 }, 1462306a36Sopenharmony_ci { 0x0002, KEY_CHANNELDOWN }, 1562306a36Sopenharmony_ci { 0x0003, KEY_NUMERIC_1 }, 1662306a36Sopenharmony_ci { 0x0004, KEY_MENU }, /* Record List */ 1762306a36Sopenharmony_ci { 0x0005, KEY_CHANNELUP }, 1862306a36Sopenharmony_ci { 0x0006, KEY_NUMERIC_3 }, 1962306a36Sopenharmony_ci { 0x0007, KEY_SLEEP }, /* Hibernate */ 2062306a36Sopenharmony_ci { 0x0008, KEY_VIDEO }, /* A/V */ 2162306a36Sopenharmony_ci { 0x0009, KEY_NUMERIC_4 }, 2262306a36Sopenharmony_ci { 0x000a, KEY_VOLUMEDOWN }, 2362306a36Sopenharmony_ci { 0x000c, KEY_CANCEL }, /* Cancel */ 2462306a36Sopenharmony_ci { 0x000d, KEY_NUMERIC_7 }, 2562306a36Sopenharmony_ci { 0x000e, KEY_AGAIN }, /* Recall */ 2662306a36Sopenharmony_ci { 0x000f, KEY_TEXT }, /* Teletext */ 2762306a36Sopenharmony_ci { 0x0010, KEY_MUTE }, 2862306a36Sopenharmony_ci { 0x0011, KEY_RECORD }, 2962306a36Sopenharmony_ci { 0x0012, KEY_FASTFORWARD }, /* FF >> */ 3062306a36Sopenharmony_ci { 0x0013, KEY_BACK }, /* Back */ 3162306a36Sopenharmony_ci { 0x0014, KEY_PLAY }, 3262306a36Sopenharmony_ci { 0x0015, KEY_NUMERIC_0 }, 3362306a36Sopenharmony_ci { 0x0016, KEY_POWER2 }, /* [red power button] */ 3462306a36Sopenharmony_ci { 0x0017, KEY_FAVORITES }, /* Favorite List */ 3562306a36Sopenharmony_ci { 0x0018, KEY_RED }, 3662306a36Sopenharmony_ci { 0x0019, KEY_NUMERIC_8 }, 3762306a36Sopenharmony_ci { 0x001a, KEY_STOP }, 3862306a36Sopenharmony_ci { 0x001b, KEY_NUMERIC_9 }, 3962306a36Sopenharmony_ci { 0x001c, KEY_EPG }, /* Info/EPG */ 4062306a36Sopenharmony_ci { 0x001d, KEY_NUMERIC_5 }, 4162306a36Sopenharmony_ci { 0x001e, KEY_VOLUMEUP }, 4262306a36Sopenharmony_ci { 0x001f, KEY_NUMERIC_6 }, 4362306a36Sopenharmony_ci { 0x0040, KEY_REWIND }, /* FR << */ 4462306a36Sopenharmony_ci { 0x0041, KEY_PREVIOUS }, /* Replay */ 4562306a36Sopenharmony_ci { 0x0042, KEY_NEXT }, /* Skip */ 4662306a36Sopenharmony_ci { 0x0043, KEY_SUBTITLE }, /* Subtitle / CC */ 4762306a36Sopenharmony_ci { 0x0045, KEY_KPPLUS }, /* Zoom+ */ 4862306a36Sopenharmony_ci { 0x0046, KEY_KPMINUS }, /* Zoom- */ 4962306a36Sopenharmony_ci { 0x0047, KEY_NEW }, /* PIP */ 5062306a36Sopenharmony_ci { 0x0048, KEY_INFO }, /* Preview */ 5162306a36Sopenharmony_ci { 0x0049, KEY_MODE }, /* L/R */ 5262306a36Sopenharmony_ci { 0x004a, KEY_CLEAR }, /* Clear */ 5362306a36Sopenharmony_ci { 0x004b, KEY_UP }, /* up arrow */ 5462306a36Sopenharmony_ci { 0x004c, KEY_PAUSE }, 5562306a36Sopenharmony_ci { 0x004d, KEY_ZOOM }, /* Full Screen */ 5662306a36Sopenharmony_ci { 0x004e, KEY_LEFT }, /* left arrow */ 5762306a36Sopenharmony_ci { 0x004f, KEY_OK }, /* Enter / ok */ 5862306a36Sopenharmony_ci { 0x0050, KEY_LANGUAGE }, /* SAP */ 5962306a36Sopenharmony_ci { 0x0051, KEY_DOWN }, /* down arrow */ 6062306a36Sopenharmony_ci { 0x0052, KEY_RIGHT }, /* right arrow */ 6162306a36Sopenharmony_ci { 0x0053, KEY_GREEN }, 6262306a36Sopenharmony_ci { 0x0054, KEY_CAMERA }, /* Capture */ 6362306a36Sopenharmony_ci { 0x005e, KEY_YELLOW }, 6462306a36Sopenharmony_ci { 0x005f, KEY_BLUE }, 6562306a36Sopenharmony_ci}; 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_cistatic struct rc_map_list azurewave_ad_tu700_map = { 6862306a36Sopenharmony_ci .map = { 6962306a36Sopenharmony_ci .scan = azurewave_ad_tu700, 7062306a36Sopenharmony_ci .size = ARRAY_SIZE(azurewave_ad_tu700), 7162306a36Sopenharmony_ci .rc_proto = RC_PROTO_NEC, 7262306a36Sopenharmony_ci .name = RC_MAP_AZUREWAVE_AD_TU700, 7362306a36Sopenharmony_ci } 7462306a36Sopenharmony_ci}; 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_cistatic int __init init_rc_map_azurewave_ad_tu700(void) 7762306a36Sopenharmony_ci{ 7862306a36Sopenharmony_ci return rc_map_register(&azurewave_ad_tu700_map); 7962306a36Sopenharmony_ci} 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_cistatic void __exit exit_rc_map_azurewave_ad_tu700(void) 8262306a36Sopenharmony_ci{ 8362306a36Sopenharmony_ci rc_map_unregister(&azurewave_ad_tu700_map); 8462306a36Sopenharmony_ci} 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_cimodule_init(init_rc_map_azurewave_ad_tu700) 8762306a36Sopenharmony_cimodule_exit(exit_rc_map_azurewave_ad_tu700) 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 9062306a36Sopenharmony_ciMODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 91