rc-genius-tvgo-a11mce.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // genius-tvgo-a11mce.h - Keytable for genius_tvgo_a11mce 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. /*
  10. * Remote control for the Genius TVGO A11MCE
  11. * Adrian Pardini <pardo.bsso@gmail.com>
  12. */
  13. static struct rc_map_table genius_tvgo_a11mce[] = {
  14. /* Keys 0 to 9 */
  15. { 0x48, KEY_0 },
  16. { 0x09, KEY_1 },
  17. { 0x1d, KEY_2 },
  18. { 0x1f, KEY_3 },
  19. { 0x19, KEY_4 },
  20. { 0x1b, KEY_5 },
  21. { 0x11, KEY_6 },
  22. { 0x17, KEY_7 },
  23. { 0x12, KEY_8 },
  24. { 0x16, KEY_9 },
  25. { 0x54, KEY_RECORD }, /* recording */
  26. { 0x06, KEY_MUTE }, /* mute */
  27. { 0x10, KEY_POWER },
  28. { 0x40, KEY_LAST }, /* recall */
  29. { 0x4c, KEY_CHANNELUP }, /* channel / program + */
  30. { 0x00, KEY_CHANNELDOWN }, /* channel / program - */
  31. { 0x0d, KEY_VOLUMEUP },
  32. { 0x15, KEY_VOLUMEDOWN },
  33. { 0x4d, KEY_OK }, /* also labeled as Pause */
  34. { 0x1c, KEY_ZOOM }, /* full screen and Stop*/
  35. { 0x02, KEY_MODE }, /* AV Source or Rewind*/
  36. { 0x04, KEY_LIST }, /* -/-- */
  37. /* small arrows above numbers */
  38. { 0x1a, KEY_NEXT }, /* also Fast Forward */
  39. { 0x0e, KEY_PREVIOUS }, /* also Rewind */
  40. /* these are in a rather non standard layout and have
  41. an alternate name written */
  42. { 0x1e, KEY_UP }, /* Video Setting */
  43. { 0x0a, KEY_DOWN }, /* Video Default */
  44. { 0x05, KEY_CAMERA }, /* Snapshot */
  45. { 0x0c, KEY_RIGHT }, /* Hide Panel */
  46. /* Four buttons without label */
  47. { 0x49, KEY_RED },
  48. { 0x0b, KEY_GREEN },
  49. { 0x13, KEY_YELLOW },
  50. { 0x50, KEY_BLUE },
  51. };
  52. static struct rc_map_list genius_tvgo_a11mce_map = {
  53. .map = {
  54. .scan = genius_tvgo_a11mce,
  55. .size = ARRAY_SIZE(genius_tvgo_a11mce),
  56. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  57. .name = RC_MAP_GENIUS_TVGO_A11MCE,
  58. }
  59. };
  60. static int __init init_rc_map_genius_tvgo_a11mce(void)
  61. {
  62. return rc_map_register(&genius_tvgo_a11mce_map);
  63. }
  64. static void __exit exit_rc_map_genius_tvgo_a11mce(void)
  65. {
  66. rc_map_unregister(&genius_tvgo_a11mce_map);
  67. }
  68. module_init(init_rc_map_genius_tvgo_a11mce)
  69. module_exit(exit_rc_map_genius_tvgo_a11mce)
  70. MODULE_LICENSE("GPL");
  71. MODULE_AUTHOR("Mauro Carvalho Chehab");