rc-evga-indtube.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* evga-indtube.h - Keytable for evga_indtube 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. /* EVGA inDtube
  14. Devin Heitmueller <devin.heitmueller@gmail.com>
  15. */
  16. static struct rc_map_table evga_indtube[] = {
  17. { 0x12, KEY_POWER},
  18. { 0x02, KEY_MODE}, /* TV */
  19. { 0x14, KEY_MUTE},
  20. { 0x1a, KEY_CHANNELUP},
  21. { 0x16, KEY_TV2}, /* PIP */
  22. { 0x1d, KEY_VOLUMEUP},
  23. { 0x05, KEY_CHANNELDOWN},
  24. { 0x0f, KEY_PLAYPAUSE},
  25. { 0x19, KEY_VOLUMEDOWN},
  26. { 0x1c, KEY_REWIND},
  27. { 0x0d, KEY_RECORD},
  28. { 0x18, KEY_FORWARD},
  29. { 0x1e, KEY_PREVIOUS},
  30. { 0x1b, KEY_STOP},
  31. { 0x1f, KEY_NEXT},
  32. { 0x13, KEY_CAMERA},
  33. };
  34. static struct rc_map_list evga_indtube_map = {
  35. .map = {
  36. .scan = evga_indtube,
  37. .size = ARRAY_SIZE(evga_indtube),
  38. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  39. .name = RC_MAP_EVGA_INDTUBE,
  40. }
  41. };
  42. static int __init init_rc_map_evga_indtube(void)
  43. {
  44. return rc_map_register(&evga_indtube_map);
  45. }
  46. static void __exit exit_rc_map_evga_indtube(void)
  47. {
  48. rc_map_unregister(&evga_indtube_map);
  49. }
  50. module_init(init_rc_map_evga_indtube)
  51. module_exit(exit_rc_map_evga_indtube)
  52. MODULE_LICENSE("GPL");
  53. MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");