rc-budget-ci-old.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // budget-ci-old.h - Keytable for budget_ci_old 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. * From reading the following remotes:
  11. * Zenith Universal 7 / TV Mode 807 / VCR Mode 837
  12. * Hauppauge (from NOVA-CI-s box product)
  13. * This is a "middle of the road" approach, differences are noted
  14. */
  15. static struct rc_map_table budget_ci_old[] = {
  16. { 0x00, KEY_0 },
  17. { 0x01, KEY_1 },
  18. { 0x02, KEY_2 },
  19. { 0x03, KEY_3 },
  20. { 0x04, KEY_4 },
  21. { 0x05, KEY_5 },
  22. { 0x06, KEY_6 },
  23. { 0x07, KEY_7 },
  24. { 0x08, KEY_8 },
  25. { 0x09, KEY_9 },
  26. { 0x0a, KEY_ENTER },
  27. { 0x0b, KEY_RED },
  28. { 0x0c, KEY_POWER }, /* RADIO on Hauppauge */
  29. { 0x0d, KEY_MUTE },
  30. { 0x0f, KEY_A }, /* TV on Hauppauge */
  31. { 0x10, KEY_VOLUMEUP },
  32. { 0x11, KEY_VOLUMEDOWN },
  33. { 0x14, KEY_B },
  34. { 0x1c, KEY_UP },
  35. { 0x1d, KEY_DOWN },
  36. { 0x1e, KEY_OPTION }, /* RESERVED on Hauppauge */
  37. { 0x1f, KEY_BREAK },
  38. { 0x20, KEY_CHANNELUP },
  39. { 0x21, KEY_CHANNELDOWN },
  40. { 0x22, KEY_PREVIOUS }, /* Prev Ch on Zenith, SOURCE on Hauppauge */
  41. { 0x24, KEY_RESTART },
  42. { 0x25, KEY_OK },
  43. { 0x26, KEY_CYCLEWINDOWS }, /* MINIMIZE on Hauppauge */
  44. { 0x28, KEY_ENTER }, /* VCR mode on Zenith */
  45. { 0x29, KEY_PAUSE },
  46. { 0x2b, KEY_RIGHT },
  47. { 0x2c, KEY_LEFT },
  48. { 0x2e, KEY_MENU }, /* FULL SCREEN on Hauppauge */
  49. { 0x30, KEY_SLOW },
  50. { 0x31, KEY_PREVIOUS }, /* VCR mode on Zenith */
  51. { 0x32, KEY_REWIND },
  52. { 0x34, KEY_FASTFORWARD },
  53. { 0x35, KEY_PLAY },
  54. { 0x36, KEY_STOP },
  55. { 0x37, KEY_RECORD },
  56. { 0x38, KEY_TUNER }, /* TV/VCR on Zenith */
  57. { 0x3a, KEY_C },
  58. { 0x3c, KEY_EXIT },
  59. { 0x3d, KEY_POWER2 },
  60. { 0x3e, KEY_TUNER },
  61. };
  62. static struct rc_map_list budget_ci_old_map = {
  63. .map = {
  64. .scan = budget_ci_old,
  65. .size = ARRAY_SIZE(budget_ci_old),
  66. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  67. .name = RC_MAP_BUDGET_CI_OLD,
  68. }
  69. };
  70. static int __init init_rc_map_budget_ci_old(void)
  71. {
  72. return rc_map_register(&budget_ci_old_map);
  73. }
  74. static void __exit exit_rc_map_budget_ci_old(void)
  75. {
  76. rc_map_unregister(&budget_ci_old_map);
  77. }
  78. module_init(init_rc_map_budget_ci_old)
  79. module_exit(exit_rc_map_budget_ci_old)
  80. MODULE_LICENSE("GPL");
  81. MODULE_AUTHOR("Mauro Carvalho Chehab");