aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Spelvin <linux@horizon.com>2014-05-11 07:17:37 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-25 22:54:32 -0400
commit220edfb0f724594327e291582249d47e6017a697 (patch)
tree316dcdbe072b17d9292702632726a787bc24adad
parentd701c8318bc233f90ba6a7a6d1d2aace9e8ea2cf (diff)
[media] ati_remote: Add comments to keycode table
A more detailed description of what the buttons look like and their intended function makes it easier for people to maintain this code without access to the hardware. [m.chehab@samsung.com: Fixed a typo "Mdeia" instead of "Media"] Signed-off-by: George Spelvin <linux@horizon.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/rc/keymaps/rc-ati-x10.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/drivers/media/rc/keymaps/rc-ati-x10.c b/drivers/media/rc/keymaps/rc-ati-x10.c
index 4e2cbbafe97a..8b01a72145bb 100644
--- a/drivers/media/rc/keymaps/rc-ati-x10.c
+++ b/drivers/media/rc/keymaps/rc-ati-x10.c
@@ -26,6 +26,17 @@
26#include <linux/module.h> 26#include <linux/module.h>
27#include <media/rc-map.h> 27#include <media/rc-map.h>
28 28
29/*
30 * Intended usage comments below are from vendor-supplied
31 * Source: ATI REMOTE WONDERâ„¢ Installation Guide
32 * http://www2.ati.com/manuals/remctrl.pdf
33 *
34 * Scancodes were in strict left-right, top-bottom order on the
35 * original ATI Remote Wonder, but were moved on later models.
36 *
37 * Keys A-F are intended to be user-programmable.
38 */
39
29static struct rc_map_table ati_x10[] = { 40static struct rc_map_table ati_x10[] = {
30 /* keyboard - Above the cursor pad */ 41 /* keyboard - Above the cursor pad */
31 { 0x00, KEY_A }, 42 { 0x00, KEY_A },
@@ -35,9 +46,11 @@ static struct rc_map_table ati_x10[] = {
35 { 0x03, KEY_TV }, /* TV */ 46 { 0x03, KEY_TV }, /* TV */
36 { 0x04, KEY_DVD }, /* DVD */ 47 { 0x04, KEY_DVD }, /* DVD */
37 { 0x05, KEY_WWW }, /* WEB */ 48 { 0x05, KEY_WWW }, /* WEB */
38 { 0x06, KEY_BOOKMARKS }, /* "book" */ 49 { 0x06, KEY_BOOKMARKS }, /* "book": Open Media Library */
39 { 0x07, KEY_EDIT }, /* "hand" */ 50 { 0x07, KEY_EDIT }, /* "hand": Toggle left mouse button (grab) */
40 /* Below the cursor pad */ 51
52 /* Mouse emulation pad goes here, handled by driver separately */
53
41 { 0x09, KEY_VOLUMEDOWN }, /* VOL + */ 54 { 0x09, KEY_VOLUMEDOWN }, /* VOL + */
42 { 0x08, KEY_VOLUMEUP }, /* VOL - */ 55 { 0x08, KEY_VOLUMEUP }, /* VOL - */
43 { 0x0a, KEY_MUTE }, /* MUTE */ 56 { 0x0a, KEY_MUTE }, /* MUTE */
@@ -53,9 +66,9 @@ static struct rc_map_table ati_x10[] = {
53 { 0x13, KEY_7 }, 66 { 0x13, KEY_7 },
54 { 0x14, KEY_8 }, 67 { 0x14, KEY_8 },
55 { 0x15, KEY_9 }, 68 { 0x15, KEY_9 },
56 { 0x16, KEY_MENU }, /* "menu" */ 69 { 0x16, KEY_MENU }, /* "menu": DVD root menu */
57 { 0x17, KEY_0 }, 70 { 0x17, KEY_0 },
58 { 0x18, KEY_KPENTER }, /* "check" */ 71 { 0x18, KEY_KPENTER }, /* "check": DVD setup menu */
59 72
60 /* DVD navigation buttons */ 73 /* DVD navigation buttons */
61 { 0x19, KEY_C }, 74 { 0x19, KEY_C },
@@ -72,13 +85,13 @@ static struct rc_map_table ati_x10[] = {
72 { 0x22, KEY_DOWN }, /* down */ 85 { 0x22, KEY_DOWN }, /* down */
73 { 0x23, KEY_F }, 86 { 0x23, KEY_F },
74 /* Play/stop/pause buttons */ 87 /* Play/stop/pause buttons */
75 { 0x24, KEY_REWIND }, /* (<<) */ 88 { 0x24, KEY_REWIND }, /* (<<) Rewind */
76 { 0x25, KEY_PLAY }, /* ( >) */ 89 { 0x25, KEY_PLAY }, /* ( >) Play */
77 { 0x26, KEY_FORWARD }, /* (>>) */ 90 { 0x26, KEY_FORWARD }, /* (>>) Fast forward */
78 91
79 { 0x27, KEY_RECORD }, /* ( o) red */ 92 { 0x27, KEY_RECORD }, /* ( o) red */
80 { 0x28, KEY_STOP }, /* ([]) */ 93 { 0x28, KEY_STOP }, /* ([]) Stop */
81 { 0x29, KEY_PAUSE }, /* ('') */ 94 { 0x29, KEY_PAUSE }, /* ('') Pause */
82 95
83 /* Extra keys, not on the original ATI remote */ 96 /* Extra keys, not on the original ATI remote */
84 { 0x2a, KEY_NEXT }, /* (>+) */ 97 { 0x2a, KEY_NEXT }, /* (>+) */