diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-24 10:18:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 18:24:10 -0400 |
commit | 7f961c6989a98c10faea76a39228a63624f10690 (patch) | |
tree | 0451ea35eedcadc068985fa43b445372e2b893cc /drivers/media | |
parent | 898a83e9243e2398e863887b36476c3cc227074a (diff) |
[media] rc-winfast: Fix the keycode tables
One of the remotes has a picture available at:
http://lirc.sourceforge.net/remotes/leadtek/Y04G0004.jpg
As there's one variant with a set direction keys plus vol/chann
keys, and the same table is used for both models, change it to
represent all keys, avoiding the usage of weird function keys.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/keymaps/rc-winfast.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/rc/keymaps/rc-winfast.c b/drivers/media/rc/keymaps/rc-winfast.c index 2747db43b70c..0062ca291959 100644 --- a/drivers/media/rc/keymaps/rc-winfast.c +++ b/drivers/media/rc/keymaps/rc-winfast.c | |||
@@ -27,15 +27,15 @@ static struct rc_map_table winfast[] = { | |||
27 | { 0x0e, KEY_8 }, | 27 | { 0x0e, KEY_8 }, |
28 | { 0x0f, KEY_9 }, | 28 | { 0x0f, KEY_9 }, |
29 | 29 | ||
30 | { 0x00, KEY_POWER }, | 30 | { 0x00, KEY_POWER2 }, |
31 | { 0x1b, KEY_AUDIO }, /* Audio Source */ | 31 | { 0x1b, KEY_AUDIO }, /* Audio Source */ |
32 | { 0x02, KEY_TUNER }, /* TV/FM, not on Y0400052 */ | 32 | { 0x02, KEY_TUNER }, /* TV/FM, not on Y0400052 */ |
33 | { 0x1e, KEY_VIDEO }, /* Video Source */ | 33 | { 0x1e, KEY_VIDEO }, /* Video Source */ |
34 | { 0x16, KEY_INFO }, /* Display information */ | 34 | { 0x16, KEY_INFO }, /* Display information */ |
35 | { 0x04, KEY_VOLUMEUP }, | 35 | { 0x04, KEY_LEFT }, |
36 | { 0x08, KEY_VOLUMEDOWN }, | 36 | { 0x08, KEY_RIGHT }, |
37 | { 0x0c, KEY_CHANNELUP }, | 37 | { 0x0c, KEY_UP }, |
38 | { 0x10, KEY_CHANNELDOWN }, | 38 | { 0x10, KEY_DOWN }, |
39 | { 0x03, KEY_ZOOM }, /* fullscreen */ | 39 | { 0x03, KEY_ZOOM }, /* fullscreen */ |
40 | { 0x1f, KEY_TEXT }, /* closed caption/teletext */ | 40 | { 0x1f, KEY_TEXT }, /* closed caption/teletext */ |
41 | { 0x20, KEY_SLEEP }, | 41 | { 0x20, KEY_SLEEP }, |
@@ -47,7 +47,7 @@ static struct rc_map_table winfast[] = { | |||
47 | { 0x2e, KEY_BLUE }, | 47 | { 0x2e, KEY_BLUE }, |
48 | { 0x18, KEY_KPPLUS }, /* fine tune + , not on Y040052 */ | 48 | { 0x18, KEY_KPPLUS }, /* fine tune + , not on Y040052 */ |
49 | { 0x19, KEY_KPMINUS }, /* fine tune - , not on Y040052 */ | 49 | { 0x19, KEY_KPMINUS }, /* fine tune - , not on Y040052 */ |
50 | { 0x2a, KEY_MEDIA }, /* PIP (Picture in picture */ | 50 | { 0x2a, KEY_TV2 }, /* PIP (Picture in picture */ |
51 | { 0x21, KEY_DOT }, | 51 | { 0x21, KEY_DOT }, |
52 | { 0x13, KEY_ENTER }, | 52 | { 0x13, KEY_ENTER }, |
53 | { 0x11, KEY_LAST }, /* Recall (last channel */ | 53 | { 0x11, KEY_LAST }, /* Recall (last channel */ |
@@ -57,7 +57,7 @@ static struct rc_map_table winfast[] = { | |||
57 | { 0x25, KEY_TIME }, /* Time Shifting */ | 57 | { 0x25, KEY_TIME }, /* Time Shifting */ |
58 | { 0x26, KEY_STOP }, | 58 | { 0x26, KEY_STOP }, |
59 | { 0x27, KEY_RECORD }, | 59 | { 0x27, KEY_RECORD }, |
60 | { 0x28, KEY_SAVE }, /* Screenshot */ | 60 | { 0x28, KEY_CAMERA }, /* Screenshot */ |
61 | { 0x2f, KEY_MENU }, | 61 | { 0x2f, KEY_MENU }, |
62 | { 0x30, KEY_CANCEL }, | 62 | { 0x30, KEY_CANCEL }, |
63 | { 0x31, KEY_CHANNEL }, /* Channel Surf */ | 63 | { 0x31, KEY_CHANNEL }, /* Channel Surf */ |
@@ -70,10 +70,10 @@ static struct rc_map_table winfast[] = { | |||
70 | { 0x38, KEY_DVD }, | 70 | { 0x38, KEY_DVD }, |
71 | 71 | ||
72 | { 0x1a, KEY_MODE}, /* change to MCE mode on Y04G0051 */ | 72 | { 0x1a, KEY_MODE}, /* change to MCE mode on Y04G0051 */ |
73 | { 0x3e, KEY_F21 }, /* MCE +VOL, on Y04G0033 */ | 73 | { 0x3e, KEY_VOLUMEUP }, /* MCE +VOL, on Y04G0033 */ |
74 | { 0x3a, KEY_F22 }, /* MCE -VOL, on Y04G0033 */ | 74 | { 0x3a, KEY_VOLUMEDOWN }, /* MCE -VOL, on Y04G0033 */ |
75 | { 0x3b, KEY_F23 }, /* MCE +CH, on Y04G0033 */ | 75 | { 0x3b, KEY_CHANNELUP }, /* MCE +CH, on Y04G0033 */ |
76 | { 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */ | 76 | { 0x3f, KEY_CHANNELDOWN } /* MCE -CH, on Y04G0033 */ |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static struct rc_map_list winfast_map = { | 79 | static struct rc_map_list winfast_map = { |