rc-ct-90405.c (2004B)
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Toshiba CT-90405 remote controller keytable 4 * 5 * Copyright (C) 2021 Alexander Voronov <avv.0@ya.ru> 6 */ 7 8#include <media/rc-map.h> 9#include <linux/module.h> 10 11static struct rc_map_table ct_90405[] = { 12 { 0x4014, KEY_SWITCHVIDEOMODE }, 13 { 0x4012, KEY_POWER }, 14 { 0x4044, KEY_TV }, 15 { 0x40be43, KEY_3D_MODE }, 16 { 0x400c, KEY_SUBTITLE }, 17 { 0x4001, KEY_NUMERIC_1 }, 18 { 0x4002, KEY_NUMERIC_2 }, 19 { 0x4003, KEY_NUMERIC_3 }, 20 { 0x4004, KEY_NUMERIC_4 }, 21 { 0x4005, KEY_NUMERIC_5 }, 22 { 0x4006, KEY_NUMERIC_6 }, 23 { 0x4007, KEY_NUMERIC_7 }, 24 { 0x4008, KEY_NUMERIC_8 }, 25 { 0x4009, KEY_NUMERIC_9 }, 26 { 0x4062, KEY_AUDIO_DESC }, 27 { 0x4000, KEY_NUMERIC_0 }, 28 { 0x401a, KEY_VOLUMEUP }, 29 { 0x401e, KEY_VOLUMEDOWN }, 30 { 0x4016, KEY_INFO }, 31 { 0x4010, KEY_MUTE }, 32 { 0x401b, KEY_CHANNELUP }, 33 { 0x401f, KEY_CHANNELDOWN }, 34 { 0x40da, KEY_VENDOR }, 35 { 0x4066, KEY_PLAYER }, 36 { 0x4017, KEY_TEXT }, 37 { 0x4047, KEY_LIST }, 38 { 0x4073, KEY_PAGEUP }, 39 { 0x4045, KEY_PROGRAM }, 40 { 0x4043, KEY_EXIT }, 41 { 0x4074, KEY_PAGEDOWN }, 42 { 0x4064, KEY_BACK }, 43 { 0x405b, KEY_MENU }, 44 { 0x4019, KEY_UP }, 45 { 0x4040, KEY_RIGHT }, 46 { 0x401d, KEY_DOWN }, 47 { 0x4042, KEY_LEFT }, 48 { 0x4021, KEY_OK }, 49 { 0x4053, KEY_REWIND }, 50 { 0x4067, KEY_PLAY }, 51 { 0x400d, KEY_FASTFORWARD }, 52 { 0x4054, KEY_PREVIOUS }, 53 { 0x4068, KEY_STOP }, 54 { 0x406a, KEY_PAUSE }, 55 { 0x4015, KEY_NEXT }, 56 { 0x4048, KEY_RED }, 57 { 0x4049, KEY_GREEN }, 58 { 0x404a, KEY_YELLOW }, 59 { 0x404b, KEY_BLUE }, 60 { 0x406f, KEY_RECORD } 61}; 62 63static struct rc_map_list ct_90405_map = { 64 .map = { 65 .scan = ct_90405, 66 .size = ARRAY_SIZE(ct_90405), 67 .rc_proto = RC_PROTO_NEC, 68 .name = RC_MAP_CT_90405, 69 } 70}; 71 72static int __init init_rc_map_ct_90405(void) 73{ 74 return rc_map_register(&ct_90405_map); 75} 76 77static void __exit exit_rc_map_ct_90405(void) 78{ 79 rc_map_unregister(&ct_90405_map); 80} 81 82module_init(init_rc_map_ct_90405) 83module_exit(exit_rc_map_ct_90405) 84 85MODULE_LICENSE("GPL"); 86MODULE_AUTHOR("Alexander Voronov <avv.0@ya.ru>");