rc-powercolor-real-angel.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // powercolor-real-angel.h - Keytable for powercolor_real_angel 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. * Remote control for Powercolor Real Angel 330
  11. * Daniel Fraga <fragabr@gmail.com>
  12. */
  13. static struct rc_map_table powercolor_real_angel[] = {
  14. { 0x38, KEY_SWITCHVIDEOMODE }, /* switch inputs */
  15. { 0x0c, KEY_MEDIA }, /* Turn ON/OFF App */
  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. { 0x0a, KEY_DIGITS }, /* single, double, tripple digit */
  27. { 0x29, KEY_PREVIOUS }, /* previous channel */
  28. { 0x12, KEY_BRIGHTNESSUP },
  29. { 0x13, KEY_BRIGHTNESSDOWN },
  30. { 0x2b, KEY_MODE }, /* stereo/mono */
  31. { 0x2c, KEY_TEXT }, /* teletext */
  32. { 0x20, KEY_CHANNELUP }, /* channel up */
  33. { 0x21, KEY_CHANNELDOWN }, /* channel down */
  34. { 0x10, KEY_VOLUMEUP }, /* volume up */
  35. { 0x11, KEY_VOLUMEDOWN }, /* volume down */
  36. { 0x0d, KEY_MUTE },
  37. { 0x1f, KEY_RECORD },
  38. { 0x17, KEY_PLAY },
  39. { 0x16, KEY_PAUSE },
  40. { 0x0b, KEY_STOP },
  41. { 0x27, KEY_FASTFORWARD },
  42. { 0x26, KEY_REWIND },
  43. { 0x1e, KEY_SEARCH }, /* autoscan */
  44. { 0x0e, KEY_CAMERA }, /* snapshot */
  45. { 0x2d, KEY_SETUP },
  46. { 0x0f, KEY_SCREEN }, /* full screen */
  47. { 0x14, KEY_RADIO }, /* FM radio */
  48. { 0x25, KEY_POWER }, /* power */
  49. };
  50. static struct rc_map_list powercolor_real_angel_map = {
  51. .map = {
  52. .scan = powercolor_real_angel,
  53. .size = ARRAY_SIZE(powercolor_real_angel),
  54. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  55. .name = RC_MAP_POWERCOLOR_REAL_ANGEL,
  56. }
  57. };
  58. static int __init init_rc_map_powercolor_real_angel(void)
  59. {
  60. return rc_map_register(&powercolor_real_angel_map);
  61. }
  62. static void __exit exit_rc_map_powercolor_real_angel(void)
  63. {
  64. rc_map_unregister(&powercolor_real_angel_map);
  65. }
  66. module_init(init_rc_map_powercolor_real_angel)
  67. module_exit(exit_rc_map_powercolor_real_angel)
  68. MODULE_LICENSE("GPL");
  69. MODULE_AUTHOR("Mauro Carvalho Chehab");