V4L/DVB (4130): Fix card cx88 #50 remote
authorRicardo Cerqueira <v4l@cerqueira.org>
Sun, 18 Jun 2006 03:17:35 +0000 (00:17 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:05:12 +0000 (02:05 -0300)
There was an unmasked bit in the keycodes that was causing random
behaviour (the code could be N or N+1). Masked that bit now.

Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-input.c

index 1f5ccc9..72b630a 100644 (file)
@@ -89,7 +89,7 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
 
                auxgpio = cx_read(MO_GP1_IO);
                /* Take out the parity part */
-               gpio+=(auxgpio & 0xef);
+               gpio+=(gpio & 0x7fd) + (auxgpio & 0xef);
        } else
                auxgpio = gpio;