rc-behold-columbus.c 2.9 KB

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