[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: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
35d136c8da
commit
1ba9268c2b
@ -15,43 +15,39 @@
|
||||
/* Pinnacle PCTV HD 800i mini remote */
|
||||
|
||||
static struct rc_map_table pinnacle_pctv_hd[] = {
|
||||
|
||||
{ 0x0f, KEY_1 },
|
||||
{ 0x15, KEY_2 },
|
||||
{ 0x10, KEY_3 },
|
||||
{ 0x18, KEY_4 },
|
||||
{ 0x1b, KEY_5 },
|
||||
{ 0x1e, KEY_6 },
|
||||
{ 0x11, KEY_7 },
|
||||
{ 0x21, KEY_8 },
|
||||
{ 0x12, KEY_9 },
|
||||
{ 0x27, KEY_0 },
|
||||
|
||||
{ 0x24, KEY_ZOOM },
|
||||
{ 0x2a, KEY_SUBTITLE },
|
||||
|
||||
{ 0x00, KEY_MUTE },
|
||||
{ 0x01, KEY_ENTER }, /* Pinnacle Logo */
|
||||
{ 0x39, KEY_POWER },
|
||||
|
||||
{ 0x03, KEY_VOLUMEUP },
|
||||
{ 0x09, KEY_VOLUMEDOWN },
|
||||
{ 0x06, KEY_CHANNELUP },
|
||||
{ 0x0c, KEY_CHANNELDOWN },
|
||||
|
||||
{ 0x2d, KEY_REWIND },
|
||||
{ 0x30, KEY_PLAYPAUSE },
|
||||
{ 0x33, KEY_FASTFORWARD },
|
||||
{ 0x3c, KEY_STOP },
|
||||
{ 0x36, KEY_RECORD },
|
||||
{ 0x3f, KEY_EPG }, /* Labeled "?" */
|
||||
/* Key codes for the tiny Pinnacle remote*/
|
||||
{ 0x0700, KEY_MUTE },
|
||||
{ 0x0701, KEY_MENU }, /* Pinnacle logo */
|
||||
{ 0x0739, KEY_POWER },
|
||||
{ 0x0703, KEY_VOLUMEUP },
|
||||
{ 0x0709, KEY_VOLUMEDOWN },
|
||||
{ 0x0706, KEY_CHANNELUP },
|
||||
{ 0x070c, KEY_CHANNELDOWN },
|
||||
{ 0x070f, KEY_1 },
|
||||
{ 0x0715, KEY_2 },
|
||||
{ 0x0710, KEY_3 },
|
||||
{ 0x0718, KEY_4 },
|
||||
{ 0x071b, KEY_5 },
|
||||
{ 0x071e, KEY_6 },
|
||||
{ 0x0711, KEY_7 },
|
||||
{ 0x0721, KEY_8 },
|
||||
{ 0x0712, KEY_9 },
|
||||
{ 0x0727, KEY_0 },
|
||||
{ 0x0724, KEY_ZOOM }, /* 'Square' key */
|
||||
{ 0x072a, KEY_SUBTITLE }, /* 'T' key */
|
||||
{ 0x072d, KEY_REWIND },
|
||||
{ 0x0730, KEY_PLAYPAUSE },
|
||||
{ 0x0733, KEY_FASTFORWARD },
|
||||
{ 0x0736, KEY_RECORD },
|
||||
{ 0x073c, KEY_STOP },
|
||||
{ 0x073f, KEY_HELP }, /* '?' key */
|
||||
};
|
||||
|
||||
static struct rc_map_list pinnacle_pctv_hd_map = {
|
||||
.map = {
|
||||
.scan = 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,
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user