Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 //
0003 // Copyright (C) 2019 Mohammad Rasim <mohammad.rasim96@gmail.com>
0004 
0005 #include <media/rc-map.h>
0006 #include <linux/module.h>
0007 
0008 //
0009 // Keytable for the Videostrong KII Pro STB remote control
0010 //
0011 
0012 static struct rc_map_table kii_pro[] = {
0013     { 0x59, KEY_POWER },
0014     { 0x19, KEY_MUTE },
0015     { 0x42, KEY_RED },
0016     { 0x40, KEY_GREEN },
0017     { 0x00, KEY_YELLOW },
0018     { 0x03, KEY_BLUE },
0019     { 0x4a, KEY_BACK },
0020     { 0x48, KEY_FORWARD },
0021     { 0x08, KEY_PREVIOUSSONG},
0022     { 0x0b, KEY_NEXTSONG},
0023     { 0x46, KEY_PLAYPAUSE },
0024     { 0x44, KEY_STOP },
0025     { 0x1f, KEY_FAVORITES}, //KEY_F5?
0026     { 0x04, KEY_PVR },
0027     { 0x4d, KEY_EPG },
0028     { 0x02, KEY_INFO },
0029     { 0x09, KEY_SUBTITLE },
0030     { 0x01, KEY_AUDIO },
0031     { 0x0d, KEY_HOMEPAGE },
0032     { 0x11, KEY_TV },   // DTV ?
0033     { 0x06, KEY_UP },
0034     { 0x5a, KEY_LEFT },
0035     { 0x1a, KEY_ENTER },    // KEY_OK ?
0036     { 0x1b, KEY_RIGHT },
0037     { 0x16, KEY_DOWN },
0038     { 0x45, KEY_MENU },
0039     { 0x05, KEY_ESC },
0040     { 0x13, KEY_VOLUMEUP },
0041     { 0x17, KEY_VOLUMEDOWN },
0042     { 0x58, KEY_APPSELECT },
0043     { 0x12, KEY_VENDOR },   // mouse
0044     { 0x55, KEY_PAGEUP },   // KEY_CHANNELUP ?
0045     { 0x15, KEY_PAGEDOWN }, // KEY_CHANNELDOWN ?
0046     { 0x52, KEY_1 },
0047     { 0x50, KEY_2 },
0048     { 0x10, KEY_3 },
0049     { 0x56, KEY_4 },
0050     { 0x54, KEY_5 },
0051     { 0x14, KEY_6 },
0052     { 0x4e, KEY_7 },
0053     { 0x4c, KEY_8 },
0054     { 0x0c, KEY_9 },
0055     { 0x18, KEY_WWW },  // KEY_F7
0056     { 0x0f, KEY_0 },
0057     { 0x51, KEY_BACKSPACE },
0058 };
0059 
0060 static struct rc_map_list kii_pro_map = {
0061     .map = {
0062         .scan     = kii_pro,
0063         .size     = ARRAY_SIZE(kii_pro),
0064         .rc_proto = RC_PROTO_NEC,
0065         .name     = RC_MAP_KII_PRO,
0066     }
0067 };
0068 
0069 static int __init init_rc_map_kii_pro(void)
0070 {
0071     return rc_map_register(&kii_pro_map);
0072 }
0073 
0074 static void __exit exit_rc_map_kii_pro(void)
0075 {
0076     rc_map_unregister(&kii_pro_map);
0077 }
0078 
0079 module_init(init_rc_map_kii_pro)
0080 module_exit(exit_rc_map_kii_pro)
0081 
0082 MODULE_LICENSE("GPL");
0083 MODULE_AUTHOR("Mohammad Rasim <mohammad.rasim96@gmail.com>");