V4L/DVB (13532): ir-common: Add infrastructure to use a dynamic keycode table
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 Nov 2009 01:01:23 +0000 (22:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:42:19 +0000 (18:42 -0200)
commitef53a1159dfcdc1fecf5adb5b8d26803f194c09b
tree34e477e3db2a69c6cfa6607933f552c2c89d952b
parent4e89217b943cfb26f88f04920d44f2077931f0e7
V4L/DVB (13532): ir-common: Add infrastructure to use a dynamic keycode table

V4L drivers use an static keycode vector with 128 entries, where the scancode
indexes the keycode. While this works, it limits the scancodes to have only
7 bits, not allowing for example full RC5 codes.

Instead of implementing the same code on every V4L driver, provide a common
infrastructure to handle the bigger tables, minimizing the changes inside
each driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/Makefile
drivers/media/common/ir-keytable.c [new file with mode: 0644]
include/media/ir-common.h