[media] tm6000: Use a 16 scancode bitmask for IR
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 30 Nov 2011 16:55:28 +0000 (14:55 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 30 Nov 2011 16:58:20 +0000 (14:58 -0200)
This should allow using 24 or 32 bits NEC IR decoding tables with
those devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tm6000/tm6000-input.c

index 6eaf7705e73afd89df399e88f83f1b9907f07bb9..e3467d4245cbcd8088bbb68bd85d7a8c42737a8c 100644 (file)
@@ -416,6 +416,8 @@ int tm6000_ir_init(struct tm6000_core *dev)
 
        /* input setup */
        rc->allowed_protos = RC_TYPE_RC5 | RC_TYPE_NEC;
+       /* Neded, in order to support NEC remotes with 24 or 32 bits */
+       rc->scanmask = 0xffff;
        rc->priv = ir;
        rc->change_protocol = tm6000_ir_change_protocol;
        if (&dev->int_in) {