root/drivers/media/rc/keymaps/rc-dvico-portable.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_dvico_portable
  2. exit_rc_map_dvico_portable

   1 // SPDX-License-Identifier: GPL-2.0-only
   2 /*
   3  * keymap imported from cxusb.c
   4  *
   5  * Copyright (C) 2016 Sean Young
   6  */
   7 
   8 #include <media/rc-map.h>
   9 #include <linux/module.h>
  10 
  11 static struct rc_map_table rc_map_dvico_portable_table[] = {
  12         { 0x0302, KEY_SETUP },       /* Profile */
  13         { 0x0343, KEY_POWER2 },
  14         { 0x0306, KEY_EPG },
  15         { 0x035a, KEY_BACK },
  16         { 0x0305, KEY_MENU },
  17         { 0x0347, KEY_INFO },
  18         { 0x0301, KEY_TAB },
  19         { 0x0342, KEY_PREVIOUSSONG },/* Replay */
  20         { 0x0349, KEY_VOLUMEUP },
  21         { 0x0309, KEY_VOLUMEDOWN },
  22         { 0x0354, KEY_CHANNELUP },
  23         { 0x030b, KEY_CHANNELDOWN },
  24         { 0x0316, KEY_CAMERA },
  25         { 0x0340, KEY_TUNER },  /* ATV/DTV */
  26         { 0x0345, KEY_OPEN },
  27         { 0x0319, KEY_NUMERIC_1 },
  28         { 0x0318, KEY_NUMERIC_2 },
  29         { 0x031b, KEY_NUMERIC_3 },
  30         { 0x031a, KEY_NUMERIC_4 },
  31         { 0x0358, KEY_NUMERIC_5 },
  32         { 0x0359, KEY_NUMERIC_6 },
  33         { 0x0315, KEY_NUMERIC_7 },
  34         { 0x0314, KEY_NUMERIC_8 },
  35         { 0x0317, KEY_NUMERIC_9 },
  36         { 0x0344, KEY_ANGLE },  /* Aspect */
  37         { 0x0355, KEY_NUMERIC_0 },
  38         { 0x0307, KEY_ZOOM },
  39         { 0x030a, KEY_REWIND },
  40         { 0x0308, KEY_PLAYPAUSE },
  41         { 0x034b, KEY_FASTFORWARD },
  42         { 0x035b, KEY_MUTE },
  43         { 0x0304, KEY_STOP },
  44         { 0x0356, KEY_RECORD },
  45         { 0x0357, KEY_POWER },
  46         { 0x0341, KEY_UNKNOWN },    /* INPUT */
  47         { 0x0300, KEY_UNKNOWN },    /* HD */
  48 };
  49 
  50 static struct rc_map_list dvico_portable_map = {
  51         .map = {
  52                 .scan     = rc_map_dvico_portable_table,
  53                 .size     = ARRAY_SIZE(rc_map_dvico_portable_table),
  54                 .rc_proto = RC_PROTO_NEC,
  55                 .name     = RC_MAP_DVICO_PORTABLE,
  56         }
  57 };
  58 
  59 static int __init init_rc_map_dvico_portable(void)
  60 {
  61         return rc_map_register(&dvico_portable_map);
  62 }
  63 
  64 static void __exit exit_rc_map_dvico_portable(void)
  65 {
  66         rc_map_unregister(&dvico_portable_map);
  67 }
  68 
  69 module_init(init_rc_map_dvico_portable)
  70 module_exit(exit_rc_map_dvico_portable)
  71 
  72 MODULE_LICENSE("GPL");
  73 MODULE_AUTHOR("Mauro Carvalho Chehab");

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