]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e8607c0cbdbc6b82847f9b476872094964e237e
tree34e477e3db2a69c6cfa6607933f552c2c89d952b
parentc9faa68c0877b60f3a2c6a7f955d601a86685444
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