rc-budget-ci-old.c 2.5 KB

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