Let me add my view for those questions.
Jon Smirl wrote:
lirc_dev will implement a revised version of the lirc API. I'm assuming that
Jerod and Christoph will do this review, in order to be sure that it is stable
enough for kernel inclusion (as proposed by Gerd).
Raw pulse data should be reported only via lirc_dev, but it can be converted
into a keycode and reported via evdev as well, via an existing interface.
I'm not sure what you're meaning here. I've started a doc about IR at the media
docbook. This is currently inside the kernel Documents/DocBook. If you want
to browse, it is also available as:
http://linuxtv.org/downloads/v4l-dvb-apis/ch17.html
For sure we need to better document the IR's, and explain the API's there.
lirc_dev should create a device interface.
IMO, via sysfs.
IMO, the better is to limit the raw interface to just one open.
It should be big enough to receive at least one keycode event. Considering that
the driver will use kfifo (IMO, it is a good strategy, especially since you
won't need any lock if just one open is allowed), it will require a power of two size.
IMO, it should be the same requirement as used by an input interface.
IMO, sysfs.
IMO, it should use the kfifo for it. However, if we allow both raw data and
in-kernel decoders to read data there, we'll need a spinlock to protect the
kfifo.
I don't have a strong opinion here, but, from the previous discussions, it
seems that people want it to be double-reported by default. If so, I think
we need to implement a command at the raw interface to allow disabling the
in-kernel decoder, while the raw interface is kept open.
I don't see a good way to avoid it.
I don't have a clear answer for those. I'll let those to LIRC developers to answer.
Cheers,
Mauro
--