Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

Stefan Richter
2009-11-28T20:34:32Z

Stefan Richter wrote:
> Jon Smirl wrote:
>> We have one IR receiver device and multiple remotes. How does the
>> input system know how many devices to create corresponding to how many
>> remotes you have?
>
> If several remotes are to be used on the same receiver, then they
> necessarily need to generate different scancodes, don't they? Otherwise
> the input driver wouldn't be able to route their events to the
> respective subdevice. But if they do generate different scancodes,
> there is no need to create subdevices just for EVIOCSKEYCODE's sake. (It
> might still be desirable to have subdevices for other reasons perhaps.)

PS, forgot to add: If there is a real need to initiate device creation
from userspace, then ioctl is not the way to go.
--
Stefan Richter
-=====-==--= =-== ===--