root/drivers/media/rc/keymaps/rc-pixelview-mk12.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_pixelview
  2. exit_rc_map_pixelview

   1 // SPDX-License-Identifier: GPL-2.0+
   2 // rc-pixelview-mk12.h - Keytable for pixelview 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 /*
  12  * Keytable for MK-F12 IR remote provided together with Pixelview
  13  * Ultra Pro Remote Controller. Uses NEC extended format.
  14  */
  15 static struct rc_map_table pixelview_mk12[] = {
  16         { 0x866b03, KEY_TUNER },        /* Timeshift */
  17         { 0x866b1e, KEY_POWER2 },       /* power */
  18 
  19         { 0x866b01, KEY_NUMERIC_1 },
  20         { 0x866b0b, KEY_NUMERIC_2 },
  21         { 0x866b1b, KEY_NUMERIC_3 },
  22         { 0x866b05, KEY_NUMERIC_4 },
  23         { 0x866b09, KEY_NUMERIC_5 },
  24         { 0x866b15, KEY_NUMERIC_6 },
  25         { 0x866b06, KEY_NUMERIC_7 },
  26         { 0x866b0a, KEY_NUMERIC_8 },
  27         { 0x866b12, KEY_NUMERIC_9 },
  28         { 0x866b02, KEY_NUMERIC_0 },
  29 
  30         { 0x866b13, KEY_AGAIN },        /* loop */
  31         { 0x866b10, KEY_DIGITS },       /* +100 */
  32 
  33         { 0x866b00, KEY_VIDEO },                /* source */
  34         { 0x866b18, KEY_MUTE },         /* mute */
  35         { 0x866b19, KEY_CAMERA },       /* snapshot */
  36         { 0x866b1a, KEY_SEARCH },       /* scan */
  37 
  38         { 0x866b16, KEY_CHANNELUP },    /* chn + */
  39         { 0x866b14, KEY_CHANNELDOWN },  /* chn - */
  40         { 0x866b1f, KEY_VOLUMEUP },     /* vol + */
  41         { 0x866b17, KEY_VOLUMEDOWN },   /* vol - */
  42         { 0x866b1c, KEY_ZOOM },         /* zoom */
  43 
  44         { 0x866b04, KEY_REWIND },
  45         { 0x866b0e, KEY_RECORD },
  46         { 0x866b0c, KEY_FORWARD },
  47 
  48         { 0x866b1d, KEY_STOP },
  49         { 0x866b08, KEY_PLAY },
  50         { 0x866b0f, KEY_PAUSE },
  51 
  52         { 0x866b0d, KEY_TV },
  53         { 0x866b07, KEY_RADIO },        /* FM */
  54 };
  55 
  56 static struct rc_map_list pixelview_map = {
  57         .map = {
  58                 .scan     = pixelview_mk12,
  59                 .size     = ARRAY_SIZE(pixelview_mk12),
  60                 .rc_proto = RC_PROTO_NECX,
  61                 .name     = RC_MAP_PIXELVIEW_MK12,
  62         }
  63 };
  64 
  65 static int __init init_rc_map_pixelview(void)
  66 {
  67         return rc_map_register(&pixelview_map);
  68 }
  69 
  70 static void __exit exit_rc_map_pixelview(void)
  71 {
  72         rc_map_unregister(&pixelview_map);
  73 }
  74 
  75 module_init(init_rc_map_pixelview)
  76 module_exit(exit_rc_map_pixelview)
  77 
  78 MODULE_LICENSE("GPL");
  79 MODULE_AUTHOR("Mauro Carvalho Chehab");

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