diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-04 23:20:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:17:52 -0500 |
commit | 4039ff28a501cf6b9fc2b6a2c2b28476d7fa14cd (patch) | |
tree | 15c92b9a356facdcc814c9fdecf75586e0d0c356 /drivers/media | |
parent | d30a3fe89635324397c9cf5802f18f11a49ace17 (diff) |
V4L/DVB (13544): ir-keymaps: mark the new rc5 hauppauge with IR_TYPE_RC5
While here, move the table to a better place inside the file
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 146 |
1 files changed, 76 insertions, 70 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index 328c973a0838..abb5c73fbd12 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -1847,76 +1847,6 @@ struct ir_scancode_table ir_codes_hauppauge_new_table = { | |||
1847 | }; | 1847 | }; |
1848 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new_table); | 1848 | EXPORT_SYMBOL_GPL(ir_codes_hauppauge_new_table); |
1849 | 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 | |||
1920 | static struct ir_scancode ir_codes_npgtech[] = { | 1850 | static struct ir_scancode ir_codes_npgtech[] = { |
1921 | { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */ | 1851 | { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */ |
1922 | { 0x2a, KEY_FRONT }, | 1852 | { 0x2a, KEY_FRONT }, |
@@ -3314,3 +3244,79 @@ struct ir_scancode_table ir_codes_gadmei_rm008z_table = { | |||
3314 | }; | 3244 | }; |
3315 | EXPORT_SYMBOL_GPL(ir_codes_gadmei_rm008z_table); | 3245 | EXPORT_SYMBOL_GPL(ir_codes_gadmei_rm008z_table); |
3316 | 3246 | ||
3247 | /************************************************************* | ||
3248 | * COMPLETE SCANCODE TABLES | ||
3249 | * Instead of just a partial scancode, the tables bellow | ||
3250 | * contains the complete scancode and the receiver protocol | ||
3251 | *************************************************************/ | ||
3252 | |||
3253 | /* | ||
3254 | * Hauppauge:the newer, gray remotes (seems there are multiple | ||
3255 | * slightly different versions), shipped with cx88+ivtv cards. | ||
3256 | * | ||
3257 | * This table contains the complete RC5 code, instead of just the data part | ||
3258 | */ | ||
3259 | static struct ir_scancode ir_codes_rc5_hauppauge_new[] = { | ||
3260 | /* Keys 0 to 9 */ | ||
3261 | { 0x1e00, KEY_0 }, | ||
3262 | { 0x1e01, KEY_1 }, | ||
3263 | { 0x1e02, KEY_2 }, | ||
3264 | { 0x1e03, KEY_3 }, | ||
3265 | { 0x1e04, KEY_4 }, | ||
3266 | { 0x1e05, KEY_5 }, | ||
3267 | { 0x1e06, KEY_6 }, | ||
3268 | { 0x1e07, KEY_7 }, | ||
3269 | { 0x1e08, KEY_8 }, | ||
3270 | { 0x1e09, KEY_9 }, | ||
3271 | |||
3272 | { 0x1e0a, KEY_TEXT }, /* keypad asterisk as well */ | ||
3273 | { 0x1e0b, KEY_RED }, /* red button */ | ||
3274 | { 0x1e0c, KEY_RADIO }, | ||
3275 | { 0x1e0d, KEY_MENU }, | ||
3276 | { 0x1e0e, KEY_SUBTITLE }, /* also the # key */ | ||
3277 | { 0x1e0f, KEY_MUTE }, | ||
3278 | { 0x1e10, KEY_VOLUMEUP }, | ||
3279 | { 0x1e11, KEY_VOLUMEDOWN }, | ||
3280 | { 0x1e12, KEY_PREVIOUS }, /* previous channel */ | ||
3281 | { 0x1e14, KEY_UP }, | ||
3282 | { 0x1e15, KEY_DOWN }, | ||
3283 | { 0x1e16, KEY_LEFT }, | ||
3284 | { 0x1e17, KEY_RIGHT }, | ||
3285 | { 0x1e18, KEY_VIDEO }, /* Videos */ | ||
3286 | { 0x1e19, KEY_AUDIO }, /* Music */ | ||
3287 | /* 0x1e1a: Pictures - presume this means | ||
3288 | "Multimedia Home Platform" - | ||
3289 | no "PICTURES" key in input.h | ||
3290 | */ | ||
3291 | { 0x1e1a, KEY_MHP }, | ||
3292 | |||
3293 | { 0x1e1b, KEY_EPG }, /* Guide */ | ||
3294 | { 0x1e1c, KEY_TV }, | ||
3295 | { 0x1e1e, KEY_NEXTSONG }, /* skip >| */ | ||
3296 | { 0x1e1f, KEY_EXIT }, /* back/exit */ | ||
3297 | { 0x1e20, KEY_CHANNELUP }, /* channel / program + */ | ||
3298 | { 0x1e21, KEY_CHANNELDOWN }, /* channel / program - */ | ||
3299 | { 0x1e22, KEY_CHANNEL }, /* source (old black remote) */ | ||
3300 | { 0x1e24, KEY_PREVIOUSSONG }, /* replay |< */ | ||
3301 | { 0x1e25, KEY_ENTER }, /* OK */ | ||
3302 | { 0x1e26, KEY_SLEEP }, /* minimize (old black remote) */ | ||
3303 | { 0x1e29, KEY_BLUE }, /* blue key */ | ||
3304 | { 0x1e2e, KEY_GREEN }, /* green button */ | ||
3305 | { 0x1e30, KEY_PAUSE }, /* pause */ | ||
3306 | { 0x1e32, KEY_REWIND }, /* backward << */ | ||
3307 | { 0x1e34, KEY_FASTFORWARD }, /* forward >> */ | ||
3308 | { 0x1e35, KEY_PLAY }, | ||
3309 | { 0x1e36, KEY_STOP }, | ||
3310 | { 0x1e37, KEY_RECORD }, /* recording */ | ||
3311 | { 0x1e38, KEY_YELLOW }, /* yellow key */ | ||
3312 | { 0x1e3b, KEY_SELECT }, /* top right button */ | ||
3313 | { 0x1e3c, KEY_ZOOM }, /* full */ | ||
3314 | { 0x1e3d, KEY_POWER }, /* system power (green button) */ | ||
3315 | }; | ||
3316 | |||
3317 | struct ir_scancode_table ir_codes_rc5_hauppauge_new_table = { | ||
3318 | .scan = ir_codes_rc5_hauppauge_new, | ||
3319 | .size = ARRAY_SIZE(ir_codes_rc5_hauppauge_new), | ||
3320 | .ir_type = IR_TYPE_RC5, | ||
3321 | }; | ||
3322 | EXPORT_SYMBOL_GPL(ir_codes_rc5_hauppauge_new_table); | ||