root/drivers/media/rc/keymaps/rc-kworld-315u.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_kworld_315u
  2. exit_rc_map_kworld_315u

   1 // SPDX-License-Identifier: GPL-2.0+
   2 // kworld-315u.h - Keytable for kworld_315u Remote Controller
   3 //
   4 // keymap imported from ir-keymaps.c
   5 //
   6 // Copyright (c) 2010 by Mauro Carvalho Chehab
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  11 /* Kworld 315U
  12  */
  13 
  14 static struct rc_map_table kworld_315u[] = {
  15         { 0x6143, KEY_POWER },
  16         { 0x6101, KEY_VIDEO },          /* source */
  17         { 0x610b, KEY_ZOOM },
  18         { 0x6103, KEY_POWER2 },         /* shutdown */
  19 
  20         { 0x6104, KEY_NUMERIC_1 },
  21         { 0x6108, KEY_NUMERIC_2 },
  22         { 0x6102, KEY_NUMERIC_3 },
  23         { 0x6109, KEY_CHANNELUP },
  24 
  25         { 0x610f, KEY_NUMERIC_4 },
  26         { 0x6105, KEY_NUMERIC_5 },
  27         { 0x6106, KEY_NUMERIC_6 },
  28         { 0x6107, KEY_CHANNELDOWN },
  29 
  30         { 0x610c, KEY_NUMERIC_7 },
  31         { 0x610d, KEY_NUMERIC_8 },
  32         { 0x610a, KEY_NUMERIC_9 },
  33         { 0x610e, KEY_VOLUMEUP },
  34 
  35         { 0x6110, KEY_LAST },
  36         { 0x6111, KEY_NUMERIC_0 },
  37         { 0x6112, KEY_ENTER },
  38         { 0x6113, KEY_VOLUMEDOWN },
  39 
  40         { 0x6114, KEY_RECORD },
  41         { 0x6115, KEY_STOP },
  42         { 0x6116, KEY_PLAY },
  43         { 0x6117, KEY_MUTE },
  44 
  45         { 0x6118, KEY_UP },
  46         { 0x6119, KEY_DOWN },
  47         { 0x611a, KEY_LEFT },
  48         { 0x611b, KEY_RIGHT },
  49 
  50         { 0x611c, KEY_RED },
  51         { 0x611d, KEY_GREEN },
  52         { 0x611e, KEY_YELLOW },
  53         { 0x611f, KEY_BLUE },
  54 };
  55 
  56 static struct rc_map_list kworld_315u_map = {
  57         .map = {
  58                 .scan     = kworld_315u,
  59                 .size     = ARRAY_SIZE(kworld_315u),
  60                 .rc_proto = RC_PROTO_NEC,
  61                 .name     = RC_MAP_KWORLD_315U,
  62         }
  63 };
  64 
  65 static int __init init_rc_map_kworld_315u(void)
  66 {
  67         return rc_map_register(&kworld_315u_map);
  68 }
  69 
  70 static void __exit exit_rc_map_kworld_315u(void)
  71 {
  72         rc_map_unregister(&kworld_315u_map);
  73 }
  74 
  75 module_init(init_rc_map_kworld_315u)
  76 module_exit(exit_rc_map_kworld_315u)
  77 
  78 MODULE_LICENSE("GPL");
  79 MODULE_AUTHOR("Mauro Carvalho Chehab");

/* [<][>][^][v][top][bottom][index][help] */