rc-real-audio-220-32-keys.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* real-audio-220-32-keys.h - Keytable for real_audio_220_32_keys 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. /* Zogis Real Audio 220 - 32 keys IR */
  15. static struct rc_map_table real_audio_220_32_keys[] = {
  16. { 0x1c, KEY_RADIO},
  17. { 0x12, KEY_POWER2},
  18. { 0x01, KEY_1},
  19. { 0x02, KEY_2},
  20. { 0x03, KEY_3},
  21. { 0x04, KEY_4},
  22. { 0x05, KEY_5},
  23. { 0x06, KEY_6},
  24. { 0x07, KEY_7},
  25. { 0x08, KEY_8},
  26. { 0x09, KEY_9},
  27. { 0x00, KEY_0},
  28. { 0x0c, KEY_VOLUMEUP},
  29. { 0x18, KEY_VOLUMEDOWN},
  30. { 0x0b, KEY_CHANNELUP},
  31. { 0x15, KEY_CHANNELDOWN},
  32. { 0x16, KEY_ENTER},
  33. { 0x11, KEY_VIDEO}, /* Source */
  34. { 0x0d, KEY_AUDIO}, /* stereo */
  35. { 0x0f, KEY_PREVIOUS}, /* Prev */
  36. { 0x1b, KEY_TIME}, /* Timeshift */
  37. { 0x1a, KEY_NEXT}, /* Next */
  38. { 0x0e, KEY_STOP},
  39. { 0x1f, KEY_PLAY},
  40. { 0x1e, KEY_PLAYPAUSE}, /* Pause */
  41. { 0x1d, KEY_RECORD},
  42. { 0x13, KEY_MUTE},
  43. { 0x19, KEY_CAMERA}, /* Snapshot */
  44. };
  45. static struct rc_map_list real_audio_220_32_keys_map = {
  46. .map = {
  47. .scan = real_audio_220_32_keys,
  48. .size = ARRAY_SIZE(real_audio_220_32_keys),
  49. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  50. .name = RC_MAP_REAL_AUDIO_220_32_KEYS,
  51. }
  52. };
  53. static int __init init_rc_map_real_audio_220_32_keys(void)
  54. {
  55. return rc_map_register(&real_audio_220_32_keys_map);
  56. }
  57. static void __exit exit_rc_map_real_audio_220_32_keys(void)
  58. {
  59. rc_map_unregister(&real_audio_220_32_keys_map);
  60. }
  61. module_init(init_rc_map_real_audio_220_32_keys)
  62. module_exit(exit_rc_map_real_audio_220_32_keys)
  63. MODULE_LICENSE("GPL");
  64. MODULE_AUTHOR("Mauro Carvalho Chehab");