rc-encore-enltv.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // encore-enltv.h - Keytable for encore_enltv Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* Encore ENLTV-FM - black plastic, white front cover with white glowing buttons
  10. Juan Pablo Sormani <sorman@gmail.com> */
  11. static struct rc_map_table encore_enltv[] = {
  12. /* Power button does nothing, neither in Windows app,
  13. although it sends data (used for BIOS wakeup?) */
  14. { 0x0d, KEY_MUTE },
  15. { 0x1e, KEY_TV },
  16. { 0x00, KEY_VIDEO },
  17. { 0x01, KEY_AUDIO }, /* music */
  18. { 0x02, KEY_CAMERA }, /* picture */
  19. { 0x1f, KEY_1 },
  20. { 0x03, KEY_2 },
  21. { 0x04, KEY_3 },
  22. { 0x05, KEY_4 },
  23. { 0x1c, KEY_5 },
  24. { 0x06, KEY_6 },
  25. { 0x07, KEY_7 },
  26. { 0x08, KEY_8 },
  27. { 0x1d, KEY_9 },
  28. { 0x0a, KEY_0 },
  29. { 0x09, KEY_LIST }, /* -/-- */
  30. { 0x0b, KEY_LAST }, /* recall */
  31. { 0x14, KEY_HOME }, /* win start menu */
  32. { 0x15, KEY_EXIT }, /* exit */
  33. { 0x16, KEY_CHANNELUP }, /* UP */
  34. { 0x12, KEY_CHANNELDOWN }, /* DOWN */
  35. { 0x0c, KEY_VOLUMEUP }, /* RIGHT */
  36. { 0x17, KEY_VOLUMEDOWN }, /* LEFT */
  37. { 0x18, KEY_ENTER }, /* OK */
  38. { 0x0e, KEY_ESC },
  39. { 0x13, KEY_CYCLEWINDOWS }, /* desktop */
  40. { 0x11, KEY_TAB },
  41. { 0x19, KEY_SWITCHVIDEOMODE }, /* switch */
  42. { 0x1a, KEY_MENU },
  43. { 0x1b, KEY_ZOOM }, /* fullscreen */
  44. { 0x44, KEY_TIME }, /* time shift */
  45. { 0x40, KEY_MODE }, /* source */
  46. { 0x5a, KEY_RECORD },
  47. { 0x42, KEY_PLAY }, /* play/pause */
  48. { 0x45, KEY_STOP },
  49. { 0x43, KEY_CAMERA }, /* camera icon */
  50. { 0x48, KEY_REWIND },
  51. { 0x4a, KEY_FASTFORWARD },
  52. { 0x49, KEY_PREVIOUS },
  53. { 0x4b, KEY_NEXT },
  54. { 0x4c, KEY_FAVORITES }, /* tv wall */
  55. { 0x4d, KEY_SOUND }, /* DVD sound */
  56. { 0x4e, KEY_LANGUAGE }, /* DVD lang */
  57. { 0x4f, KEY_TEXT }, /* DVD text */
  58. { 0x50, KEY_SLEEP }, /* shutdown */
  59. { 0x51, KEY_MODE }, /* stereo > main */
  60. { 0x52, KEY_SELECT }, /* stereo > sap */
  61. { 0x53, KEY_TEXT }, /* teletext */
  62. { 0x59, KEY_RED }, /* AP1 */
  63. { 0x41, KEY_GREEN }, /* AP2 */
  64. { 0x47, KEY_YELLOW }, /* AP3 */
  65. { 0x57, KEY_BLUE }, /* AP4 */
  66. };
  67. static struct rc_map_list encore_enltv_map = {
  68. .map = {
  69. .scan = encore_enltv,
  70. .size = ARRAY_SIZE(encore_enltv),
  71. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  72. .name = RC_MAP_ENCORE_ENLTV,
  73. }
  74. };
  75. static int __init init_rc_map_encore_enltv(void)
  76. {
  77. return rc_map_register(&encore_enltv_map);
  78. }
  79. static void __exit exit_rc_map_encore_enltv(void)
  80. {
  81. rc_map_unregister(&encore_enltv_map);
  82. }
  83. module_init(init_rc_map_encore_enltv)
  84. module_exit(exit_rc_map_encore_enltv)
  85. MODULE_LICENSE("GPL");
  86. MODULE_AUTHOR("Mauro Carvalho Chehab");