asus-pc39.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* asus-pc39.h - Keytable for asus_pc39 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. * Marc Fargas <telenieko@telenieko.com>
  12. * this is the remote control that comes with the asus p7131
  13. * which has a label saying is "Model PC-39"
  14. */
  15. #ifdef IR_KEYMAPS
  16. static struct ir_scancode asus_pc39[] = {
  17. /* Keys 0 to 9 */
  18. { 0x15, KEY_0 },
  19. { 0x29, KEY_1 },
  20. { 0x2d, KEY_2 },
  21. { 0x2b, KEY_3 },
  22. { 0x09, KEY_4 },
  23. { 0x0d, KEY_5 },
  24. { 0x0b, KEY_6 },
  25. { 0x31, KEY_7 },
  26. { 0x35, KEY_8 },
  27. { 0x33, KEY_9 },
  28. { 0x3e, KEY_RADIO }, /* radio */
  29. { 0x03, KEY_MENU }, /* dvd/menu */
  30. { 0x2a, KEY_VOLUMEUP },
  31. { 0x19, KEY_VOLUMEDOWN },
  32. { 0x37, KEY_UP },
  33. { 0x3b, KEY_DOWN },
  34. { 0x27, KEY_LEFT },
  35. { 0x2f, KEY_RIGHT },
  36. { 0x25, KEY_VIDEO }, /* video */
  37. { 0x39, KEY_AUDIO }, /* music */
  38. { 0x21, KEY_TV }, /* tv */
  39. { 0x1d, KEY_EXIT }, /* back */
  40. { 0x0a, KEY_CHANNELUP }, /* channel / program + */
  41. { 0x1b, KEY_CHANNELDOWN }, /* channel / program - */
  42. { 0x1a, KEY_ENTER }, /* enter */
  43. { 0x06, KEY_PAUSE }, /* play/pause */
  44. { 0x1e, KEY_PREVIOUS }, /* rew */
  45. { 0x26, KEY_NEXT }, /* forward */
  46. { 0x0e, KEY_REWIND }, /* backward << */
  47. { 0x3a, KEY_FASTFORWARD }, /* forward >> */
  48. { 0x36, KEY_STOP },
  49. { 0x2e, KEY_RECORD }, /* recording */
  50. { 0x16, KEY_POWER }, /* the button that reads "close" */
  51. { 0x11, KEY_ZOOM }, /* full screen */
  52. { 0x13, KEY_MACRO }, /* recall */
  53. { 0x23, KEY_HOME }, /* home */
  54. { 0x05, KEY_PVR }, /* picture */
  55. { 0x3d, KEY_MUTE }, /* mute */
  56. { 0x01, KEY_DVD }, /* dvd */
  57. };
  58. DEFINE_LEGACY_IR_KEYTABLE(asus_pc39);
  59. #else
  60. DECLARE_IR_KEYTABLE(asus_pc39);
  61. #endif