rc-behold-columbus.c 2.9 KB

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