diff options
Diffstat (limited to 'drivers/media/common/ir-keymaps.c')
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index f6790172736a..328c973a0838 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -1705,6 +1705,7 @@ static struct ir_scancode ir_codes_winfast[] = { | |||
1705 | { 0x37, KEY_RADIO }, /* FM */ | 1705 | { 0x37, KEY_RADIO }, /* FM */ |
1706 | { 0x38, KEY_DVD }, | 1706 | { 0x38, KEY_DVD }, |
1707 | 1707 | ||
1708 | { 0x1a, KEY_MODE}, /* change to MCE mode on Y04G0051 */ | ||
1708 | { 0x3e, KEY_F21 }, /* MCE +VOL, on Y04G0033 */ | 1709 | { 0x3e, KEY_F21 }, /* MCE +VOL, on Y04G0033 */ |
1709 | { 0x3a, KEY_F22 }, /* MCE -VOL, on Y04G0033 */ | 1710 | { 0x3a, KEY_F22 }, /* MCE -VOL, on Y04G0033 */ |
1710 | { 0x3b, KEY_F23 }, /* MCE +CH, on Y04G0033 */ | 1711 | { 0x3b, KEY_F23 }, /* MCE +CH, on Y04G0033 */ |
@@ -1846,6 +1847,76 @@ struct ir_scancode_table ir_codes_hauppauge_new_table = { | |||
1846 | }; | 1847 | }; |
1847 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new_table); | 1848 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new_table); |
1848 | 1849 | ||
1850 | /* | ||
1851 | * Hauppauge:the newer, gray remotes (seems there are multiple | ||
1852 | * slightly different versions), shipped with cx88+ivtv cards. | ||
1853 | * | ||
1854 | * This table contains the complete RC5 code, instead of just the data part | ||
1855 | */ | ||
1856 | static struct ir_scancode ir_codes_rc5_hauppauge_new[] = { | ||
1857 | /* Keys 0 to 9 */ | ||
1858 | { 0x1e00, KEY_0 }, | ||
1859 | { 0x1e01, KEY_1 }, | ||
1860 | { 0x1e02, KEY_2 }, | ||
1861 | { 0x1e03, KEY_3 }, | ||
1862 | { 0x1e04, KEY_4 }, | ||
1863 | { 0x1e05, KEY_5 }, | ||
1864 | { 0x1e06, KEY_6 }, | ||
1865 | { 0x1e07, KEY_7 }, | ||
1866 | { 0x1e08, KEY_8 }, | ||
1867 | { 0x1e09, KEY_9 }, | ||
1868 | |||
1869 | { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */ | ||
1870 | { 0x1e0b, KEY_RED }, /* red button */ | ||
1871 | { 0x1e0c, KEY_RADIO }, | ||
1872 | { 0x1e0d, KEY_MENU }, | ||
1873 | { 0x1e0e, KEY_SUBTITLE }, /* also the # key */ | ||
1874 | { 0x1e0f, KEY_MUTE }, | ||
1875 | { 0x1e10, KEY_VOLUMEUP }, | ||
1876 | { 0x1e11, KEY_VOLUMEDOWN }, | ||
1877 | { 0x1e12, KEY_PREVIOUS }, /* previous channel */ | ||
1878 | { 0x1e14, KEY_UP }, | ||
1879 | { 0x1e15, KEY_DOWN }, | ||
1880 | { 0x1e16, KEY_LEFT }, | ||
1881 | { 0x1e17, KEY_RIGHT }, | ||
1882 | { 0x1e18, KEY_VIDEO }, /* Videos */ | ||
1883 | { 0x1e19, KEY_AUDIO }, /* Music */ | ||
1884 | /* 0x1e1a: Pictures - presume this means | ||
1885 | "Multimedia Home Platform" - | ||
1886 | no "PICTURES" key in input.h | ||
1887 | */ | ||
1888 | { 0x1e1a, KEY_MHP }, | ||
1889 | |||
1890 | { 0x1e1b, KEY_EPG }, /* Guide */ | ||
1891 | { 0x1e1c, KEY_TV }, | ||
1892 | { 0x1e1e, KEY_NEXTSONG }, /* skip >| */ | ||
1893 | { 0x1e1f, KEY_EXIT }, /* back/exit */ | ||
1894 | { 0x1e20, KEY_CHANNELUP }, /* channel / program + */ | ||
1895 | { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */ | ||
1896 | { 0x1e22, KEY_CHANNEL }, /* source (old black remote) */ | ||
1897 | { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */ | ||
1898 | { 0x1e25, KEY_ENTER }, /* OK */ | ||
1899 | { 0x1e26, KEY_SLEEP }, /* minimize (old black remote) */ | ||
1900 | { 0x1e29, KEY_BLUE }, /* blue key */ | ||
1901 | { 0x1e2e, KEY_GREEN }, /* green button */ | ||
1902 | { 0x1e30, KEY_PAUSE }, /* pause */ | ||
1903 | { 0x1e32, KEY_REWIND }, /* backward << */ | ||
1904 | { 0x1e34, KEY_FASTFORWARD }, /* forward >> */ | ||
1905 | { 0x1e35, KEY_PLAY }, | ||
1906 | { 0x1e36, KEY_STOP }, | ||
1907 | { 0x1e37, KEY_RECORD }, /* recording */ | ||
1908 | { 0x1e38, KEY_YELLOW }, /* yellow key */ | ||
1909 | { 0x1e3b, KEY_SELECT }, /* top right button */ | ||
1910 | { 0x1e3c, KEY_ZOOM }, /* full */ | ||
1911 | { 0x1e3d, KEY_POWER }, /* system power (green button) */ | ||
1912 | }; | ||
1913 | |||
1914 | struct ir_scancode_table ir_codes_rc5_hauppauge_new_table = { | ||
1915 | .scan = ir_codes_rc5_hauppauge_new, | ||
1916 | .size = ARRAY_SIZE(ir_codes_rc5_hauppauge_new), | ||
1917 | }; | ||
1918 | EXPORT_SYMBOL_GPL(ir_codes_rc5_hauppauge_new_table); | ||
1919 | |||
1849 | static struct ir_scancode ir_codes_npgtech[] = { | 1920 | static struct ir_scancode ir_codes_npgtech[] = { |
1850 | { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */ | 1921 | { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */ |
1851 | { 0x2a, KEY_FRONT }, | 1922 | { 0x2a, KEY_FRONT }, |
@@ -2964,6 +3035,101 @@ struct ir_scancode_table ir_codes_dm1105_nec_table = { | |||
2964 | }; | 3035 | }; |
2965 | EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec_table); | 3036 | EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec_table); |
2966 | 3037 | ||
3038 | static struct ir_scancode ir_codes_tevii_nec[] = { | ||
3039 | { 0x0a, KEY_POWER2}, | ||
3040 | { 0x0c, KEY_MUTE}, | ||
3041 | { 0x11, KEY_1}, | ||
3042 | { 0x12, KEY_2}, | ||
3043 | { 0x13, KEY_3}, | ||
3044 | { 0x14, KEY_4}, | ||
3045 | { 0x15, KEY_5}, | ||
3046 | { 0x16, KEY_6}, | ||
3047 | { 0x17, KEY_7}, | ||
3048 | { 0x18, KEY_8}, | ||
3049 | { 0x19, KEY_9}, | ||
3050 | { 0x10, KEY_0}, | ||
3051 | { 0x1c, KEY_MENU}, | ||
3052 | { 0x0f, KEY_VOLUMEDOWN}, | ||
3053 | { 0x1a, KEY_LAST}, | ||
3054 | { 0x0e, KEY_OPEN}, | ||
3055 | { 0x04, KEY_RECORD}, | ||
3056 | { 0x09, KEY_VOLUMEUP}, | ||
3057 | { 0x08, KEY_CHANNELUP}, | ||
3058 | { 0x07, KEY_PVR}, | ||
3059 | { 0x0b, KEY_TIME}, | ||
3060 | { 0x02, KEY_RIGHT}, | ||
3061 | { 0x03, KEY_LEFT}, | ||
3062 | { 0x00, KEY_UP}, | ||
3063 | { 0x1f, KEY_OK}, | ||
3064 | { 0x01, KEY_DOWN}, | ||
3065 | { 0x05, KEY_TUNER}, | ||
3066 | { 0x06, KEY_CHANNELDOWN}, | ||
3067 | { 0x40, KEY_PLAYPAUSE}, | ||
3068 | { 0x1e, KEY_REWIND}, | ||
3069 | { 0x1b, KEY_FAVORITES}, | ||
3070 | { 0x1d, KEY_BACK}, | ||
3071 | { 0x4d, KEY_FASTFORWARD}, | ||
3072 | { 0x44, KEY_EPG}, | ||
3073 | { 0x4c, KEY_INFO}, | ||
3074 | { 0x41, KEY_AB}, | ||
3075 | { 0x43, KEY_AUDIO}, | ||
3076 | { 0x45, KEY_SUBTITLE}, | ||
3077 | { 0x4a, KEY_LIST}, | ||
3078 | { 0x46, KEY_F1}, | ||
3079 | { 0x47, KEY_F2}, | ||
3080 | { 0x5e, KEY_F3}, | ||
3081 | { 0x5c, KEY_F4}, | ||
3082 | { 0x52, KEY_F5}, | ||
3083 | { 0x5a, KEY_F6}, | ||
3084 | { 0x56, KEY_MODE}, | ||
3085 | { 0x58, KEY_SWITCHVIDEOMODE}, | ||
3086 | }; | ||
3087 | struct ir_scancode_table ir_codes_tevii_nec_table = { | ||
3088 | .scan = ir_codes_tevii_nec, | ||
3089 | .size = ARRAY_SIZE(ir_codes_tevii_nec), | ||
3090 | }; | ||
3091 | EXPORT_SYMBOL_GPL(ir_codes_tevii_nec_table); | ||
3092 | |||
3093 | static struct ir_scancode ir_codes_tbs_nec[] = { | ||
3094 | { 0x04, KEY_POWER2}, /*power*/ | ||
3095 | { 0x14, KEY_MUTE}, /*mute*/ | ||
3096 | { 0x07, KEY_1}, | ||
3097 | { 0x06, KEY_2}, | ||
3098 | { 0x05, KEY_3}, | ||
3099 | { 0x0b, KEY_4}, | ||
3100 | { 0x0a, KEY_5}, | ||
3101 | { 0x09, KEY_6}, | ||
3102 | { 0x0f, KEY_7}, | ||
3103 | { 0x0e, KEY_8}, | ||
3104 | { 0x0d, KEY_9}, | ||
3105 | { 0x12, KEY_0}, | ||
3106 | { 0x16, KEY_CHANNELUP}, /*ch+*/ | ||
3107 | { 0x11, KEY_CHANNELDOWN},/*ch-*/ | ||
3108 | { 0x13, KEY_VOLUMEUP}, /*vol+*/ | ||
3109 | { 0x0c, KEY_VOLUMEDOWN},/*vol-*/ | ||
3110 | { 0x03, KEY_RECORD}, /*rec*/ | ||
3111 | { 0x18, KEY_PAUSE}, /*pause*/ | ||
3112 | { 0x19, KEY_OK}, /*ok*/ | ||
3113 | { 0x1a, KEY_CAMERA}, /* snapshot */ | ||
3114 | { 0x01, KEY_UP}, | ||
3115 | { 0x10, KEY_LEFT}, | ||
3116 | { 0x02, KEY_RIGHT}, | ||
3117 | { 0x08, KEY_DOWN}, | ||
3118 | { 0x15, KEY_FAVORITES}, | ||
3119 | { 0x17, KEY_SUBTITLE}, | ||
3120 | { 0x1d, KEY_ZOOM}, | ||
3121 | { 0x1f, KEY_EXIT}, | ||
3122 | { 0x1e, KEY_MENU}, | ||
3123 | { 0x1c, KEY_EPG}, | ||
3124 | { 0x00, KEY_PREVIOUS}, | ||
3125 | { 0x1b, KEY_MODE}, | ||
3126 | }; | ||
3127 | struct ir_scancode_table ir_codes_tbs_nec_table = { | ||
3128 | .scan = ir_codes_tbs_nec, | ||
3129 | .size = ARRAY_SIZE(ir_codes_tbs_nec), | ||
3130 | }; | ||
3131 | EXPORT_SYMBOL_GPL(ir_codes_tbs_nec_table); | ||
3132 | |||
2967 | /* Terratec Cinergy Hybrid T USB XS | 3133 | /* Terratec Cinergy Hybrid T USB XS |
2968 | Devin Heitmueller <dheitmueller@linuxtv.org> | 3134 | Devin Heitmueller <dheitmueller@linuxtv.org> |
2969 | */ | 3135 | */ |
@@ -3147,3 +3313,4 @@ struct ir_scancode_table ir_codes_gadmei_rm008z_table = { | |||
3147 | .size = ARRAY_SIZE(ir_codes_gadmei_rm008z), | 3313 | .size = ARRAY_SIZE(ir_codes_gadmei_rm008z), |
3148 | }; | 3314 | }; |
3149 | EXPORT_SYMBOL_GPL(ir_codes_gadmei_rm008z_table); | 3315 | EXPORT_SYMBOL_GPL(ir_codes_gadmei_rm008z_table); |
3316 | |||