rc-powercolor-real-angel.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* powercolor-real-angel.h - Keytable for powercolor_real_angel Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Mauro Carvalho Chehab
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. /*
  15. * Remote control for Powercolor Real Angel 330
  16. * Daniel Fraga <fragabr@gmail.com>
  17. */
  18. static struct rc_map_table powercolor_real_angel[] = {
  19. { 0x38, KEY_SWITCHVIDEOMODE }, /* switch inputs */
  20. { 0x0c, KEY_MEDIA }, /* Turn ON/OFF App */
  21. { 0x00, KEY_0 },
  22. { 0x01, KEY_1 },
  23. { 0x02, KEY_2 },
  24. { 0x03, KEY_3 },
  25. { 0x04, KEY_4 },
  26. { 0x05, KEY_5 },
  27. { 0x06, KEY_6 },
  28. { 0x07, KEY_7 },
  29. { 0x08, KEY_8 },
  30. { 0x09, KEY_9 },
  31. { 0x0a, KEY_DIGITS }, /* single, double, tripple digit */
  32. { 0x29, KEY_PREVIOUS }, /* previous channel */
  33. { 0x12, KEY_BRIGHTNESSUP },
  34. { 0x13, KEY_BRIGHTNESSDOWN },
  35. { 0x2b, KEY_MODE }, /* stereo/mono */
  36. { 0x2c, KEY_TEXT }, /* teletext */
  37. { 0x20, KEY_CHANNELUP }, /* channel up */
  38. { 0x21, KEY_CHANNELDOWN }, /* channel down */
  39. { 0x10, KEY_VOLUMEUP }, /* volume up */
  40. { 0x11, KEY_VOLUMEDOWN }, /* volume down */
  41. { 0x0d, KEY_MUTE },
  42. { 0x1f, KEY_RECORD },
  43. { 0x17, KEY_PLAY },
  44. { 0x16, KEY_PAUSE },
  45. { 0x0b, KEY_STOP },
  46. { 0x27, KEY_FASTFORWARD },
  47. { 0x26, KEY_REWIND },
  48. { 0x1e, KEY_SEARCH }, /* autoscan */
  49. { 0x0e, KEY_CAMERA }, /* snapshot */
  50. { 0x2d, KEY_SETUP },
  51. { 0x0f, KEY_SCREEN }, /* full screen */
  52. { 0x14, KEY_RADIO }, /* FM radio */
  53. { 0x25, KEY_POWER }, /* power */
  54. };
  55. static struct rc_map_list powercolor_real_angel_map = {
  56. .map = {
  57. .scan = powercolor_real_angel,
  58. .size = ARRAY_SIZE(powercolor_real_angel),
  59. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  60. .name = RC_MAP_POWERCOLOR_REAL_ANGEL,
  61. }
  62. };
  63. static int __init init_rc_map_powercolor_real_angel(void)
  64. {
  65. return rc_map_register(&powercolor_real_angel_map);
  66. }
  67. static void __exit exit_rc_map_powercolor_real_angel(void)
  68. {
  69. rc_map_unregister(&powercolor_real_angel_map);
  70. }
  71. module_init(init_rc_map_powercolor_real_angel)
  72. module_exit(exit_rc_map_powercolor_real_angel)
  73. MODULE_LICENSE("GPL");
  74. MODULE_AUTHOR("Mauro Carvalho Chehab");