behold.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* behold.h - Keytable for behold Remote Controller
  2. *
  3. * Imported from ir-keymaps.c
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. /*
  11. * Igor Kuznetsov <igk72@ya.ru>
  12. * Andrey J. Melnikov <temnota@kmv.ru>
  13. *
  14. * Keytable is used by BeholdTV 60x series, M6 series at
  15. * least, and probably other cards too.
  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. #ifdef IR_KEYMAPS
  22. static struct ir_scancode behold[] = {
  23. /* 0x1c 0x12 *
  24. * TV/FM POWER *
  25. * */
  26. { 0x1c, KEY_TUNER }, /* XXX KEY_TV / KEY_RADIO */
  27. { 0x12, KEY_POWER },
  28. /* 0x01 0x02 0x03 *
  29. * 1 2 3 *
  30. * *
  31. * 0x04 0x05 0x06 *
  32. * 4 5 6 *
  33. * *
  34. * 0x07 0x08 0x09 *
  35. * 7 8 9 *
  36. * */
  37. { 0x01, KEY_1 },
  38. { 0x02, KEY_2 },
  39. { 0x03, KEY_3 },
  40. { 0x04, KEY_4 },
  41. { 0x05, KEY_5 },
  42. { 0x06, KEY_6 },
  43. { 0x07, KEY_7 },
  44. { 0x08, KEY_8 },
  45. { 0x09, KEY_9 },
  46. /* 0x0a 0x00 0x17 *
  47. * RECALL 0 MODE *
  48. * */
  49. { 0x0a, KEY_AGAIN },
  50. { 0x00, KEY_0 },
  51. { 0x17, KEY_MODE },
  52. /* 0x14 0x10 *
  53. * ASPECT FULLSCREEN *
  54. * */
  55. { 0x14, KEY_SCREEN },
  56. { 0x10, KEY_ZOOM },
  57. /* 0x0b *
  58. * Up *
  59. * *
  60. * 0x18 0x16 0x0c *
  61. * Left Ok Right *
  62. * *
  63. * 0x015 *
  64. * Down *
  65. * */
  66. { 0x0b, KEY_CHANNELUP },
  67. { 0x18, KEY_VOLUMEDOWN },
  68. { 0x16, KEY_OK }, /* XXX KEY_ENTER */
  69. { 0x0c, KEY_VOLUMEUP },
  70. { 0x15, KEY_CHANNELDOWN },
  71. /* 0x11 0x0d *
  72. * MUTE INFO *
  73. * */
  74. { 0x11, KEY_MUTE },
  75. { 0x0d, KEY_INFO },
  76. /* 0x0f 0x1b 0x1a *
  77. * RECORD PLAY/PAUSE STOP *
  78. * *
  79. * 0x0e 0x1f 0x1e *
  80. *TELETEXT AUDIO SOURCE *
  81. * RED YELLOW *
  82. * */
  83. { 0x0f, KEY_RECORD },
  84. { 0x1b, KEY_PLAYPAUSE },
  85. { 0x1a, KEY_STOP },
  86. { 0x0e, KEY_TEXT },
  87. { 0x1f, KEY_RED }, /*XXX KEY_AUDIO */
  88. { 0x1e, KEY_YELLOW }, /*XXX KEY_SOURCE */
  89. /* 0x1d 0x13 0x19 *
  90. * SLEEP PREVIEW DVB *
  91. * GREEN BLUE *
  92. * */
  93. { 0x1d, KEY_SLEEP },
  94. { 0x13, KEY_GREEN },
  95. { 0x19, KEY_BLUE }, /* XXX KEY_SAT */
  96. /* 0x58 0x5c *
  97. * FREEZE SNAPSHOT *
  98. * */
  99. { 0x58, KEY_SLOW },
  100. { 0x5c, KEY_CAMERA },
  101. };
  102. DEFINE_LEGACY_IR_KEYTABLE(behold);
  103. #else
  104. DECLARE_IR_KEYTABLE(behold);
  105. #endif