Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /* Keytable for Wideview WT-220U.
0003  *
0004  * Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
0005  */
0006 
0007 #include <media/rc-map.h>
0008 #include <linux/module.h>
0009 
0010 /* key list for the tiny remote control (Yakumo, don't know about the others) */
0011 static struct rc_map_table dtt200u_table[] = {
0012     { 0x8001, KEY_MUTE },
0013     { 0x8002, KEY_CHANNELDOWN },
0014     { 0x8003, KEY_VOLUMEDOWN },
0015     { 0x8004, KEY_NUMERIC_1 },
0016     { 0x8005, KEY_NUMERIC_2 },
0017     { 0x8006, KEY_NUMERIC_3 },
0018     { 0x8007, KEY_NUMERIC_4 },
0019     { 0x8008, KEY_NUMERIC_5 },
0020     { 0x8009, KEY_NUMERIC_6 },
0021     { 0x800a, KEY_NUMERIC_7 },
0022     { 0x800c, KEY_ZOOM },
0023     { 0x800d, KEY_NUMERIC_0 },
0024     { 0x800e, KEY_SELECT },
0025     { 0x8012, KEY_POWER },
0026     { 0x801a, KEY_CHANNELUP },
0027     { 0x801b, KEY_NUMERIC_8 },
0028     { 0x801e, KEY_VOLUMEUP },
0029     { 0x801f, KEY_NUMERIC_9 },
0030 };
0031 
0032 static struct rc_map_list dtt200u_map = {
0033     .map = {
0034         .scan     = dtt200u_table,
0035         .size     = ARRAY_SIZE(dtt200u_table),
0036         .rc_proto = RC_PROTO_NEC,
0037         .name     = RC_MAP_DTT200U,
0038     }
0039 };
0040 
0041 static int __init init_rc_map_dtt200u(void)
0042 {
0043     return rc_map_register(&dtt200u_map);
0044 }
0045 
0046 static void __exit exit_rc_map_dtt200u(void)
0047 {
0048     rc_map_unregister(&dtt200u_map);
0049 }
0050 
0051 module_init(init_rc_map_dtt200u)
0052 module_exit(exit_rc_map_dtt200u)
0053 
0054 MODULE_LICENSE("GPL");
0055 MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");