diff options
Diffstat (limited to 'drivers/media/common/ir-keymaps.c')
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 280 |
1 files changed, 276 insertions, 4 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index 8fa91f846d59..4952aeb5dd80 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -103,6 +103,56 @@ IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE] = { | |||
103 | 103 | ||
104 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_dvbt); | 104 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_dvbt); |
105 | 105 | ||
106 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ | ||
107 | IR_KEYTAB_TYPE ir_codes_avermedia_m135a[IR_KEYTAB_SIZE] = { | ||
108 | [0x00] = KEY_POWER2, | ||
109 | [0x2e] = KEY_DOT, /* '.' */ | ||
110 | [0x01] = KEY_MODE, /* TV/FM */ | ||
111 | |||
112 | [0x05] = KEY_1, | ||
113 | [0x06] = KEY_2, | ||
114 | [0x07] = KEY_3, | ||
115 | [0x09] = KEY_4, | ||
116 | [0x0a] = KEY_5, | ||
117 | [0x0b] = KEY_6, | ||
118 | [0x0d] = KEY_7, | ||
119 | [0x0e] = KEY_8, | ||
120 | [0x0f] = KEY_9, | ||
121 | [0x11] = KEY_0, | ||
122 | |||
123 | [0x13] = KEY_RIGHT, /* -> */ | ||
124 | [0x12] = KEY_LEFT, /* <- */ | ||
125 | |||
126 | [0x17] = KEY_SLEEP, /* Capturar Imagem */ | ||
127 | [0x10] = KEY_SHUFFLE, /* Amostra */ | ||
128 | |||
129 | /* FIXME: The keys bellow aren't ok */ | ||
130 | |||
131 | [0x43] = KEY_CHANNELUP, | ||
132 | [0x42] = KEY_CHANNELDOWN, | ||
133 | [0x1f] = KEY_VOLUMEUP, | ||
134 | [0x1e] = KEY_VOLUMEDOWN, | ||
135 | [0x0c] = KEY_ENTER, | ||
136 | |||
137 | [0x14] = KEY_MUTE, | ||
138 | [0x08] = KEY_AUDIO, | ||
139 | |||
140 | [0x03] = KEY_TEXT, | ||
141 | [0x04] = KEY_EPG, | ||
142 | [0x2b] = KEY_TV2, /* TV2 */ | ||
143 | |||
144 | [0x1d] = KEY_RED, | ||
145 | [0x1c] = KEY_YELLOW, | ||
146 | [0x41] = KEY_GREEN, | ||
147 | [0x40] = KEY_BLUE, | ||
148 | |||
149 | [0x1a] = KEY_PLAYPAUSE, | ||
150 | [0x19] = KEY_RECORD, | ||
151 | [0x18] = KEY_PLAY, | ||
152 | [0x1b] = KEY_STOP, | ||
153 | }; | ||
154 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_m135a); | ||
155 | |||
106 | /* Attila Kondoros <attila.kondoros@chello.hu> */ | 156 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
107 | IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = { | 157 | IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = { |
108 | 158 | ||
@@ -467,7 +517,8 @@ EXPORT_SYMBOL_GPL(ir_codes_adstech_dvb_t_pci); | |||
467 | 517 | ||
468 | /* ---------------------------------------------------------------------- */ | 518 | /* ---------------------------------------------------------------------- */ |
469 | 519 | ||
470 | /* MSI TV@nywhere remote */ | 520 | /* MSI TV@nywhere MASTER remote */ |
521 | |||
471 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = { | 522 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = { |
472 | /* Keys 0 to 9 */ | 523 | /* Keys 0 to 9 */ |
473 | [ 0x00 ] = KEY_0, | 524 | [ 0x00 ] = KEY_0, |
@@ -501,6 +552,95 @@ EXPORT_SYMBOL_GPL(ir_codes_msi_tvanywhere); | |||
501 | 552 | ||
502 | /* ---------------------------------------------------------------------- */ | 553 | /* ---------------------------------------------------------------------- */ |
503 | 554 | ||
555 | /* | ||
556 | Keycodes for remote on the MSI TV@nywhere Plus. The controller IC on the card | ||
557 | is marked "KS003". The controller is I2C at address 0x30, but does not seem | ||
558 | to respond to probes until a read is performed from a valid device. | ||
559 | I don't know why... | ||
560 | |||
561 | Note: This remote may be of similar or identical design to the | ||
562 | Pixelview remote (?). The raw codes and duplicate button codes | ||
563 | appear to be the same. | ||
564 | |||
565 | Henry Wong <henry@stuffedcow.net> | ||
566 | Some changes to formatting and keycodes by Mark Schultz <n9xmj@yahoo.com> | ||
567 | |||
568 | */ | ||
569 | |||
570 | IR_KEYTAB_TYPE ir_codes_msi_tvanywhere_plus[IR_KEYTAB_SIZE] = { | ||
571 | |||
572 | /* ---- Remote Button Layout ---- | ||
573 | |||
574 | POWER SOURCE SCAN MUTE | ||
575 | TV/FM 1 2 3 | ||
576 | |> 4 5 6 | ||
577 | <| 7 8 9 | ||
578 | ^^UP 0 + RECALL | ||
579 | vvDN RECORD STOP PLAY | ||
580 | |||
581 | MINIMIZE ZOOM | ||
582 | |||
583 | CH+ | ||
584 | VOL- VOL+ | ||
585 | CH- | ||
586 | |||
587 | SNAPSHOT MTS | ||
588 | |||
589 | << FUNC >> RESET | ||
590 | */ | ||
591 | |||
592 | [0x01] = KEY_KP1, /* 1 */ | ||
593 | [0x0b] = KEY_KP2, /* 2 */ | ||
594 | [0x1b] = KEY_KP3, /* 3 */ | ||
595 | [0x05] = KEY_KP4, /* 4 */ | ||
596 | [0x09] = KEY_KP5, /* 5 */ | ||
597 | [0x15] = KEY_KP6, /* 6 */ | ||
598 | [0x06] = KEY_KP7, /* 7 */ | ||
599 | [0x0a] = KEY_KP8, /* 8 */ | ||
600 | [0x12] = KEY_KP9, /* 9 */ | ||
601 | [0x02] = KEY_KP0, /* 0 */ | ||
602 | [0x10] = KEY_KPPLUS, /* + */ | ||
603 | [0x13] = KEY_AGAIN, /* Recall */ | ||
604 | |||
605 | [0x1e] = KEY_POWER, /* Power */ | ||
606 | [0x07] = KEY_TUNER, /* Source */ | ||
607 | [0x1c] = KEY_SEARCH, /* Scan */ | ||
608 | [0x18] = KEY_MUTE, /* Mute */ | ||
609 | |||
610 | [0x03] = KEY_RADIO, /* TV/FM */ | ||
611 | /* The next four keys are duplicates that appear to send the | ||
612 | same IR code as Ch+, Ch-, >>, and << . The raw code assigned | ||
613 | to them is the actual code + 0x20 - they will never be | ||
614 | detected as such unless some way is discovered to distinguish | ||
615 | these buttons from those that have the same code. */ | ||
616 | [0x3f] = KEY_RIGHT, /* |> and Ch+ */ | ||
617 | [0x37] = KEY_LEFT, /* <| and Ch- */ | ||
618 | [0x2c] = KEY_UP, /* ^^Up and >> */ | ||
619 | [0x24] = KEY_DOWN, /* vvDn and << */ | ||
620 | |||
621 | [0x00] = KEY_RECORD, /* Record */ | ||
622 | [0x08] = KEY_STOP, /* Stop */ | ||
623 | [0x11] = KEY_PLAY, /* Play */ | ||
624 | |||
625 | [0x0f] = KEY_CLOSE, /* Minimize */ | ||
626 | [0x19] = KEY_ZOOM, /* Zoom */ | ||
627 | [0x1a] = KEY_SHUFFLE, /* Snapshot */ | ||
628 | [0x0d] = KEY_LANGUAGE, /* MTS */ | ||
629 | |||
630 | [0x14] = KEY_VOLUMEDOWN, /* Vol- */ | ||
631 | [0x16] = KEY_VOLUMEUP, /* Vol+ */ | ||
632 | [0x17] = KEY_CHANNELDOWN, /* Ch- */ | ||
633 | [0x1f] = KEY_CHANNELUP, /* Ch+ */ | ||
634 | |||
635 | [0x04] = KEY_REWIND, /* << */ | ||
636 | [0x0e] = KEY_MENU, /* Function */ | ||
637 | [0x0c] = KEY_FASTFORWARD, /* >> */ | ||
638 | [0x1d] = KEY_RESTART, /* Reset */ | ||
639 | }; | ||
640 | EXPORT_SYMBOL_GPL(ir_codes_msi_tvanywhere_plus); | ||
641 | |||
642 | /* ---------------------------------------------------------------------- */ | ||
643 | |||
504 | /* Cinergy 1400 DVB-T */ | 644 | /* Cinergy 1400 DVB-T */ |
505 | IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE] = { | 645 | IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE] = { |
506 | [ 0x01 ] = KEY_POWER, | 646 | [ 0x01 ] = KEY_POWER, |
@@ -1792,12 +1932,61 @@ IR_KEYTAB_TYPE ir_codes_encore_enltv[IR_KEYTAB_SIZE] = { | |||
1792 | [ 0x41 ] = KEY_GREEN, /* AP2 */ | 1932 | [ 0x41 ] = KEY_GREEN, /* AP2 */ |
1793 | [ 0x47 ] = KEY_YELLOW, /* AP3 */ | 1933 | [ 0x47 ] = KEY_YELLOW, /* AP3 */ |
1794 | [ 0x57 ] = KEY_BLUE, /* AP4 */ | 1934 | [ 0x57 ] = KEY_BLUE, /* AP4 */ |
1795 | |||
1796 | |||
1797 | }; | 1935 | }; |
1798 | |||
1799 | EXPORT_SYMBOL_GPL(ir_codes_encore_enltv); | 1936 | EXPORT_SYMBOL_GPL(ir_codes_encore_enltv); |
1800 | 1937 | ||
1938 | /* Encore ENLTV2-FM - silver plastic - "Wand Media" written at the botton | ||
1939 | Mauro Carvalho Chehab <mchehab@infradead.org> */ | ||
1940 | IR_KEYTAB_TYPE ir_codes_encore_enltv2[IR_KEYTAB_SIZE] = { | ||
1941 | [0x4c] = KEY_POWER2, | ||
1942 | [0x4a] = KEY_TUNER, | ||
1943 | [0x40] = KEY_1, | ||
1944 | [0x60] = KEY_2, | ||
1945 | [0x50] = KEY_3, | ||
1946 | [0x70] = KEY_4, | ||
1947 | [0x48] = KEY_5, | ||
1948 | [0x68] = KEY_6, | ||
1949 | [0x58] = KEY_7, | ||
1950 | [0x78] = KEY_8, | ||
1951 | [0x44] = KEY_9, | ||
1952 | [0x54] = KEY_0, | ||
1953 | |||
1954 | [0x64] = KEY_LAST, /* +100 */ | ||
1955 | [0x4e] = KEY_AGAIN, /* Recall */ | ||
1956 | |||
1957 | [0x6c] = KEY_SWITCHVIDEOMODE, /* Video Source */ | ||
1958 | [0x5e] = KEY_MENU, | ||
1959 | [0x56] = KEY_SCREEN, | ||
1960 | [0x7a] = KEY_SETUP, | ||
1961 | |||
1962 | [0x46] = KEY_MUTE, | ||
1963 | [0x5c] = KEY_MODE, /* Stereo */ | ||
1964 | [0x74] = KEY_INFO, | ||
1965 | [0x7c] = KEY_CLEAR, | ||
1966 | |||
1967 | [0x55] = KEY_UP, | ||
1968 | [0x49] = KEY_DOWN, | ||
1969 | [0x7e] = KEY_LEFT, | ||
1970 | [0x59] = KEY_RIGHT, | ||
1971 | [0x6a] = KEY_ENTER, | ||
1972 | |||
1973 | [0x42] = KEY_VOLUMEUP, | ||
1974 | [0x62] = KEY_VOLUMEDOWN, | ||
1975 | [0x52] = KEY_CHANNELUP, | ||
1976 | [0x72] = KEY_CHANNELDOWN, | ||
1977 | |||
1978 | [0x41] = KEY_RECORD, | ||
1979 | [0x51] = KEY_SHUFFLE, /* Snapshot */ | ||
1980 | [0x75] = KEY_TIME, /* Timeshift */ | ||
1981 | [0x71] = KEY_TV2, /* PIP */ | ||
1982 | |||
1983 | [0x45] = KEY_REWIND, | ||
1984 | [0x6f] = KEY_PAUSE, | ||
1985 | [0x7d] = KEY_FORWARD, | ||
1986 | [0x79] = KEY_STOP, | ||
1987 | }; | ||
1988 | EXPORT_SYMBOL_GPL(ir_codes_encore_enltv2); | ||
1989 | |||
1801 | /* for the Technotrend 1500 bundled remotes (grey and black): */ | 1990 | /* for the Technotrend 1500 bundled remotes (grey and black): */ |
1802 | IR_KEYTAB_TYPE ir_codes_tt_1500[IR_KEYTAB_SIZE] = { | 1991 | IR_KEYTAB_TYPE ir_codes_tt_1500[IR_KEYTAB_SIZE] = { |
1803 | [ 0x01 ] = KEY_POWER, | 1992 | [ 0x01 ] = KEY_POWER, |
@@ -2239,3 +2428,86 @@ IR_KEYTAB_TYPE ir_codes_avermedia_a16d[IR_KEYTAB_SIZE] = { | |||
2239 | [0x2a] = KEY_MENU, | 2428 | [0x2a] = KEY_MENU, |
2240 | }; | 2429 | }; |
2241 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_a16d); | 2430 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_a16d); |
2431 | |||
2432 | /* Encore ENLTV-FM v5.3 | ||
2433 | Mauro Carvalho Chehab <mchehab@infradead.org> | ||
2434 | */ | ||
2435 | IR_KEYTAB_TYPE ir_codes_encore_enltv_fm53[IR_KEYTAB_SIZE] = { | ||
2436 | [0x10] = KEY_POWER2, | ||
2437 | [0x06] = KEY_MUTE, | ||
2438 | |||
2439 | [0x09] = KEY_1, | ||
2440 | [0x1d] = KEY_2, | ||
2441 | [0x1f] = KEY_3, | ||
2442 | [0x19] = KEY_4, | ||
2443 | [0x1b] = KEY_5, | ||
2444 | [0x11] = KEY_6, | ||
2445 | [0x17] = KEY_7, | ||
2446 | [0x12] = KEY_8, | ||
2447 | [0x16] = KEY_9, | ||
2448 | [0x48] = KEY_0, | ||
2449 | |||
2450 | [0x04] = KEY_LIST, /* -/-- */ | ||
2451 | [0x40] = KEY_LAST, /* recall */ | ||
2452 | |||
2453 | [0x02] = KEY_MODE, /* TV/AV */ | ||
2454 | [0x05] = KEY_SHUFFLE, /* SNAPSHOT */ | ||
2455 | |||
2456 | [0x4c] = KEY_CHANNELUP, /* UP */ | ||
2457 | [0x00] = KEY_CHANNELDOWN, /* DOWN */ | ||
2458 | [0x0d] = KEY_VOLUMEUP, /* RIGHT */ | ||
2459 | [0x15] = KEY_VOLUMEDOWN, /* LEFT */ | ||
2460 | [0x49] = KEY_ENTER, /* OK */ | ||
2461 | |||
2462 | [0x54] = KEY_RECORD, | ||
2463 | [0x4d] = KEY_PLAY, /* pause */ | ||
2464 | |||
2465 | [0x1e] = KEY_UP, /* video setting */ | ||
2466 | [0x0e] = KEY_RIGHT, /* <- */ | ||
2467 | [0x1a] = KEY_LEFT, /* -> */ | ||
2468 | |||
2469 | [0x0a] = KEY_DOWN, /* video default */ | ||
2470 | [0x0c] = KEY_ZOOM, /* hide pannel */ | ||
2471 | [0x47] = KEY_SLEEP, /* shutdown */ | ||
2472 | }; | ||
2473 | EXPORT_SYMBOL_GPL(ir_codes_encore_enltv_fm53); | ||
2474 | |||
2475 | /* Zogis Real Audio 220 - 32 keys IR */ | ||
2476 | IR_KEYTAB_TYPE ir_codes_real_audio_220_32_keys[IR_KEYTAB_SIZE] = { | ||
2477 | [0x1c] = KEY_RADIO, | ||
2478 | [0x12] = KEY_POWER2, | ||
2479 | |||
2480 | [0x01] = KEY_1, | ||
2481 | [0x02] = KEY_2, | ||
2482 | [0x03] = KEY_3, | ||
2483 | [0x04] = KEY_4, | ||
2484 | [0x05] = KEY_5, | ||
2485 | [0x06] = KEY_6, | ||
2486 | [0x07] = KEY_7, | ||
2487 | [0x08] = KEY_8, | ||
2488 | [0x09] = KEY_9, | ||
2489 | [0x00] = KEY_0, | ||
2490 | |||
2491 | [0x0c] = KEY_VOLUMEUP, | ||
2492 | [0x18] = KEY_VOLUMEDOWN, | ||
2493 | [0x0b] = KEY_CHANNELUP, | ||
2494 | [0x15] = KEY_CHANNELDOWN, | ||
2495 | [0x16] = KEY_ENTER, | ||
2496 | |||
2497 | [0x11] = KEY_LIST, /* Source */ | ||
2498 | [0x0d] = KEY_AUDIO, /* stereo */ | ||
2499 | |||
2500 | [0x0f] = KEY_PREVIOUS, /* Prev */ | ||
2501 | [0x1b] = KEY_PAUSE, /* Timeshift */ | ||
2502 | [0x1a] = KEY_NEXT, /* Next */ | ||
2503 | |||
2504 | [0x0e] = KEY_STOP, | ||
2505 | [0x1f] = KEY_PLAY, | ||
2506 | [0x1e] = KEY_PLAYPAUSE, /* Pause */ | ||
2507 | |||
2508 | [0x1d] = KEY_RECORD, | ||
2509 | [0x13] = KEY_MUTE, | ||
2510 | [0x19] = KEY_SHUFFLE, /* Snapshot */ | ||
2511 | |||
2512 | }; | ||
2513 | EXPORT_SYMBOL_GPL(ir_codes_real_audio_220_32_keys); | ||