aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/ir-keymaps.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-08-29 08:37:00 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:31 -0400
commitcd748871fe5e689cd9917f561967bf4c63960e66 (patch)
treea1192952f6486639ebc49e7b05c49f25415a96a3 /drivers/media/common/ir-keymaps.c
parentf545cb43942d0556958af9f35cc06cdd42a78971 (diff)
V4L/DVB (12566): ir-keymaps: Fix IR mappings for channel and volume +/- keys
Use standard definitions for channel controls, as defined at: http://linuxtv.org/wiki/index.php/Remote_Controllers While here, fix a few broken up/down/left/right mappings Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/ir-keymaps.c')
-rw-r--r--drivers/media/common/ir-keymaps.c72
1 files changed, 35 insertions, 37 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c
index e8af24f9d2e3..a166bdd8ee9a 100644
--- a/drivers/media/common/ir-keymaps.c
+++ b/drivers/media/common/ir-keymaps.c
@@ -48,19 +48,19 @@ IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE] = {
48 [0x08] = KEY_8, 48 [0x08] = KEY_8,
49 [0x09] = KEY_9, 49 [0x09] = KEY_9,
50 50
51 [0x5c] = KEY_POWER, /* power */ 51 [0x5c] = KEY_POWER, /* power */
52 [0x20] = KEY_ZOOM, /* 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_POWER2, /* off */ 58 [0x1a] = KEY_POWER2, /* off */
59 [0x2e] = KEY_RED, 59 [0x2e] = KEY_RED,
60 [0x1f] = KEY_DOWN, /* channel - */ 60 [0x1f] = KEY_CHANNELDOWN, /* channel - */
61 [0x1c] = KEY_UP, /* channel + */ 61 [0x1c] = KEY_CHANNELUP, /* channel + */
62 [0x10] = KEY_LEFT, /* volume - */ 62 [0x10] = KEY_VOLUMEDOWN, /* volume - */
63 [0x1e] = KEY_RIGHT, /* volume + */ 63 [0x1e] = KEY_VOLUMEUP, /* volume + */
64 [0x14] = KEY_F1, 64 [0x14] = KEY_F1,
65}; 65};
66EXPORT_SYMBOL_GPL(ir_codes_proteus_2309); 66EXPORT_SYMBOL_GPL(ir_codes_proteus_2309);
@@ -1247,11 +1247,11 @@ IR_KEYTAB_TYPE ir_codes_manli[IR_KEYTAB_SIZE] = {
1247 * 0x015 * 1247 * 0x015 *
1248 * Down * 1248 * Down *
1249 * */ 1249 * */
1250 [0x0b] = KEY_UP, /*XXX KEY_SCROLLUP? */ 1250 [0x0b] = KEY_UP,
1251 [0x18] = KEY_LEFT, /*XXX KEY_BACK? */ 1251 [0x18] = KEY_LEFT,
1252 [0x16] = KEY_OK, /*XXX KEY_SELECT? KEY_ENTER? */ 1252 [0x16] = KEY_OK, /*XXX KEY_SELECT? KEY_ENTER? */
1253 [0x0c] = KEY_RIGHT, /*XXX KEY_FORWARD? */ 1253 [0x0c] = KEY_RIGHT,
1254 [0x15] = KEY_DOWN, /*XXX KEY_SCROLLDOWN? */ 1254 [0x15] = KEY_DOWN,
1255 1255
1256 /* 0x11 0x0d * 1256 /* 0x11 0x0d *
1257 * TV/AV MODE * 1257 * TV/AV MODE *
@@ -1584,8 +1584,6 @@ IR_KEYTAB_TYPE ir_codes_pinnacle_color[IR_KEYTAB_SIZE] = {
1584 [0x23] = KEY_RIGHT, 1584 [0x23] = KEY_RIGHT,
1585 [0x0d] = KEY_SELECT, 1585 [0x0d] = KEY_SELECT,
1586 1586
1587
1588
1589 [0x08] = KEY_BACK, 1587 [0x08] = KEY_BACK,
1590 [0x07] = KEY_REFRESH, 1588 [0x07] = KEY_REFRESH,
1591 1589
@@ -1697,11 +1695,11 @@ IR_KEYTAB_TYPE ir_codes_npgtech[IR_KEYTAB_SIZE] = {
1697 1695
1698 [0x03] = KEY_BRIGHTNESSDOWN, 1696 [0x03] = KEY_BRIGHTNESSDOWN,
1699 [0x28] = KEY_AUDIO, 1697 [0x28] = KEY_AUDIO,
1700 [0x3c] = KEY_UP, 1698 [0x3c] = KEY_CHANNELUP,
1701 [0x3f] = KEY_LEFT, 1699 [0x3f] = KEY_VOLUMEDOWN,
1702 [0x2e] = KEY_MUTE, 1700 [0x2e] = KEY_MUTE,
1703 [0x3b] = KEY_RIGHT, 1701 [0x3b] = KEY_VOLUMEUP,
1704 [0x00] = KEY_DOWN, 1702 [0x00] = KEY_CHANNELDOWN,
1705 [0x07] = KEY_BRIGHTNESSUP, 1703 [0x07] = KEY_BRIGHTNESSUP,
1706 [0x2c] = KEY_TEXT, 1704 [0x2c] = KEY_TEXT,
1707 1705
@@ -1905,10 +1903,10 @@ IR_KEYTAB_TYPE ir_codes_encore_enltv[IR_KEYTAB_SIZE] = {
1905 1903
1906 [0x14] = KEY_HOME, /* win start menu */ 1904 [0x14] = KEY_HOME, /* win start menu */
1907 [0x15] = KEY_EXIT, /* exit */ 1905 [0x15] = KEY_EXIT, /* exit */
1908 [0x16] = KEY_UP, 1906 [0x16] = KEY_CHANNELUP, /* UP */
1909 [0x12] = KEY_DOWN, 1907 [0x12] = KEY_CHANNELDOWN, /* DOWN */
1910 [0x0c] = KEY_RIGHT, 1908 [0x0c] = KEY_VOLUMEUP, /* RIGHT */
1911 [0x17] = KEY_LEFT, 1909 [0x17] = KEY_VOLUMEDOWN, /* LEFT */
1912 1910
1913 [0x18] = KEY_ENTER, /* OK */ 1911 [0x18] = KEY_ENTER, /* OK */
1914 1912
@@ -2201,11 +2199,11 @@ IR_KEYTAB_TYPE ir_codes_behold[IR_KEYTAB_SIZE] = {
2201 * 0x015 * 2199 * 0x015 *
2202 * Down * 2200 * Down *
2203 * */ 2201 * */
2204 [0x0b] = KEY_CHANNELUP, /* XXX KEY_UP */ 2202 [0x0b] = KEY_CHANNELUP,
2205 [0x18] = KEY_VOLUMEDOWN, /* XXX KEY_LEFT */ 2203 [0x18] = KEY_VOLUMEDOWN,
2206 [0x16] = KEY_OK, /* XXX KEY_ENTER */ 2204 [0x16] = KEY_OK, /* XXX KEY_ENTER */
2207 [0x0c] = KEY_VOLUMEUP, /* XXX KEY_RIGHT */ 2205 [0x0c] = KEY_VOLUMEUP,
2208 [0x15] = KEY_CHANNELDOWN, /* XXX KEY_DOWN */ 2206 [0x15] = KEY_CHANNELDOWN,
2209 2207
2210 /* 0x11 0x0d * 2208 /* 0x11 0x0d *
2211 * MUTE INFO * 2209 * MUTE INFO *
@@ -2383,10 +2381,10 @@ IR_KEYTAB_TYPE ir_codes_powercolor_real_angel[IR_KEYTAB_SIZE] = {
2383 [0x13] = KEY_BRIGHTNESSDOWN, 2381 [0x13] = KEY_BRIGHTNESSDOWN,
2384 [0x2b] = KEY_MODE, /* stereo/mono */ 2382 [0x2b] = KEY_MODE, /* stereo/mono */
2385 [0x2c] = KEY_TEXT, /* teletext */ 2383 [0x2c] = KEY_TEXT, /* teletext */
2386 [0x20] = KEY_UP, /* channel up */ 2384 [0x20] = KEY_CHANNELUP, /* channel up */
2387 [0x21] = KEY_DOWN, /* channel down */ 2385 [0x21] = KEY_CHANNELDOWN, /* channel down */
2388 [0x10] = KEY_RIGHT, /* volume up */ 2386 [0x10] = KEY_VOLUMEUP, /* volume up */
2389 [0x11] = KEY_LEFT, /* volume down */ 2387 [0x11] = KEY_VOLUMEDOWN, /* volume down */
2390 [0x0d] = KEY_MUTE, 2388 [0x0d] = KEY_MUTE,
2391 [0x1f] = KEY_RECORD, 2389 [0x1f] = KEY_RECORD,
2392 [0x17] = KEY_PLAY, 2390 [0x17] = KEY_PLAY,
@@ -2584,11 +2582,11 @@ IR_KEYTAB_TYPE ir_codes_encore_enltv_fm53[IR_KEYTAB_SIZE] = {
2584 [0x54] = KEY_RECORD, 2582 [0x54] = KEY_RECORD,
2585 [0x4d] = KEY_PLAY, /* pause */ 2583 [0x4d] = KEY_PLAY, /* pause */
2586 2584
2587 [0x1e] = KEY_UP, /* video setting */ 2585 [0x1e] = KEY_MENU, /* video setting */
2588 [0x0e] = KEY_RIGHT, /* <- */ 2586 [0x0e] = KEY_RIGHT, /* <- */
2589 [0x1a] = KEY_LEFT, /* -> */ 2587 [0x1a] = KEY_LEFT, /* -> */
2590 2588
2591 [0x0a] = KEY_DOWN, /* video default */ 2589 [0x0a] = KEY_CLEAR, /* video default */
2592 [0x0c] = KEY_ZOOM, /* hide pannel */ 2590 [0x0c] = KEY_ZOOM, /* hide pannel */
2593 [0x47] = KEY_SLEEP, /* shutdown */ 2591 [0x47] = KEY_SLEEP, /* shutdown */
2594}; 2592};
@@ -2681,8 +2679,8 @@ IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = {
2681 [0x18] = KEY_8, 2679 [0x18] = KEY_8,
2682 [0x19] = KEY_9, 2680 [0x19] = KEY_9,
2683 [0x10] = KEY_0, 2681 [0x10] = KEY_0,
2684 [0x1c] = KEY_PAGEUP, /* ch+ */ 2682 [0x1c] = KEY_CHANNELUP, /* ch+ */
2685 [0x0f] = KEY_PAGEDOWN, /* ch- */ 2683 [0x0f] = KEY_CHANNELDOWN, /* ch- */
2686 [0x1a] = KEY_VOLUMEUP, /* vol+ */ 2684 [0x1a] = KEY_VOLUMEUP, /* vol+ */
2687 [0x0e] = KEY_VOLUMEDOWN, /* vol- */ 2685 [0x0e] = KEY_VOLUMEDOWN, /* vol- */
2688 [0x04] = KEY_RECORD, /* rec */ 2686 [0x04] = KEY_RECORD, /* rec */