rc-avertv-303.c 1.8 KB

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