behold-columbus.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* behold-columbus.h - Keytable for behold_columbus 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. /* Beholder Intl. Ltd. 2008
  11. * Dmitry Belimov d.belimov@google.com
  12. * Keytable is used by BeholdTV Columbus
  13. * The "ascii-art picture" below (in comments, first row
  14. * is the keycode in hex, and subsequent row(s) shows
  15. * the button labels (several variants when appropriate)
  16. * helps to descide which keycodes to assign to the buttons.
  17. */
  18. #ifdef IR_KEYMAPS
  19. static struct ir_scancode behold_columbus[] = {
  20. /* 0x13 0x11 0x1C 0x12 *
  21. * Mute Source TV/FM Power *
  22. * */
  23. { 0x13, KEY_MUTE },
  24. { 0x11, KEY_PROPS },
  25. { 0x1C, KEY_TUNER }, /* KEY_TV/KEY_RADIO */
  26. { 0x12, KEY_POWER },
  27. /* 0x01 0x02 0x03 0x0D *
  28. * 1 2 3 Stereo *
  29. * *
  30. * 0x04 0x05 0x06 0x19 *
  31. * 4 5 6 Snapshot *
  32. * *
  33. * 0x07 0x08 0x09 0x10 *
  34. * 7 8 9 Zoom *
  35. * */
  36. { 0x01, KEY_1 },
  37. { 0x02, KEY_2 },
  38. { 0x03, KEY_3 },
  39. { 0x0D, KEY_SETUP }, /* Setup key */
  40. { 0x04, KEY_4 },
  41. { 0x05, KEY_5 },
  42. { 0x06, KEY_6 },
  43. { 0x19, KEY_CAMERA }, /* Snapshot key */
  44. { 0x07, KEY_7 },
  45. { 0x08, KEY_8 },
  46. { 0x09, KEY_9 },
  47. { 0x10, KEY_ZOOM },
  48. /* 0x0A 0x00 0x0B 0x0C *
  49. * RECALL 0 ChannelUp VolumeUp *
  50. * */
  51. { 0x0A, KEY_AGAIN },
  52. { 0x00, KEY_0 },
  53. { 0x0B, KEY_CHANNELUP },
  54. { 0x0C, KEY_VOLUMEUP },
  55. /* 0x1B 0x1D 0x15 0x18 *
  56. * Timeshift Record ChannelDown VolumeDown *
  57. * */
  58. { 0x1B, KEY_TIME },
  59. { 0x1D, KEY_RECORD },
  60. { 0x15, KEY_CHANNELDOWN },
  61. { 0x18, KEY_VOLUMEDOWN },
  62. /* 0x0E 0x1E 0x0F 0x1A *
  63. * Stop Pause Previouse Next *
  64. * */
  65. { 0x0E, KEY_STOP },
  66. { 0x1E, KEY_PAUSE },
  67. { 0x0F, KEY_PREVIOUS },
  68. { 0x1A, KEY_NEXT },
  69. };
  70. DEFINE_LEGACY_IR_KEYTABLE(behold_columbus);
  71. #else
  72. DECLARE_IR_KEYTABLE(behold_columbus);
  73. #endif