[RFC v2 3/7] cec: add new framework for cec support.

Sean Young sean at mess.org
Sun Mar 8 03:44:41 PDT 2015


Hi Kamil,

On Fri, Mar 06, 2015 at 05:14:50PM +0100, Kamil Debski wrote:
> 3) As you suggested - load an empty keymap whenever the pass through mode is
> enabled.
> I am not that familiar with the RC core. Is there a simple way to switch to
> an empty map
> from the kernel? There is the ir_setkeytable function, but it is static in
> rc-main.c, so it
> cannot be used in other kernel modules. Any hints, Sean?

Why is it problematic if keypresses are passed to the input layer? 

You can only set the default keymap for an rc-device from kernel space; from
user space you can clear the table using input ioctl, see:

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/tree/utils/keytable/keytable.c#n1277

You can select MAP_EMPTY as the default keymap if that is appropriate; using
ir-setkeytable(1) a different keymap can be selected.


Sean


More information about the dri-devel mailing list