root/drivers/media/rc/keymaps/rc-twinhan1027.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_twinhan_vp1027
  2. exit_rc_map_twinhan_vp1027

   1 // SPDX-License-Identifier: GPL-2.0-only
   2 #include <media/rc-map.h>
   3 #include <linux/module.h>
   4 
   5 static struct rc_map_table twinhan_vp1027[] = {
   6         { 0x16, KEY_POWER2 },
   7         { 0x17, KEY_FAVORITES },
   8         { 0x0f, KEY_TEXT },
   9         { 0x48, KEY_INFO},
  10         { 0x1c, KEY_EPG },
  11         { 0x04, KEY_LIST },
  12 
  13         { 0x03, KEY_NUMERIC_1 },
  14         { 0x01, KEY_NUMERIC_2 },
  15         { 0x06, KEY_NUMERIC_3 },
  16         { 0x09, KEY_NUMERIC_4 },
  17         { 0x1d, KEY_NUMERIC_5 },
  18         { 0x1f, KEY_NUMERIC_6 },
  19         { 0x0d, KEY_NUMERIC_7 },
  20         { 0x19, KEY_NUMERIC_8 },
  21         { 0x1b, KEY_NUMERIC_9 },
  22         { 0x15, KEY_NUMERIC_0 },
  23 
  24         { 0x0c, KEY_CANCEL },
  25         { 0x4a, KEY_CLEAR },
  26         { 0x13, KEY_BACKSPACE },
  27         { 0x00, KEY_TAB },
  28 
  29         { 0x4b, KEY_UP },
  30         { 0x51, KEY_DOWN },
  31         { 0x4e, KEY_LEFT },
  32         { 0x52, KEY_RIGHT },
  33         { 0x4f, KEY_ENTER },
  34 
  35         { 0x1e, KEY_VOLUMEUP },
  36         { 0x0a, KEY_VOLUMEDOWN },
  37         { 0x02, KEY_CHANNELDOWN },
  38         { 0x05, KEY_CHANNELUP },
  39         { 0x11, KEY_RECORD },
  40 
  41         { 0x14, KEY_PLAY },
  42         { 0x4c, KEY_PAUSE },
  43         { 0x1a, KEY_STOP },
  44         { 0x40, KEY_REWIND },
  45         { 0x12, KEY_FASTFORWARD },
  46         { 0x41, KEY_PREVIOUSSONG },
  47         { 0x42, KEY_NEXTSONG },
  48         { 0x54, KEY_SAVE },
  49         { 0x50, KEY_LANGUAGE },
  50         { 0x47, KEY_MEDIA },
  51         { 0x4d, KEY_SCREEN },
  52         { 0x43, KEY_SUBTITLE },
  53         { 0x10, KEY_MUTE },
  54         { 0x49, KEY_AUDIO },
  55         { 0x07, KEY_SLEEP },
  56         { 0x08, KEY_VIDEO },
  57         { 0x0e, KEY_AGAIN },
  58         { 0x45, KEY_EQUAL },
  59         { 0x46, KEY_MINUS },
  60         { 0x18, KEY_RED },
  61         { 0x53, KEY_GREEN },
  62         { 0x5e, KEY_YELLOW },
  63         { 0x5f, KEY_BLUE },
  64 };
  65 
  66 static struct rc_map_list twinhan_vp1027_map = {
  67         .map = {
  68                 .scan     = twinhan_vp1027,
  69                 .size     = ARRAY_SIZE(twinhan_vp1027),
  70                 .rc_proto = RC_PROTO_NEC,
  71                 .name     = RC_MAP_TWINHAN_VP1027_DVBS,
  72         }
  73 };
  74 
  75 static int __init init_rc_map_twinhan_vp1027(void)
  76 {
  77         return rc_map_register(&twinhan_vp1027_map);
  78 }
  79 
  80 static void __exit exit_rc_map_twinhan_vp1027(void)
  81 {
  82         rc_map_unregister(&twinhan_vp1027_map);
  83 }
  84 
  85 module_init(init_rc_map_twinhan_vp1027)
  86 module_exit(exit_rc_map_twinhan_vp1027)
  87 
  88 MODULE_LICENSE("GPL");
  89 MODULE_AUTHOR("Sergey Ivanov <123kash@gmail.com>");

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