From: Gerd Hoffmann <kraxel@redhat.com>
To: "J.R. Mauro" <jrm8005@gmail.com>
Cc: Christoph Bartelmus <lirc@bartelmus.de>,
pavel@suse.cz, jonsmirl@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: In-kernel IR remote control support
Date: Wed, 03 Dec 2008 10:30:44 +0100 [thread overview]
Message-ID: <493651C4.50705@redhat.com> (raw)
In-Reply-To: <3aaafc130812021659x36701b19vc0d22f3c38471b65@mail.gmail.com>
Hi,
>> The only way to get out of this situation long-term is to get advanced
>> IR support into the mainline kernel.
>
> We at least need a unified place for drivers, or unified support for
> those drivers that must be put in userspace, a la usbfs and libusb.
That isn't good enougth. That unified place must be mainline (for the
kernel stuff). Userland bits can continue to live in the lirc package,
that isn't a problem.
>> It is certainly a good thing to have only *one* way to handle IR
>> remotes. But the kernel side of that way *must* be in mainline.
>> Everything else simply isn't going to fly.
>
> One way or a hybrid way to address everyone's concerns. I don't see
> why this has to be ALL kernel or ALL userspace.
It hasn't to be all kernel or all userspace.
But all kernel bits must be in mainline.
> I would think it could
> be both and still be clean.
Sure. We can even support both ways in the very same driver. I'll grab
a piece of hardware I know of as example: cx88-based TV cards:
* The hardware gives you the raw IR samples.
* The kernel takes them, decodes them and sends the input layer way
to user. The remote bundled with the TV card works fine. Which
is what probably 95% of the users need.
* In theory you can decode *any* remote IR codes. In practice you
can't because there is no way to get the raw IR samples to userspace
where lircd can handle them.
Ok, what are the options to fix the latter?
* lirc would do the trick. Doesn't fly though due to cx88 being
mainline and lirc (kernel drivers) being out-of-tree.
* input layer extension for raw IR codes. Doesn't exist (yet?).
* something completely different ...
Then you can have cx88 register both within the input layer (for the
bundled remote) and in the new raw-ir-codes subsystem. Someone (say
lircd) opening the raw IR interface will make the in-kernel decoding
stop. You are done ;)
cheers,
Gerd
next prev parent reply other threads:[~2008-12-03 9:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7f0c6fc9-556c-41a1-9750-ffb3455589ab@35g2000pry.googlegroups.com>
2008-11-12 23:09 ` In-kernel IR remote control support Christoph Bartelmus
2008-11-13 18:20 ` Maxim Levitsky
2008-11-15 11:58 ` Pavel Machek
2008-11-15 16:10 ` J.R. Mauro
2008-11-23 9:14 ` Christoph Bartelmus
2008-11-23 18:01 ` Pavel Machek
2008-12-02 18:00 ` Christoph Bartelmus
2008-12-03 8:25 ` Pavel Machek
2008-11-23 20:33 ` Jiri Kosina
2008-11-23 22:28 ` Christoph Bartelmus
2008-11-23 22:58 ` Jon Smirl
2008-12-02 22:00 ` Gerd Hoffmann
2008-12-03 0:59 ` J.R. Mauro
2008-12-03 9:30 ` Gerd Hoffmann [this message]
[not found] <13134331.2018681226657305244.JavaMail.www@wwinf8303>
2008-11-14 17:37 ` Maxim Levitsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=493651C4.50705@redhat.com \
--to=kraxel@redhat.com \
--cc=jonsmirl@gmail.com \
--cc=jrm8005@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lirc@bartelmus.de \
--cc=pavel@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox