rc-behold-columbus.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // behold-columbus.h - Keytable for behold_columbus 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. /* Beholder Intl. Ltd. 2008
  10. * Dmitry Belimov d.belimov@google.com
  11. * Keytable is used by BeholdTV Columbus
  12. * The "ascii-art picture" below (in comments, first row
  13. * is the keycode in hex, and subsequent row(s) shows
  14. * the button labels (several variants when appropriate)
  15. * helps to descide which keycodes to assign to the buttons.
  16. */
  17. static struct rc_map_table behold_columbus[] = {
  18. /* 0x13 0x11 0x1C 0x12 *
  19. * Mute Source TV/FM Power *
  20. * */
  21. { 0x13, KEY_MUTE },
  22. { 0x11, KEY_VIDEO },
  23. { 0x1C, KEY_TUNER }, /* KEY_TV/KEY_RADIO */
  24. { 0x12, KEY_POWER },
  25. /* 0x01 0x02 0x03 0x0D *
  26. * 1 2 3 Stereo *
  27. * *
  28. * 0x04 0x05 0x06 0x19 *
  29. * 4 5 6 Snapshot *
  30. * *
  31. * 0x07 0x08 0x09 0x10 *
  32. * 7 8 9 Zoom *
  33. * */
  34. { 0x01, KEY_1 },
  35. { 0x02, KEY_2 },
  36. { 0x03, KEY_3 },
  37. { 0x0D, KEY_SETUP }, /* Setup key */
  38. { 0x04, KEY_4 },
  39. { 0x05, KEY_5 },
  40. { 0x06, KEY_6 },
  41. { 0x19, KEY_CAMERA }, /* Snapshot key */
  42. { 0x07, KEY_7 },
  43. { 0x08, KEY_8 },
  44. { 0x09, KEY_9 },
  45. { 0x10, KEY_ZOOM },
  46. /* 0x0A 0x00 0x0B 0x0C *
  47. * RECALL 0 ChannelUp VolumeUp *
  48. * */
  49. { 0x0A, KEY_AGAIN },
  50. { 0x00, KEY_0 },
  51. { 0x0B, KEY_CHANNELUP },
  52. { 0x0C, KEY_VOLUMEUP },
  53. /* 0x1B 0x1D 0x15 0x18 *
  54. * Timeshift Record ChannelDown VolumeDown *
  55. * */
  56. { 0x1B, KEY_TIME },
  57. { 0x1D, KEY_RECORD },
  58. { 0x15, KEY_CHANNELDOWN },
  59. { 0x18, KEY_VOLUMEDOWN },
  60. /* 0x0E 0x1E 0x0F 0x1A *
  61. * Stop Pause Previouse Next *
  62. * */
  63. { 0x0E, KEY_STOP },
  64. { 0x1E, KEY_PAUSE },
  65. { 0x0F, KEY_PREVIOUS },
  66. { 0x1A, KEY_NEXT },
  67. };
  68. static struct rc_map_list behold_columbus_map = {
  69. .map = {
  70. .scan = behold_columbus,
  71. .size = ARRAY_SIZE(behold_columbus),
  72. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  73. .name = RC_MAP_BEHOLD_COLUMBUS,
  74. }
  75. };
  76. static int __init init_rc_map_behold_columbus(void)
  77. {
  78. return rc_map_register(&behold_columbus_map);
  79. }
  80. static void __exit exit_rc_map_behold_columbus(void)
  81. {
  82. rc_map_unregister(&behold_columbus_map);
  83. }
  84. module_init(init_rc_map_behold_columbus)
  85. module_exit(exit_rc_map_behold_columbus)
  86. MODULE_LICENSE("GPL");
  87. MODULE_AUTHOR("Mauro Carvalho Chehab");