diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-21 23:00:33 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:05:11 -0500 |
commit | 9121106a7f149f9702ed7c2ac0d86e9feb54ede8 (patch) | |
tree | c438ea68c6d06ff3467e578bb24c68a405e0264a | |
parent | 1641002bf56c1da265f2c49ea1c29baba997e63b (diff) |
V4L/DVB (7058): IR corrections for the Pinnacle 800i
IR corrections for the Pinnacle 800i
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 35 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 6 | ||||
-rw-r--r-- | include/media/ir-common.h | 1 |
3 files changed, 41 insertions, 1 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index ee2c69e3152a..a4a937c90534 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -1849,6 +1849,41 @@ IR_KEYTAB_TYPE ir_codes_fusionhdtv_mce[IR_KEYTAB_SIZE] = { | |||
1849 | 1849 | ||
1850 | EXPORT_SYMBOL_GPL(ir_codes_fusionhdtv_mce); | 1850 | EXPORT_SYMBOL_GPL(ir_codes_fusionhdtv_mce); |
1851 | 1851 | ||
1852 | /* Pinnacle PCTV HD 800i mini remote */ | ||
1853 | IR_KEYTAB_TYPE ir_codes_pinnacle_pctv_hd[IR_KEYTAB_SIZE] = { | ||
1854 | |||
1855 | [0x0f] = KEY_1, | ||
1856 | [0x15] = KEY_2, | ||
1857 | [0x10] = KEY_3, | ||
1858 | [0x18] = KEY_4, | ||
1859 | [0x1b] = KEY_5, | ||
1860 | [0x1e] = KEY_6, | ||
1861 | [0x11] = KEY_7, | ||
1862 | [0x21] = KEY_8, | ||
1863 | [0x12] = KEY_9, | ||
1864 | [0x27] = KEY_0, | ||
1865 | |||
1866 | [0x24] = KEY_ZOOM, | ||
1867 | [0x2a] = KEY_SUBTITLE, | ||
1868 | |||
1869 | [0x00] = KEY_MUTE, | ||
1870 | [0x01] = KEY_ENTER, /* Pinnacle Logo */ | ||
1871 | [0x39] = KEY_POWER, | ||
1872 | |||
1873 | [0x03] = KEY_VOLUMEUP, | ||
1874 | [0x09] = KEY_VOLUMEDOWN, | ||
1875 | [0x06] = KEY_CHANNELUP, | ||
1876 | [0x0c] = KEY_CHANNELDOWN, | ||
1877 | |||
1878 | [0x2d] = KEY_REWIND, | ||
1879 | [0x30] = KEY_PLAYPAUSE, | ||
1880 | [0x33] = KEY_FASTFORWARD, | ||
1881 | [0x3c] = KEY_STOP, | ||
1882 | [0x36] = KEY_RECORD, | ||
1883 | [0x3f] = KEY_EPG, /* Labeled "?" */ | ||
1884 | }; | ||
1885 | EXPORT_SYMBOL_GPL(ir_codes_pinnacle_pctv_hd); | ||
1886 | |||
1852 | /* | 1887 | /* |
1853 | * Igor Kuznetsov <igk72@ya.ru> | 1888 | * Igor Kuznetsov <igk72@ya.ru> |
1854 | * Andrey J. Melnikov <temnota@kmv.ru> | 1889 | * Andrey J. Melnikov <temnota@kmv.ru> |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index f79a1c77414c..bb0911b4d2f6 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -224,7 +224,6 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) | |||
224 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: | 224 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: |
225 | case CX88_BOARD_HAUPPAUGE_HVR1100: | 225 | case CX88_BOARD_HAUPPAUGE_HVR1100: |
226 | case CX88_BOARD_HAUPPAUGE_HVR3000: | 226 | case CX88_BOARD_HAUPPAUGE_HVR3000: |
227 | case CX88_BOARD_PINNACLE_PCTV_HD_800i: | ||
228 | ir_codes = ir_codes_hauppauge_new; | 227 | ir_codes = ir_codes_hauppauge_new; |
229 | ir_type = IR_TYPE_RC5; | 228 | ir_type = IR_TYPE_RC5; |
230 | ir->sampling = 1; | 229 | ir->sampling = 1; |
@@ -306,6 +305,11 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) | |||
306 | ir->mask_keycode = 0xfa; | 305 | ir->mask_keycode = 0xfa; |
307 | ir->polling = 50; /* ms */ | 306 | ir->polling = 50; /* ms */ |
308 | break; | 307 | break; |
308 | case CX88_BOARD_PINNACLE_PCTV_HD_800i: | ||
309 | ir_codes = ir_codes_pinnacle_pctv_hd; | ||
310 | ir_type = IR_TYPE_RC5; | ||
311 | ir->sampling = 1; | ||
312 | break; | ||
309 | } | 313 | } |
310 | 314 | ||
311 | if (NULL == ir_codes) { | 315 | if (NULL == ir_codes) { |
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 9c2fc09a7133..831547d79683 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -141,6 +141,7 @@ extern IR_KEYTAB_TYPE ir_codes_encore_enltv[IR_KEYTAB_SIZE]; | |||
141 | extern IR_KEYTAB_TYPE ir_codes_tt_1500[IR_KEYTAB_SIZE]; | 141 | extern IR_KEYTAB_TYPE ir_codes_tt_1500[IR_KEYTAB_SIZE]; |
142 | extern IR_KEYTAB_TYPE ir_codes_fusionhdtv_mce[IR_KEYTAB_SIZE]; | 142 | extern IR_KEYTAB_TYPE ir_codes_fusionhdtv_mce[IR_KEYTAB_SIZE]; |
143 | extern IR_KEYTAB_TYPE ir_codes_behold[IR_KEYTAB_SIZE]; | 143 | extern IR_KEYTAB_TYPE ir_codes_behold[IR_KEYTAB_SIZE]; |
144 | extern IR_KEYTAB_TYPE ir_codes_pinnacle_pctv_hd[IR_KEYTAB_SIZE]; | ||
144 | 145 | ||
145 | #endif | 146 | #endif |
146 | 147 | ||