rc-pixelview-002t.c 1.6 KB

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