root/drivers/media/rc/keymaps/rc-astrometa-t2hybrid.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_t2hybrid
  2. exit_rc_map_t2hybrid

   1 // SPDX-License-Identifier: GPL-2.0-only
   2 /*
   3  * Keytable for the Astrometa T2hybrid remote controller
   4  *
   5  * Copyright (C) 2017 Oleh Kravchenko <oleg@kaa.org.ua>
   6  */
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  11 static struct rc_map_table t2hybrid[] = {
  12         { 0x4d, KEY_POWER2 },
  13         { 0x54, KEY_VIDEO }, /* Source */
  14         { 0x16, KEY_MUTE },
  15 
  16         { 0x4c, KEY_RECORD },
  17         { 0x05, KEY_CHANNELUP },
  18         { 0x0c, KEY_TIME}, /* Timeshift */
  19 
  20         { 0x0a, KEY_VOLUMEDOWN },
  21         { 0x40, KEY_ZOOM }, /* Fullscreen */
  22         { 0x1e, KEY_VOLUMEUP },
  23 
  24         { 0x12, KEY_NUMERIC_0 },
  25         { 0x02, KEY_CHANNELDOWN },
  26         { 0x1c, KEY_AGAIN }, /* Recall */
  27 
  28         { 0x09, KEY_NUMERIC_1 },
  29         { 0x1d, KEY_NUMERIC_2 },
  30         { 0x1f, KEY_NUMERIC_3 },
  31 
  32         { 0x0d, KEY_NUMERIC_4 },
  33         { 0x19, KEY_NUMERIC_5 },
  34         { 0x1b, KEY_NUMERIC_6 },
  35 
  36         { 0x11, KEY_NUMERIC_7 },
  37         { 0x15, KEY_NUMERIC_8 },
  38         { 0x17, KEY_NUMERIC_9 },
  39 };
  40 
  41 static struct rc_map_list t2hybrid_map = {
  42         .map = {
  43                 .scan     = t2hybrid,
  44                 .size     = ARRAY_SIZE(t2hybrid),
  45                 .rc_proto = RC_PROTO_NEC,
  46                 .name     = RC_MAP_ASTROMETA_T2HYBRID,
  47         }
  48 };
  49 
  50 static int __init init_rc_map_t2hybrid(void)
  51 {
  52         return rc_map_register(&t2hybrid_map);
  53 }
  54 
  55 static void __exit exit_rc_map_t2hybrid(void)
  56 {
  57         rc_map_unregister(&t2hybrid_map);
  58 }
  59 
  60 module_init(init_rc_map_t2hybrid)
  61 module_exit(exit_rc_map_t2hybrid)
  62 
  63 MODULE_LICENSE("GPL");
  64 MODULE_AUTHOR("Oleh Kravchenko <oleg@kaa.org.ua>");

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