rc-pixelview-mk12.c 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 <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. /*
  14. * Keytable for MK-F12 IR remote provided together with Pixelview
  15. * Ultra Pro Remote Controller. Uses NEC extended format.
  16. */
  17. static struct rc_map_table pixelview_mk12[] = {
  18. { 0x866b03, KEY_TUNER }, /* Timeshift */
  19. { 0x866b1e, KEY_POWER2 }, /* power */
  20. { 0x866b01, KEY_1 },
  21. { 0x866b0b, KEY_2 },
  22. { 0x866b1b, KEY_3 },
  23. { 0x866b05, KEY_4 },
  24. { 0x866b09, KEY_5 },
  25. { 0x866b15, KEY_6 },
  26. { 0x866b06, KEY_7 },
  27. { 0x866b0a, KEY_8 },
  28. { 0x866b12, KEY_9 },
  29. { 0x866b02, KEY_0 },
  30. { 0x866b13, KEY_AGAIN }, /* loop */
  31. { 0x866b10, KEY_DIGITS }, /* +100 */
  32. { 0x866b00, KEY_VIDEO }, /* source */
  33. { 0x866b18, KEY_MUTE }, /* mute */
  34. { 0x866b19, KEY_CAMERA }, /* snapshot */
  35. { 0x866b1a, KEY_SEARCH }, /* scan */
  36. { 0x866b16, KEY_CHANNELUP }, /* chn + */
  37. { 0x866b14, KEY_CHANNELDOWN }, /* chn - */
  38. { 0x866b1f, KEY_VOLUMEUP }, /* vol + */
  39. { 0x866b17, KEY_VOLUMEDOWN }, /* vol - */
  40. { 0x866b1c, KEY_ZOOM }, /* zoom */
  41. { 0x866b04, KEY_REWIND },
  42. { 0x866b0e, KEY_RECORD },
  43. { 0x866b0c, KEY_FORWARD },
  44. { 0x866b1d, KEY_STOP },
  45. { 0x866b08, KEY_PLAY },
  46. { 0x866b0f, KEY_PAUSE },
  47. { 0x866b0d, KEY_TV },
  48. { 0x866b07, KEY_RADIO }, /* FM */
  49. };
  50. static struct rc_map_list pixelview_map = {
  51. .map = {
  52. .scan = pixelview_mk12,
  53. .size = ARRAY_SIZE(pixelview_mk12),
  54. .rc_type = RC_TYPE_NEC,
  55. .name = RC_MAP_PIXELVIEW_MK12,
  56. }
  57. };
  58. static int __init init_rc_map_pixelview(void)
  59. {
  60. return rc_map_register(&pixelview_map);
  61. }
  62. static void __exit exit_rc_map_pixelview(void)
  63. {
  64. rc_map_unregister(&pixelview_map);
  65. }
  66. module_init(init_rc_map_pixelview)
  67. module_exit(exit_rc_map_pixelview)
  68. MODULE_LICENSE("GPL");
  69. MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");