[PATCH] v4l: 783: fixed bad em2820 remote layout values
authorMarkus Rechberger <mrechberger@gmail.com>
Wed, 9 Nov 2005 05:37:31 +0000 (21:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:18 +0000 (07:56 -0800)
- Fixed bad em2820 remote layout values
- set KNC One and Purple TV layouts back to default
- added pinnacle ir remote i2c address to the i2c scanner

Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/em28xx/em28xx-i2c.c
drivers/media/video/ir-kbd-i2c.c

index b7360d5..a7b6f67 100644 (file)
@@ -499,6 +499,7 @@ static struct i2c_client em2820_client_template = {
 static char *i2c_devs[128] = {
        [0x4a >> 1] = "saa7113h",
        [0x60 >> 1] = "remote IR sensor",
+       [0x8e >> 1] = "remote IR sensor",
        [0x86 >> 1] = "tda9887",
        [0x80 >> 1] = "msp34xx",
        [0x88 >> 1] = "msp34xx",
index fbb78b6..aec710f 100644 (file)
 #include <media/ir-common.h>
 
 static IR_KEYTAB_TYPE ir_codes_em2820[IR_KEYTAB_SIZE] = {
-       [ 0x00 ] = KEY_CHANNEL,
-       [ 0x01 ] = KEY_SELECT,
-       [ 0x02 ] = KEY_MUTE,
-       [ 0x03 ] = KEY_POWER,
-       [ 0x04 ] = KEY_KP1,
-       [ 0x05 ] = KEY_KP2,
-       [ 0x06 ] = KEY_KP3,
-       [ 0x07 ] = KEY_CHANNELUP,
-       [ 0x08 ] = KEY_KP4,
-       [ 0x09 ] = KEY_KP5,
-       [ 0x0a ] = KEY_KP6,
-
-       [ 0x0b ] = KEY_CHANNELDOWN,
-       [ 0x0c ] = KEY_KP7,
-       [ 0x0d ] = KEY_KP8,
-       [ 0x0e ] = KEY_KP9,
-       [ 0x0f ] = KEY_VOLUMEUP,
-       [ 0x10 ] = KEY_KP0,
-       [ 0x11 ] = KEY_MENU,
-       [ 0x12 ] = KEY_PRINT,
-
-       [ 0x13 ] = KEY_VOLUMEDOWN,
-       [ 0x15 ] = KEY_PAUSE,
-       [ 0x17 ] = KEY_RECORD,
-       [ 0x18 ] = KEY_REWIND,
-       [ 0x19 ] = KEY_PLAY,
-       [ 0x1b ] = KEY_BACKSPACE,
-       [ 0x1d ] = KEY_STOP,
-       [ 0x40 ] = KEY_ZOOM,
+       [ 0x01 ] = KEY_CHANNEL,
+       [ 0x02 ] = KEY_SELECT,
+       [ 0x03 ] = KEY_MUTE,
+       [ 0x04 ] = KEY_POWER,
+       [ 0x05 ] = KEY_KP1,
+       [ 0x06 ] = KEY_KP2,
+       [ 0x07 ] = KEY_KP3,
+       [ 0x08 ] = KEY_CHANNELUP,
+       [ 0x09 ] = KEY_KP4,
+       [ 0x0a ] = KEY_KP5,
+       [ 0x0b ] = KEY_KP6,
+       [ 0x0c ] = KEY_CHANNELDOWN,
+       [ 0x0d ] = KEY_KP7,
+       [ 0x0e ] = KEY_KP8,
+       [ 0x0f ] = KEY_KP9,
+       [ 0x10 ] = KEY_VOLUMEUP,
+       [ 0x11 ] = KEY_KP0,
+       [ 0x12 ] = KEY_MENU,
+       [ 0x13 ] = KEY_PRINT,
+       [ 0x14 ] = KEY_VOLUMEDOWN,
+       [ 0x16 ] = KEY_PAUSE,
+       [ 0x18 ] = KEY_RECORD,
+       [ 0x19 ] = KEY_REWIND,
+       [ 0x1a ] = KEY_PLAY,
+       [ 0x1b ] = KEY_FORWARD,
+       [ 0x1c ] = KEY_BACKSPACE,
+       [ 0x1e ] = KEY_STOP,
+       [ 0x40 ] = KEY_ZOOM,
 };
 
 /* Mark Phalan <phalanm@o2.ie> */
@@ -402,7 +401,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr,
                        name        = "KNC One";
                        ir->get_key = get_key_knc1;
                        ir_type     = IR_TYPE_OTHER;
-                       ir_codes    = ir_codes_em2820;
+                       ir_codes    = ir_codes_empty;
                }
                break;
        case 0x47:
@@ -418,7 +417,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr,
                        name        = "Purple TV";
                        ir->get_key = get_key_purpletv;
                        ir_type     = IR_TYPE_OTHER;
-                       ir_codes    = ir_codes_empty;
+                       ir_codes    = ir_codes_purpletv;
                }
                break;
        default: