From: Pavel Machek <pavel@suse.cz>
To: Christoph Bartelmus <lirc@bartelmus.de>
Cc: jonsmirl@gmail.com, jrm8005@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: In-kernel IR remote control support
Date: Sun, 23 Nov 2008 19:01:46 +0100 [thread overview]
Message-ID: <20081123180146.GA7731@ucw.cz> (raw)
In-Reply-To: <AqQThtpZjFB@christoph>
Hi!
> Who is telling you that LIRC cannot work like simply plugging in the
> receiver and start using the remote?
Well, I don't have to install special userland to make USB keyboard to
work, and I don't see why remote controls should be different.
> You can have LIRC setup to decode all common remote control protocols.
> It's just a matter of proper packaging and pre-configuration.
...which distributions don't generally do because they avoid
out-of-tree patches...?
> > Can we merge the common ones into the kernel, while still keeping the
> > obscure ones in userspace using uinput or something?
>
> Why do you want to complicate things even more. When you have an obscure
> protocol, you have to use LIRC style kernel drivers anyway. Why not use
> them for all protocols if you need them anyway?
It is more complex in the obscure case, agreed; but the common case
gets simpler and I believe tradeoff is worth it.
> Everyone seems to be so focussed on the input layer, that he does not even
> consider that it might not be the right approach for all cases.
Remote controls do look like keyboards; that's why people want to use
input layer.
Unlike normal keyboards, 'tcpdump' or 'irdump' makes a lot of sense
for remote controls, but so what?
> > support for the common remotes. That seems like a net plus to me, and
> > you can still keep the obscure ones in userland.
>
> Jon's code and the LIRC approach exclude each other. It does not make
> sense to have both in the kernel. There have been attempts to clean up
> LIRC code to be included in the kernel. The current discussion lessens my
> hope that this will happen anytime soon.
I don't see why we could not use Jon's code for common remotes decoded
mostly by hw, and your code for the obscure cases.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2008-12-02 14:40 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 [this message]
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
[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=20081123180146.GA7731@ucw.cz \
--to=pavel@suse.cz \
--cc=jonsmirl@gmail.com \
--cc=jrm8005@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lirc@bartelmus.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.