[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B153617.8070608@redhat.com>
Date: Tue, 01 Dec 2009 16:28:23 +0100
From: Gerd Hoffmann <kraxel@...hat.com>
To: Mauro Carvalho Chehab <mchehab@...hat.com>
CC: Christoph Bartelmus <lirc@...telmus.de>, awalls@...ix.net,
dmitry.torokhov@...il.com, j@...nau.net, jarod@...hat.com,
jarod@...sonet.com, jonsmirl@...il.com, khc@...waw.pl,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, superm1@...ntu.com
Subject: Re: [RFC] What are the goals for the architecture of an in-kernel
IR system?
Hi,
> The big issue here is: how do we document that "EM28xxHVR950-00" is the Hauppauge Grey IR that
> is shipped with their newer devices.
>
> A third approach would be to identify, instead, the Remote Controller directly. So, we would
> add a sysfs field like ir_type.
I'd pick a more descriptive name like 'bundled_remote'.
Maybe an additional attribute could say which protocol the bundled
remote speaks (rc5, ...), so userspace could do something sensible by
default even if it has no data about the bundled remote.
> There are two issues here:
> 1) What's the name for this IR? We'll need to invent names for the existing IR's, as
> those devices don't have a known brand name;
Name them by the hardware they are bundled with should work reasonable well.
> 2) there are cases where the same device is provided with two or more different IR
> types. If we identify the board type instead of the IR type, userspace can better handle
> it, by providing a list of the possibilities.
We also could also provide a list of possible remotes directly via sysfs
instead of expecting userspace know which remotes can come bundled with
which board.
> No matter how we map, we'll still need to document it somehow to userspace. What would be
> the better? A header file? A set of keymaps from the default IR's that will be added
> on some directory at the Linux tree? A Documentation/IR ?
I'd suggest tools/ir/ (map loader intended to be called by udev) and the
maps being files in the linux source tree (next to the drivers?). The
maps probably should be installed on some standard location (pretty much
like firmware).
> Anyway, we shouldn't postpone lirc drivers addition due to that. There are still lots of work
> to do before we'll be able to split the tables from the kernel drivers.
Indeed. The sysfs bits are future work for both lirc and evdev drivers.
There is no reason to make the lirc merge wait for it.
cheers,
Gerd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists