aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-08-29 08:01:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:29 -0400
commit62f1aa9f98dca68d5393d555faa8a038bb91cedc (patch)
treea8ccbe9b2f6847fa9688fe574c7ed7b6294667d7 /drivers/media/common
parent7f9d6913619eebc84bb447e8f4635c331fd373d8 (diff)
V4L/DVB (12564): ir-keymaps: Replace most KEY_[A-Z] to the proper definitions
There are several IR's that were using IR to type a letter that it is known by some random application. Instead, the better is to use the standard definitions found at: http://linuxtv.org/wiki/index.php/Remote_Controllers And, if needed, submit a patch for the application to understand the media keys. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/ir-keymaps.c58
1 files changed, 30 insertions, 28 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c
index 3426ebb2d2b6..1a96b35cb846 100644
--- a/drivers/media/common/ir-keymaps.c
+++ b/drivers/media/common/ir-keymaps.c
@@ -49,13 +49,13 @@ IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE] = {
49 [0x09] = KEY_9, 49 [0x09] = KEY_9,
50 50
51 [0x5c] = KEY_POWER, /* power */ 51 [0x5c] = KEY_POWER, /* power */
52 [0x20] = KEY_F, /* full screen */ 52 [0x20] = KEY_ZOOM, /* full screen */
53 [0x0f] = KEY_BACKSPACE, /* recall */ 53 [0x0f] = KEY_BACKSPACE, /* recall */
54 [0x1b] = KEY_ENTER, /* mute */ 54 [0x1b] = KEY_ENTER, /* mute */
55 [0x41] = KEY_RECORD, /* record */ 55 [0x41] = KEY_RECORD, /* record */
56 [0x43] = KEY_STOP, /* stop */ 56 [0x43] = KEY_STOP, /* stop */
57 [0x16] = KEY_S, 57 [0x16] = KEY_S,
58 [0x1a] = KEY_Q, /* off */ 58 [0x1a] = KEY_POWER2, /* off */
59 [0x2e] = KEY_RED, 59 [0x2e] = KEY_RED,
60 [0x1f] = KEY_DOWN, /* channel - */ 60 [0x1f] = KEY_DOWN, /* channel - */
61 [0x1c] = KEY_UP, /* channel + */ 61 [0x1c] = KEY_UP, /* channel + */
@@ -431,7 +431,7 @@ IR_KEYTAB_TYPE ir_codes_dntv_live_dvb_t[IR_KEYTAB_SIZE] = {
431 [0x10] = KEY_MUTE, 431 [0x10] = KEY_MUTE,
432 [0x11] = KEY_REWIND, /* backward << */ 432 [0x11] = KEY_REWIND, /* backward << */
433 [0x12] = KEY_POWER, 433 [0x12] = KEY_POWER,
434 [0x13] = KEY_S, /* snap */ 434 [0x13] = KEY_CAMERA, /* snap */
435 [0x14] = KEY_AUDIO, /* stereo */ 435 [0x14] = KEY_AUDIO, /* stereo */
436 [0x15] = KEY_CLEAR, /* reset */ 436 [0x15] = KEY_CLEAR, /* reset */
437 [0x16] = KEY_PLAY, 437 [0x16] = KEY_PLAY,
@@ -482,13 +482,13 @@ IR_KEYTAB_TYPE ir_codes_iodata_bctv7e[IR_KEYTAB_SIZE] = {
482 [0x74] = KEY_VOLUMEUP, 482 [0x74] = KEY_VOLUMEUP,
483 [0x14] = KEY_MUTE, 483 [0x14] = KEY_MUTE,
484 484
485 [0x4c] = KEY_S, /* SVIDEO */ 485 [0x4c] = KEY_VCR, /* SVIDEO */
486 [0x2c] = KEY_CHANNELDOWN, 486 [0x2c] = KEY_CHANNELDOWN,
487 [0x6c] = KEY_VOLUMEDOWN, 487 [0x6c] = KEY_VOLUMEDOWN,
488 [0x0c] = KEY_ZOOM, 488 [0x0c] = KEY_ZOOM,
489 489
490 [0x5c] = KEY_PAUSE, 490 [0x5c] = KEY_PAUSE,
491 [0x3c] = KEY_C, /* || (red) */ 491 [0x3c] = KEY_RED, /* || (red) */
492 [0x7c] = KEY_RECORD, /* recording */ 492 [0x7c] = KEY_RECORD, /* recording */
493 [0x1c] = KEY_STOP, 493 [0x1c] = KEY_STOP,
494 494
@@ -571,7 +571,7 @@ IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = {
571 571
572 [0x0c] = KEY_MUTE, 572 [0x0c] = KEY_MUTE,
573 [0x0f] = KEY_SCREEN, /* Full Screen */ 573 [0x0f] = KEY_SCREEN, /* Full Screen */
574 [0x10] = KEY_F, /* Funtion */ 574 [0x10] = KEY_FN, /* Funtion */
575 [0x11] = KEY_T, /* Time shift */ 575 [0x11] = KEY_T, /* Time shift */
576 [0x12] = KEY_POWER, 576 [0x12] = KEY_POWER,
577 [0x13] = KEY_MEDIA, /* MTS */ 577 [0x13] = KEY_MEDIA, /* MTS */
@@ -1353,6 +1353,7 @@ IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE] = {
1353 [0x48] = KEY_ZOOM, 1353 [0x48] = KEY_ZOOM,
1354 1354
1355 [0x1b] = KEY_VIDEO, /* Video source */ 1355 [0x1b] = KEY_VIDEO, /* Video source */
1356 [0x1f] = KEY_CAMERA, /* Snapshot */
1356 [0x49] = KEY_LANGUAGE, /* MTS Select */ 1357 [0x49] = KEY_LANGUAGE, /* MTS Select */
1357 [0x19] = KEY_SEARCH, /* Auto Scan */ 1358 [0x19] = KEY_SEARCH, /* Auto Scan */
1358 1359
@@ -1360,6 +1361,7 @@ IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE] = {
1360 [0x46] = KEY_PLAY, 1361 [0x46] = KEY_PLAY,
1361 [0x45] = KEY_PAUSE, /* Pause */ 1362 [0x45] = KEY_PAUSE, /* Pause */
1362 [0x44] = KEY_STOP, 1363 [0x44] = KEY_STOP,
1364 [0x17] = KEY_CHANNEL, /* SURF CH */
1363 [0x40] = KEY_FORWARD, /* Forward ? */ 1365 [0x40] = KEY_FORWARD, /* Forward ? */
1364 [0x42] = KEY_REWIND, /* Backward ? */ 1366 [0x42] = KEY_REWIND, /* Backward ? */
1365 1367
@@ -1910,7 +1912,7 @@ IR_KEYTAB_TYPE ir_codes_encore_enltv[IR_KEYTAB_SIZE] = {
1910 [0x18] = KEY_ENTER, /* OK */ 1912 [0x18] = KEY_ENTER, /* OK */
1911 1913
1912 [0x0e] = KEY_ESC, 1914 [0x0e] = KEY_ESC,
1913 [0x13] = KEY_D, /* desktop */ 1915 [0x13] = KEY_CYCLEWINDOWS, /* desktop */
1914 [0x11] = KEY_TAB, 1916 [0x11] = KEY_TAB,
1915 [0x19] = KEY_SWITCHVIDEOMODE, /* switch */ 1917 [0x19] = KEY_SWITCHVIDEOMODE, /* switch */
1916 1918
@@ -2666,8 +2668,8 @@ EXPORT_SYMBOL_GPL(ir_codes_ati_tv_wonder_hd_600);
2666 Igor M. Liplianin <liplianin@me.by> 2668 Igor M. Liplianin <liplianin@me.by>
2667 */ 2669 */
2668IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = { 2670IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = {
2669 [0x0a] = KEY_Q, /*power*/ 2671 [0x0a] = KEY_POWER2, /* power */
2670 [0x0c] = KEY_M, /*mute*/ 2672 [0x0c] = KEY_MUTE, /* mute */
2671 [0x11] = KEY_1, 2673 [0x11] = KEY_1,
2672 [0x12] = KEY_2, 2674 [0x12] = KEY_2,
2673 [0x13] = KEY_3, 2675 [0x13] = KEY_3,
@@ -2678,25 +2680,25 @@ IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = {
2678 [0x18] = KEY_8, 2680 [0x18] = KEY_8,
2679 [0x19] = KEY_9, 2681 [0x19] = KEY_9,
2680 [0x10] = KEY_0, 2682 [0x10] = KEY_0,
2681 [0x1c] = KEY_PAGEUP, /*ch+*/ 2683 [0x1c] = KEY_PAGEUP, /* ch+ */
2682 [0x0f] = KEY_PAGEDOWN, /*ch-*/ 2684 [0x0f] = KEY_PAGEDOWN, /* ch- */
2683 [0x1a] = KEY_O, /*vol+*/ 2685 [0x1a] = KEY_VOLUMEUP, /* vol+ */
2684 [0x0e] = KEY_Z, /*vol-*/ 2686 [0x0e] = KEY_VOLUMEDOWN, /* vol- */
2685 [0x04] = KEY_R, /*rec*/ 2687 [0x04] = KEY_RECORD, /* rec */
2686 [0x09] = KEY_D, /*fav*/ 2688 [0x09] = KEY_CHANNEL, /* fav */
2687 [0x08] = KEY_BACKSPACE, /*rewind*/ 2689 [0x08] = KEY_BACKSPACE, /* rewind */
2688 [0x07] = KEY_A, /*fast*/ 2690 [0x07] = KEY_FASTFORWARD, /* fast */
2689 [0x0b] = KEY_P, /*pause*/ 2691 [0x0b] = KEY_PAUSE, /* pause */
2690 [0x02] = KEY_ESC, /*cancel*/ 2692 [0x02] = KEY_ESC, /* cancel */
2691 [0x03] = KEY_G, /*tab*/ 2693 [0x03] = KEY_TAB, /* tab */
2692 [0x00] = KEY_UP, /*up*/ 2694 [0x00] = KEY_UP, /* up */
2693 [0x1f] = KEY_ENTER, /*ok*/ 2695 [0x1f] = KEY_ENTER, /* ok */
2694 [0x01] = KEY_DOWN, /*down*/ 2696 [0x01] = KEY_DOWN, /* down */
2695 [0x05] = KEY_C, /*cap*/ 2697 [0x05] = KEY_RECORD, /* cap */
2696 [0x06] = KEY_S, /*stop*/ 2698 [0x06] = KEY_STOP, /* stop */
2697 [0x40] = KEY_F, /*full*/ 2699 [0x40] = KEY_ZOOM, /* full */
2698 [0x1e] = KEY_W, /*tvmode*/ 2700 [0x1e] = KEY_TV, /* tvmode */
2699 [0x1b] = KEY_B, /*recall*/ 2701 [0x1b] = KEY_B, /* recall */
2700}; 2702};
2701EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec); 2703EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec);
2702 2704