Commit 1ba9268c authored by Jarod Wilson's avatar Jarod Wilson Committed by Mauro Carvalho Chehab

[media] keymaps: fix table for pinnacle pctv hd devices

Both consumers of RC_MAP_PINNACLE_PCTV_HD send along full RC-5
scancodes, so this update makes this keymap actually *have* full
scancodes, heisted from rc-dib0700-rc5.c. This should fix out of the box
remote functionality for the Pinnacle PCTV HD 800i (cx88 pci card) and
PCTV HD Pro 801e (em28xx usb stick).

CC: stable@kernel.org
Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 35d136c8
...@@ -15,43 +15,39 @@ ...@@ -15,43 +15,39 @@
/* Pinnacle PCTV HD 800i mini remote */ /* Pinnacle PCTV HD 800i mini remote */
static struct rc_map_table pinnacle_pctv_hd[] = { static struct rc_map_table pinnacle_pctv_hd[] = {
/* Key codes for the tiny Pinnacle remote*/
{ 0x0f, KEY_1 }, { 0x0700, KEY_MUTE },
{ 0x15, KEY_2 }, { 0x0701, KEY_MENU }, /* Pinnacle logo */
{ 0x10, KEY_3 }, { 0x0739, KEY_POWER },
{ 0x18, KEY_4 }, { 0x0703, KEY_VOLUMEUP },
{ 0x1b, KEY_5 }, { 0x0709, KEY_VOLUMEDOWN },
{ 0x1e, KEY_6 }, { 0x0706, KEY_CHANNELUP },
{ 0x11, KEY_7 }, { 0x070c, KEY_CHANNELDOWN },
{ 0x21, KEY_8 }, { 0x070f, KEY_1 },
{ 0x12, KEY_9 }, { 0x0715, KEY_2 },
{ 0x27, KEY_0 }, { 0x0710, KEY_3 },
{ 0x0718, KEY_4 },
{ 0x24, KEY_ZOOM }, { 0x071b, KEY_5 },
{ 0x2a, KEY_SUBTITLE }, { 0x071e, KEY_6 },
{ 0x0711, KEY_7 },
{ 0x00, KEY_MUTE }, { 0x0721, KEY_8 },
{ 0x01, KEY_ENTER }, /* Pinnacle Logo */ { 0x0712, KEY_9 },
{ 0x39, KEY_POWER }, { 0x0727, KEY_0 },
{ 0x0724, KEY_ZOOM }, /* 'Square' key */
{ 0x03, KEY_VOLUMEUP }, { 0x072a, KEY_SUBTITLE }, /* 'T' key */
{ 0x09, KEY_VOLUMEDOWN }, { 0x072d, KEY_REWIND },
{ 0x06, KEY_CHANNELUP }, { 0x0730, KEY_PLAYPAUSE },
{ 0x0c, KEY_CHANNELDOWN }, { 0x0733, KEY_FASTFORWARD },
{ 0x0736, KEY_RECORD },
{ 0x2d, KEY_REWIND }, { 0x073c, KEY_STOP },
{ 0x30, KEY_PLAYPAUSE }, { 0x073f, KEY_HELP }, /* '?' key */
{ 0x33, KEY_FASTFORWARD },
{ 0x3c, KEY_STOP },
{ 0x36, KEY_RECORD },
{ 0x3f, KEY_EPG }, /* Labeled "?" */
}; };
static struct rc_map_list pinnacle_pctv_hd_map = { static struct rc_map_list pinnacle_pctv_hd_map = {
.map = { .map = {
.scan = pinnacle_pctv_hd, .scan = pinnacle_pctv_hd,
.size = ARRAY_SIZE(pinnacle_pctv_hd), .size = ARRAY_SIZE(pinnacle_pctv_hd),
.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ .rc_type = RC_TYPE_RC5,
.name = RC_MAP_PINNACLE_PCTV_HD, .name = RC_MAP_PINNACLE_PCTV_HD,
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment