root/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_rc_map_avermedia_m733a_rm_k6
  2. exit_rc_map_avermedia_m733a_rm_k6

   1 // SPDX-License-Identifier: GPL-2.0-or-later
   2 /* avermedia-m733a-rm-k6.h - Keytable for avermedia_m733a_rm_k6 Remote Controller
   3  *
   4  * Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
   5  */
   6 
   7 #include <media/rc-map.h>
   8 #include <linux/module.h>
   9 
  10 /*
  11  * Avermedia M733A with IR model RM-K6
  12  * This is the stock remote controller used with Positivo machines with M733A
  13  * Herton Ronaldo Krzesinski <herton@mandriva.com.br>
  14  */
  15 
  16 static struct rc_map_table avermedia_m733a_rm_k6[] = {
  17         { 0x0401, KEY_POWER2 },
  18         { 0x0406, KEY_MUTE },
  19         { 0x0408, KEY_MODE },     /* TV/FM */
  20 
  21         { 0x0409, KEY_NUMERIC_1 },
  22         { 0x040a, KEY_NUMERIC_2 },
  23         { 0x040b, KEY_NUMERIC_3 },
  24         { 0x040c, KEY_NUMERIC_4 },
  25         { 0x040d, KEY_NUMERIC_5 },
  26         { 0x040e, KEY_NUMERIC_6 },
  27         { 0x040f, KEY_NUMERIC_7 },
  28         { 0x0410, KEY_NUMERIC_8 },
  29         { 0x0411, KEY_NUMERIC_9 },
  30         { 0x044c, KEY_DOT },      /* '.' */
  31         { 0x0412, KEY_NUMERIC_0 },
  32         { 0x0407, KEY_REFRESH },  /* Refresh/Reload */
  33 
  34         { 0x0413, KEY_AUDIO },
  35         { 0x0440, KEY_SCREEN },   /* Full Screen toggle */
  36         { 0x0441, KEY_HOME },
  37         { 0x0442, KEY_BACK },
  38         { 0x0447, KEY_UP },
  39         { 0x0448, KEY_DOWN },
  40         { 0x0449, KEY_LEFT },
  41         { 0x044a, KEY_RIGHT },
  42         { 0x044b, KEY_OK },
  43         { 0x0404, KEY_VOLUMEUP },
  44         { 0x0405, KEY_VOLUMEDOWN },
  45         { 0x0402, KEY_CHANNELUP },
  46         { 0x0403, KEY_CHANNELDOWN },
  47 
  48         { 0x0443, KEY_RED },
  49         { 0x0444, KEY_GREEN },
  50         { 0x0445, KEY_YELLOW },
  51         { 0x0446, KEY_BLUE },
  52 
  53         { 0x0414, KEY_TEXT },
  54         { 0x0415, KEY_EPG },
  55         { 0x041a, KEY_TV2 },      /* PIP */
  56         { 0x041b, KEY_CAMERA },      /* Snapshot */
  57 
  58         { 0x0417, KEY_RECORD },
  59         { 0x0416, KEY_PLAYPAUSE },
  60         { 0x0418, KEY_STOP },
  61         { 0x0419, KEY_PAUSE },
  62 
  63         { 0x041f, KEY_PREVIOUS },
  64         { 0x041c, KEY_REWIND },
  65         { 0x041d, KEY_FORWARD },
  66         { 0x041e, KEY_NEXT },
  67 };
  68 
  69 static struct rc_map_list avermedia_m733a_rm_k6_map = {
  70         .map = {
  71                 .scan     = avermedia_m733a_rm_k6,
  72                 .size     = ARRAY_SIZE(avermedia_m733a_rm_k6),
  73                 .rc_proto = RC_PROTO_NEC,
  74                 .name     = RC_MAP_AVERMEDIA_M733A_RM_K6,
  75         }
  76 };
  77 
  78 static int __init init_rc_map_avermedia_m733a_rm_k6(void)
  79 {
  80         return rc_map_register(&avermedia_m733a_rm_k6_map);
  81 }
  82 
  83 static void __exit exit_rc_map_avermedia_m733a_rm_k6(void)
  84 {
  85         rc_map_unregister(&avermedia_m733a_rm_k6_map);
  86 }
  87 
  88 module_init(init_rc_map_avermedia_m733a_rm_k6)
  89 module_exit(exit_rc_map_avermedia_m733a_rm_k6)
  90 
  91 MODULE_LICENSE("GPL");
  92 MODULE_AUTHOR("Mauro Carvalho Chehab");

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