rc-asus-pc39.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // asus-pc39.h - Keytable for asus_pc39 Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /*
  10. * Marc Fargas <telenieko@telenieko.com>
  11. * this is the remote control that comes with the asus p7131
  12. * which has a label saying is "Model PC-39"
  13. */
  14. static struct rc_map_table asus_pc39[] = {
  15. /* Keys 0 to 9 */
  16. { 0x082a, KEY_0 },
  17. { 0x0816, KEY_1 },
  18. { 0x0812, KEY_2 },
  19. { 0x0814, KEY_3 },
  20. { 0x0836, KEY_4 },
  21. { 0x0832, KEY_5 },
  22. { 0x0834, KEY_6 },
  23. { 0x080e, KEY_7 },
  24. { 0x080a, KEY_8 },
  25. { 0x080c, KEY_9 },
  26. { 0x0801, KEY_RADIO }, /* radio */
  27. { 0x083c, KEY_MENU }, /* dvd/menu */
  28. { 0x0815, KEY_VOLUMEUP },
  29. { 0x0826, KEY_VOLUMEDOWN },
  30. { 0x0808, KEY_UP },
  31. { 0x0804, KEY_DOWN },
  32. { 0x0818, KEY_LEFT },
  33. { 0x0810, KEY_RIGHT },
  34. { 0x081a, KEY_VIDEO }, /* video */
  35. { 0x0806, KEY_AUDIO }, /* music */
  36. { 0x081e, KEY_TV }, /* tv */
  37. { 0x0822, KEY_EXIT }, /* back */
  38. { 0x0835, KEY_CHANNELUP }, /* channel / program + */
  39. { 0x0824, KEY_CHANNELDOWN }, /* channel / program - */
  40. { 0x0825, KEY_ENTER }, /* enter */
  41. { 0x0839, KEY_PAUSE }, /* play/pause */
  42. { 0x0821, KEY_PREVIOUS }, /* rew */
  43. { 0x0819, KEY_NEXT }, /* forward */
  44. { 0x0831, KEY_REWIND }, /* backward << */
  45. { 0x0805, KEY_FASTFORWARD }, /* forward >> */
  46. { 0x0809, KEY_STOP },
  47. { 0x0811, KEY_RECORD }, /* recording */
  48. { 0x0829, KEY_POWER }, /* the button that reads "close" */
  49. { 0x082e, KEY_ZOOM }, /* full screen */
  50. { 0x082c, KEY_MACRO }, /* recall */
  51. { 0x081c, KEY_HOME }, /* home */
  52. { 0x083a, KEY_PVR }, /* picture */
  53. { 0x0802, KEY_MUTE }, /* mute */
  54. { 0x083e, KEY_DVD }, /* dvd */
  55. };
  56. static struct rc_map_list asus_pc39_map = {
  57. .map = {
  58. .scan = asus_pc39,
  59. .size = ARRAY_SIZE(asus_pc39),
  60. .rc_proto = RC_PROTO_RC5,
  61. .name = RC_MAP_ASUS_PC39,
  62. }
  63. };
  64. static int __init init_rc_map_asus_pc39(void)
  65. {
  66. return rc_map_register(&asus_pc39_map);
  67. }
  68. static void __exit exit_rc_map_asus_pc39(void)
  69. {
  70. rc_map_unregister(&asus_pc39_map);
  71. }
  72. module_init(init_rc_map_asus_pc39)
  73. module_exit(exit_rc_map_asus_pc39)
  74. MODULE_LICENSE("GPL");
  75. MODULE_AUTHOR("Mauro Carvalho Chehab");