root/drivers/media/rc/keymaps/rc-tbs-nec.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_tbs_nec
  2. exit_rc_map_tbs_nec

   1 // SPDX-License-Identifier: GPL-2.0+
   2 // tbs-nec.h - Keytable for tbs_nec 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 static struct rc_map_table tbs_nec[] = {
  12         { 0x84, KEY_POWER2},            /* power */
  13         { 0x94, KEY_MUTE},              /* mute */
  14         { 0x87, KEY_NUMERIC_1},
  15         { 0x86, KEY_NUMERIC_2},
  16         { 0x85, KEY_NUMERIC_3},
  17         { 0x8b, KEY_NUMERIC_4},
  18         { 0x8a, KEY_NUMERIC_5},
  19         { 0x89, KEY_NUMERIC_6},
  20         { 0x8f, KEY_NUMERIC_7},
  21         { 0x8e, KEY_NUMERIC_8},
  22         { 0x8d, KEY_NUMERIC_9},
  23         { 0x92, KEY_NUMERIC_0},
  24         { 0xc0, KEY_10CHANNELSUP},      /* 10+ */
  25         { 0xd0, KEY_10CHANNELSDOWN},    /* 10- */
  26         { 0x96, KEY_CHANNELUP},         /* ch+ */
  27         { 0x91, KEY_CHANNELDOWN},       /* ch- */
  28         { 0x93, KEY_VOLUMEUP},          /* vol+ */
  29         { 0x8c, KEY_VOLUMEDOWN},        /* vol- */
  30         { 0x83, KEY_RECORD},            /* rec */
  31         { 0x98, KEY_PAUSE},             /* pause, yellow */
  32         { 0x99, KEY_OK},                /* ok */
  33         { 0x9a, KEY_CAMERA},            /* snapshot */
  34         { 0x81, KEY_UP},
  35         { 0x90, KEY_LEFT},
  36         { 0x82, KEY_RIGHT},
  37         { 0x88, KEY_DOWN},
  38         { 0x95, KEY_FAVORITES},         /* blue */
  39         { 0x97, KEY_SUBTITLE},          /* green */
  40         { 0x9d, KEY_ZOOM},
  41         { 0x9f, KEY_EXIT},
  42         { 0x9e, KEY_MENU},
  43         { 0x9c, KEY_EPG},
  44         { 0x80, KEY_PREVIOUS},          /* red */
  45         { 0x9b, KEY_MODE},
  46 };
  47 
  48 static struct rc_map_list tbs_nec_map = {
  49         .map = {
  50                 .scan     = tbs_nec,
  51                 .size     = ARRAY_SIZE(tbs_nec),
  52                 .rc_proto = RC_PROTO_UNKNOWN,   /* Legacy IR type */
  53                 .name     = RC_MAP_TBS_NEC,
  54         }
  55 };
  56 
  57 static int __init init_rc_map_tbs_nec(void)
  58 {
  59         return rc_map_register(&tbs_nec_map);
  60 }
  61 
  62 static void __exit exit_rc_map_tbs_nec(void)
  63 {
  64         rc_map_unregister(&tbs_nec_map);
  65 }
  66 
  67 module_init(init_rc_map_tbs_nec)
  68 module_exit(exit_rc_map_tbs_nec)
  69 
  70 MODULE_LICENSE("GPL");
  71 MODULE_AUTHOR("Mauro Carvalho Chehab");

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