From: Mauro Carvalho Chehab Date: Wed, 30 Nov 2011 16:55:28 +0000 (-0200) Subject: [media] tm6000: Use a 16 scancode bitmask for IR X-Git-Tag: v3.3-rc1~48^2~470 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f711a80c5d0048e85c129f23281d9c0634e7010;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [media] tm6000: Use a 16 scancode bitmask for IR This should allow using 24 or 32 bits NEC IR decoding tables with those devices. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tm6000/tm6000-input.c b/drivers/media/video/tm6000/tm6000-input.c index 6eaf770..e3467d4 100644 --- a/drivers/media/video/tm6000/tm6000-input.c +++ b/drivers/media/video/tm6000/tm6000-input.c @@ -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) {