rc-norwood.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* norwood.h - Keytable for norwood 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. /* Norwood Micro (non-Pro) TV Tuner
  15. By Peter Naulls <peter@chocky.org>
  16. Key comments are the functions given in the manual */
  17. static struct rc_map_table norwood[] = {
  18. /* Keys 0 to 9 */
  19. { 0x20, KEY_0 },
  20. { 0x21, KEY_1 },
  21. { 0x22, KEY_2 },
  22. { 0x23, KEY_3 },
  23. { 0x24, KEY_4 },
  24. { 0x25, KEY_5 },
  25. { 0x26, KEY_6 },
  26. { 0x27, KEY_7 },
  27. { 0x28, KEY_8 },
  28. { 0x29, KEY_9 },
  29. { 0x78, KEY_VIDEO }, /* Video Source */
  30. { 0x2c, KEY_EXIT }, /* Open/Close software */
  31. { 0x2a, KEY_SELECT }, /* 2 Digit Select */
  32. { 0x69, KEY_AGAIN }, /* Recall */
  33. { 0x32, KEY_BRIGHTNESSUP }, /* Brightness increase */
  34. { 0x33, KEY_BRIGHTNESSDOWN }, /* Brightness decrease */
  35. { 0x6b, KEY_KPPLUS }, /* (not named >>>>>) */
  36. { 0x6c, KEY_KPMINUS }, /* (not named <<<<<) */
  37. { 0x2d, KEY_MUTE }, /* Mute */
  38. { 0x30, KEY_VOLUMEUP }, /* Volume up */
  39. { 0x31, KEY_VOLUMEDOWN }, /* Volume down */
  40. { 0x60, KEY_CHANNELUP }, /* Channel up */
  41. { 0x61, KEY_CHANNELDOWN }, /* Channel down */
  42. { 0x3f, KEY_RECORD }, /* Record */
  43. { 0x37, KEY_PLAY }, /* Play */
  44. { 0x36, KEY_PAUSE }, /* Pause */
  45. { 0x2b, KEY_STOP }, /* Stop */
  46. { 0x67, KEY_FASTFORWARD }, /* Forward */
  47. { 0x66, KEY_REWIND }, /* Rewind */
  48. { 0x3e, KEY_SEARCH }, /* Auto Scan */
  49. { 0x2e, KEY_CAMERA }, /* Capture Video */
  50. { 0x6d, KEY_MENU }, /* Show/Hide Control */
  51. { 0x2f, KEY_ZOOM }, /* Full Screen */
  52. { 0x34, KEY_RADIO }, /* FM */
  53. { 0x65, KEY_POWER }, /* Computer power */
  54. };
  55. static struct rc_map_list norwood_map = {
  56. .map = {
  57. .scan = norwood,
  58. .size = ARRAY_SIZE(norwood),
  59. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  60. .name = RC_MAP_NORWOOD,
  61. }
  62. };
  63. static int __init init_rc_map_norwood(void)
  64. {
  65. return rc_map_register(&norwood_map);
  66. }
  67. static void __exit exit_rc_map_norwood(void)
  68. {
  69. rc_map_unregister(&norwood_map);
  70. }
  71. module_init(init_rc_map_norwood)
  72. module_exit(exit_rc_map_norwood)
  73. MODULE_LICENSE("GPL");
  74. MODULE_AUTHOR("Mauro Carvalho Chehab");