rc-avertv-303.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* avertv-303.h - Keytable for avertv_303 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. /* AVERTV STUDIO 303 Remote */
  15. static struct rc_map_table avertv_303[] = {
  16. { 0x2a, KEY_1 },
  17. { 0x32, KEY_2 },
  18. { 0x3a, KEY_3 },
  19. { 0x4a, KEY_4 },
  20. { 0x52, KEY_5 },
  21. { 0x5a, KEY_6 },
  22. { 0x6a, KEY_7 },
  23. { 0x72, KEY_8 },
  24. { 0x7a, KEY_9 },
  25. { 0x0e, KEY_0 },
  26. { 0x02, KEY_POWER },
  27. { 0x22, KEY_VIDEO },
  28. { 0x42, KEY_AUDIO },
  29. { 0x62, KEY_ZOOM },
  30. { 0x0a, KEY_TV },
  31. { 0x12, KEY_CD },
  32. { 0x1a, KEY_TEXT },
  33. { 0x16, KEY_SUBTITLE },
  34. { 0x1e, KEY_REWIND },
  35. { 0x06, KEY_PRINT },
  36. { 0x2e, KEY_SEARCH },
  37. { 0x36, KEY_SLEEP },
  38. { 0x3e, KEY_SHUFFLE },
  39. { 0x26, KEY_MUTE },
  40. { 0x4e, KEY_RECORD },
  41. { 0x56, KEY_PAUSE },
  42. { 0x5e, KEY_STOP },
  43. { 0x46, KEY_PLAY },
  44. { 0x6e, KEY_RED },
  45. { 0x0b, KEY_GREEN },
  46. { 0x66, KEY_YELLOW },
  47. { 0x03, KEY_BLUE },
  48. { 0x76, KEY_LEFT },
  49. { 0x7e, KEY_RIGHT },
  50. { 0x13, KEY_DOWN },
  51. { 0x1b, KEY_UP },
  52. };
  53. static struct rc_map_list avertv_303_map = {
  54. .map = {
  55. .scan = avertv_303,
  56. .size = ARRAY_SIZE(avertv_303),
  57. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  58. .name = RC_MAP_AVERTV_303,
  59. }
  60. };
  61. static int __init init_rc_map_avertv_303(void)
  62. {
  63. return rc_map_register(&avertv_303_map);
  64. }
  65. static void __exit exit_rc_map_avertv_303(void)
  66. {
  67. rc_map_unregister(&avertv_303_map);
  68. }
  69. module_init(init_rc_map_avertv_303)
  70. module_exit(exit_rc_map_avertv_303)
  71. MODULE_LICENSE("GPL");
  72. MODULE_AUTHOR("Mauro Carvalho Chehab");