diff options
author | Gerd Knorr <devnull@localhost> | 2004-04-23 08:47:33 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-04-23 08:47:33 +0000 |
commit | eafb3b04ee79defcf7f88e14c66d670b254c9fee (patch) | |
tree | 5f3f1f5476f1b961157a523a92c26ed1a587949d /linux/drivers/media | |
parent | 80ea173ccf63ba5f9e8704fc99240c8a3349d095 (diff) | |
download | mediapointer-dvb-s2-eafb3b04ee79defcf7f88e14c66d670b254c9fee.tar.gz mediapointer-dvb-s2-eafb3b04ee79defcf7f88e14c66d670b254c9fee.tar.bz2 |
- ir-kbd-i2c: purpletv ir fixes by 陳王展 (Wang-Chan Chen).
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index 8c734c1ac..c5e5380a1 100644 --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -81,7 +81,7 @@ static IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE] = { static IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE] = { [ 0x3 ] = KEY_POWER, - [ 0x2f ] = KEY_MUTE, + [ 0x6f ] = KEY_MUTE, [ 0x10 ] = KEY_BACKSPACE, // Recall [ 0x11 ] = KEY_KP0, @@ -104,27 +104,27 @@ static IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE] = { [ 0x1d ] = KEY_DOWN, [ 0xf ] = KEY_CHANNELUP, [ 0x13 ] = KEY_CHANNELDOWN, - [ 0x28 ] = KEY_ZOOM, + [ 0x48 ] = KEY_ZOOM, [ 0x1b ] = KEY_VIDEO, // Video source #if 0 [ 0x1f ] = KEY_S, // Snapshot #endif - [ 0x29 ] = KEY_LANGUAGE, // MTS Select + [ 0x49 ] = KEY_LANGUAGE, // MTS Select [ 0x19 ] = KEY_SEARCH, // Auto Scan - [ 0x2b ] = KEY_RECORD, - [ 0x26 ] = KEY_PLAY, - [ 0x25 ] = KEY_PAUSE, // Pause - [ 0x24 ] = KEY_STOP, + [ 0x4b ] = KEY_RECORD, + [ 0x46 ] = KEY_PLAY, + [ 0x45 ] = KEY_PAUSE, // Pause + [ 0x44 ] = KEY_STOP, #if 0 - [ 0x23 ] = KEY_T, // Time Shift - [ 0x27 ] = KEY_Y, // Time Shift OFF - [ 0x2a ] = KEY_O, // TOP + [ 0x43 ] = KEY_T, // Time Shift + [ 0x47 ] = KEY_Y, // Time Shift OFF + [ 0x4a ] = KEY_O, // TOP [ 0x17 ] = KEY_F, // SURF CH #endif - [ 0x20 ] = KEY_FORWARD, // Forward ? - [ 0x22 ] = KEY_REWIND, // Backward ? + [ 0x40 ] = KEY_FORWARD, // Forward ? + [ 0x42 ] = KEY_REWIND, // Backward ? }; @@ -269,9 +269,6 @@ static int get_key_purpletv(struct IR *ir, u32 *ir_key, u32 *ir_raw) if (b & 0x80) return 1; - /* save some mem space */ - if(b & 0x60) /* 0x6f -> 0x2f 0x40~0x4b->0x20~0x2b */ - b = (b|0x20) & 0x2f; *ir_key = b; *ir_raw = b; return 1; |