kworld-plus-tv-analog.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* kworld-plus-tv-analog.h - Keytable for kworld_plus_tv_analog 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. /* Kworld Plus TV Analog Lite PCI IR
  11. Mauro Carvalho Chehab <mchehab@infradead.org>
  12. */
  13. #ifdef IR_KEYMAPS
  14. static struct ir_scancode kworld_plus_tv_analog[] = {
  15. { 0x0c, KEY_PROG1 }, /* Kworld key */
  16. { 0x16, KEY_CLOSECD }, /* -> ) */
  17. { 0x1d, KEY_POWER2 },
  18. { 0x00, KEY_1 },
  19. { 0x01, KEY_2 },
  20. { 0x02, KEY_3 }, /* Two keys have the same code: 3 and left */
  21. { 0x03, KEY_4 }, /* Two keys have the same code: 3 and right */
  22. { 0x04, KEY_5 },
  23. { 0x05, KEY_6 },
  24. { 0x06, KEY_7 },
  25. { 0x07, KEY_8 },
  26. { 0x08, KEY_9 },
  27. { 0x0a, KEY_0 },
  28. { 0x09, KEY_AGAIN },
  29. { 0x14, KEY_MUTE },
  30. { 0x20, KEY_UP },
  31. { 0x21, KEY_DOWN },
  32. { 0x0b, KEY_ENTER },
  33. { 0x10, KEY_CHANNELUP },
  34. { 0x11, KEY_CHANNELDOWN },
  35. /* Couldn't map key left/key right since those
  36. conflict with '3' and '4' scancodes
  37. I dunno what the original driver does
  38. */
  39. { 0x13, KEY_VOLUMEUP },
  40. { 0x12, KEY_VOLUMEDOWN },
  41. /* The lower part of the IR
  42. There are several duplicated keycodes there.
  43. Most of them conflict with digits.
  44. Add mappings just to the unused scancodes.
  45. Somehow, the original driver has a way to know,
  46. but this doesn't seem to be on some GPIO.
  47. Also, it is not related to the time between keyup
  48. and keydown.
  49. */
  50. { 0x19, KEY_TIME}, /* Timeshift */
  51. { 0x1a, KEY_STOP},
  52. { 0x1b, KEY_RECORD},
  53. { 0x22, KEY_TEXT},
  54. { 0x15, KEY_AUDIO}, /* ((*)) */
  55. { 0x0f, KEY_ZOOM},
  56. { 0x1c, KEY_CAMERA}, /* snapshot */
  57. { 0x18, KEY_RED}, /* B */
  58. { 0x23, KEY_GREEN}, /* C */
  59. };
  60. DEFINE_LEGACY_IR_KEYTABLE(kworld_plus_tv_analog);
  61. #else
  62. DECLARE_IR_KEYTABLE(kworld_plus_tv_analog);
  63. #endif