rc5-tv.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* rc5-tv.h - Keytable for rc5_tv 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. /* generic RC5 keytable */
  11. /* see http://users.pandora.be/nenya/electronics/rc5/codes00.htm */
  12. /* used by old (black) Hauppauge remotes */
  13. #ifdef IR_KEYMAPS
  14. static struct ir_scancode rc5_tv[] = {
  15. /* Keys 0 to 9 */
  16. { 0x00, KEY_0 },
  17. { 0x01, KEY_1 },
  18. { 0x02, KEY_2 },
  19. { 0x03, KEY_3 },
  20. { 0x04, KEY_4 },
  21. { 0x05, KEY_5 },
  22. { 0x06, KEY_6 },
  23. { 0x07, KEY_7 },
  24. { 0x08, KEY_8 },
  25. { 0x09, KEY_9 },
  26. { 0x0b, KEY_CHANNEL }, /* channel / program (japan: 11) */
  27. { 0x0c, KEY_POWER }, /* standby */
  28. { 0x0d, KEY_MUTE }, /* mute / demute */
  29. { 0x0f, KEY_TV }, /* display */
  30. { 0x10, KEY_VOLUMEUP },
  31. { 0x11, KEY_VOLUMEDOWN },
  32. { 0x12, KEY_BRIGHTNESSUP },
  33. { 0x13, KEY_BRIGHTNESSDOWN },
  34. { 0x1e, KEY_SEARCH }, /* search + */
  35. { 0x20, KEY_CHANNELUP }, /* channel / program + */
  36. { 0x21, KEY_CHANNELDOWN }, /* channel / program - */
  37. { 0x22, KEY_CHANNEL }, /* alt / channel */
  38. { 0x23, KEY_LANGUAGE }, /* 1st / 2nd language */
  39. { 0x26, KEY_SLEEP }, /* sleeptimer */
  40. { 0x2e, KEY_MENU }, /* 2nd controls (USA: menu) */
  41. { 0x30, KEY_PAUSE },
  42. { 0x32, KEY_REWIND },
  43. { 0x33, KEY_GOTO },
  44. { 0x35, KEY_PLAY },
  45. { 0x36, KEY_STOP },
  46. { 0x37, KEY_RECORD }, /* recording */
  47. { 0x3c, KEY_TEXT }, /* teletext submode (Japan: 12) */
  48. { 0x3d, KEY_SUSPEND }, /* system standby */
  49. };
  50. DEFINE_LEGACY_IR_KEYTABLE(rc5_tv);
  51. #else
  52. DECLARE_IR_KEYTABLE(rc5_tv);
  53. #endif