rc-encore-enltv.c 2.8 KB

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