rc-pixelview-002t.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* rc-pixelview-mk12.h - Keytable for pixelview 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. * Keytable for 002-T IR remote provided together with Pixelview
  16. * SBTVD Hybrid Remote Controller. Uses NEC extended format.
  17. */
  18. static struct rc_map_table pixelview_002t[] = {
  19. { 0x866b13, KEY_MUTE },
  20. { 0x866b12, KEY_POWER2 }, /* power */
  21. { 0x866b01, KEY_1 },
  22. { 0x866b02, KEY_2 },
  23. { 0x866b03, KEY_3 },
  24. { 0x866b04, KEY_4 },
  25. { 0x866b05, KEY_5 },
  26. { 0x866b06, KEY_6 },
  27. { 0x866b07, KEY_7 },
  28. { 0x866b08, KEY_8 },
  29. { 0x866b09, KEY_9 },
  30. { 0x866b00, KEY_0 },
  31. { 0x866b0d, KEY_CHANNELUP },
  32. { 0x866b19, KEY_CHANNELDOWN },
  33. { 0x866b10, KEY_VOLUMEUP }, /* vol + */
  34. { 0x866b0c, KEY_VOLUMEDOWN }, /* vol - */
  35. { 0x866b0a, KEY_CAMERA }, /* snapshot */
  36. { 0x866b0b, KEY_ZOOM }, /* zoom */
  37. { 0x866b1b, KEY_BACKSPACE },
  38. { 0x866b15, KEY_ENTER },
  39. { 0x866b1d, KEY_UP },
  40. { 0x866b1e, KEY_DOWN },
  41. { 0x866b0e, KEY_LEFT },
  42. { 0x866b0f, KEY_RIGHT },
  43. { 0x866b18, KEY_RECORD },
  44. { 0x866b1a, KEY_STOP },
  45. };
  46. static struct rc_map_list pixelview_map = {
  47. .map = {
  48. .scan = pixelview_002t,
  49. .size = ARRAY_SIZE(pixelview_002t),
  50. .rc_type = RC_TYPE_NEC,
  51. .name = RC_MAP_PIXELVIEW_002T,
  52. }
  53. };
  54. static int __init init_rc_map_pixelview(void)
  55. {
  56. return rc_map_register(&pixelview_map);
  57. }
  58. static void __exit exit_rc_map_pixelview(void)
  59. {
  60. rc_map_unregister(&pixelview_map);
  61. }
  62. module_init(init_rc_map_pixelview)
  63. module_exit(exit_rc_map_pixelview)
  64. MODULE_LICENSE("GPL");
  65. MODULE_AUTHOR("Mauro Carvalho Chehab");